Giter VIP home page Giter VIP logo

Comments (5)

florianfesti avatar florianfesti commented on July 30, 2024

Works but needs some more love. Especially some docs...

from boxes.

misiekkk avatar misiekkk commented on July 30, 2024

Inkscape integration is a very nice idea ;-)
If You need somebody to test integration with Inkscape at Windows and Linux - I can help You.
I try to compile .inx files of boxes.py by setup.py, but:

  • on Windows - setup.py don't work, boxes2inkscape work, but I have problem with cairo ( python 3.6 )
  • on Linux ( ubuntu 16.10 ) - problem with setuptools ( installed but don't work ) ( python 2.7 )

Do You have compiled .inx files ?
Can You share it ?

from boxes.

florianfesti avatar florianfesti commented on July 30, 2024

Even without setup.py working you should be able to just execute
scripts/boxes2inkscape ~/.config/inkscape/extensions/
I just created a symlink in ~/.config/inkscape/extensions/ to ...boxes/scripts/boxes
This allows me to run everything fro my checkout. But having the setup.py work would actually be nicer...

Can you please open tickets with more detailed descriptions of how things break?

from boxes.

misiekkk avatar misiekkk commented on July 30, 2024

Today I finish integration of boxes.py with inkscape 0.92.1 ( Python 2.7 32 bit ) 64bit on Windows 8.1 64 bit.

What I do to integrate this extension:

  1. Update and prepare Python for work:
  • add C;\Program Files\Inkscape\Python;C;\Program Files\Inkscape\Python\scripts to PATH Environment Variable and RESTART SYSTEM

  • Run cmd as Admnistrator

         - upgrade setuptools ( pip install --upgrade setuptools )
         - upgrade svgutils ( pip install --upgrade svgutils )

Download cairocffi extension ( precompiled You can find: http://www.lfd.uci.edu/~gohlke/pythonlibs/#cairocffi )
and install
- pip install cairocffi-0.8.0-cp27-cp27m-win32.whl

  1. Modify extension files:
  • script/boxes2inkscape: line 16
    added: import os

  • script/boxes2inkscape: line 114

  from: <command reldir="extensions" >boxes</command>
  to: <command reldir="extensions" interpreter="python">boxes</command>

( without this modification boxes don't run under inkscape )

  • boxes/init.py: line 526
  from: svgutil.svgMerge(self.output, self.inkscapefile, sys.stdout.buffer)
  to:  svgutil.svgMerge(self.output, self.inkscapefile, sys.stdout)

( without this modification I get error about incorrect parameter )

  1. Generate extension files
  • Run cmd as Administrator
     - python setup.py install
     - python boxes2inkscape ..\inkex
  1. Copy .inx files from ..\inkex to extension directory of inkscape ( local or global )

After this extension work very well.
Thank You !

Best Regards
Mariusz

from boxes.

florianfesti avatar florianfesti commented on July 30, 2024

For the record: The fixes above made it upstream with the exception of the
<command reldir="extensions" >boxes</command>
to
<command reldir="extensions" interpreter="python">boxes</command>
change.

from boxes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.