Inkscape.org
Beginners' Questions Boxes.py does not generate boxes.
  1. #1
    waj1051 waj1051 @waj1051

    I am using the latest version 1.0.2-2 (e86c870879, 2021-01-15). 

    the selection of a tray and insert divider tray and then setting the variables then looking for a live preview does nothing... ie: no box is generated.

    I am and newbee user so i must be doing something wrong.

    Divider Tray Setup Inkscape
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Documentation for boxes.py is here: https://florianfesti.github.io/boxes/html/index.html

  3. #3
    waj1051 waj1051 @waj1051

    I found nothing in the references that illuminate a caue of my problem. 

    When I go into the Windows native section and run the following in Python command line 

    Run the command pip install Markdown lxml affine (Note: If the command pip is not found, you probably forgot to add the Python installation to the PATH environment variable in step 2 (i did this when I installed the latest version of PYTHON)

    that command line throws and exception.at install

    any thoughts?

     

  4. #4
    waj1051 waj1051 @waj1051

    I am trying to use boxes.py to generate a type tray and I continue to get an error message "failed to execute script boxes" Any idea what the cause could be? 

  5. #5
    Tyler Durden Tyler Durden @TylerDurden
    1. Describe your OS (your computer's Operating System: Mac/Windows/Linux/etc. & version).
    2. Describe if Inkscape was newly installed, or upgraded from an earlier version.
    3. Describe the version of Inkscape and the installer you used (the file you downloaded from the web: .msi/.exe/.zip/appimage/other, PPA/Snap/Flatpak, dmg/other )
    4. Describe any special hardware being used, like tablet/stylus, external drives or multiple monitors.
    5. Describe any helper/assistive programs or keyboard modifiers (macros, languages, etc.).

    Bonus points, if you:

    • Attach* a screenshot of the issue.
  6. #6
    waj1051 waj1051 @waj1051

    I am using Windows 11 and recently upgraded Inkscape to version 1.4 the 64 bit MSI. The computer has 3 monitors and multiple internal drives but nothing else special with the computer.

    The error message is just a pop up box with the message  "failed to execute script boxes"

  7. #7
    waj1051 waj1051 @waj1051

    Hello Tyler. 
    I am going to shift gears for now and try to solve the problem on my Win 10 machine, The  extension I am wanting to function correctly is in the Boxes.Py type tray. 

    On this machine I have installed Inkscape 1.3.2 because it is my understanding that this extension has been updated for 1.3.2. I used the .exe fie to install on this machine.

    Below is the error text it displayed

    traceback (most recent call last):
      File "C:\Program Files\Inkscape1.3\share\inkscape\extensions\mightyscape-1.2\extensions\fablabchemnitz\boxes.py\boxes_proxy.py", line 119, in <module>
        boxesPyWrapper().run()
      File "C:\Program Files\Inkscape1.3\share\inkscape\extensions\inkex\base.py", line 250, in run
        self.save_raw(self.effect())
                      ^^^^^^^^^^^^^
      File "C:\Program Files\Inkscape1.3\share\inkscape\extensions\inkex\extensions.py", line 293, in effect
        fragment = self.generate()
                   ^^^^^^^^^^^^^^^
      File "C:\Program Files\Inkscape1.3\share\inkscape\extensions\mightyscape-1.2\extensions\fablabchemnitz\boxes.py\boxes_proxy.py", line 69, in generate
        cmd = PYTHONBIN + ' ' + os.path.join(boxes_dir, 'boxes') #the boxes python file (without .py ending) - we add python at the beginning to support Windows too    
              ^^^^^^^^^
    UnboundLocalError: cannot access local variable 'PYTHONBIN' where it is not associated with a value
     

     

     

  8. #8
    waj1051 waj1051 @waj1051

    I'm not sure if I have not asked the question correctly or given you enough information to help me solve my problem with this. Whatever it is I would truly appreciate a response from you.

    All I am getting is NOTHING. Please let me know what I need to do.

    Thank you.

  9. #9
    Paddy_CAD Paddy_CAD @Paddy_CAD
    waj1051

    All I am getting is NOTHING. Please let me know what I need to do.

    If nobody responds here, it's because nobody has a solution for you.

    The windows install instructions seem complicated. Check that you followed all the steps in this guide.
    https://florianfesti.github.io/boxes/html/install/windows.html

    If that doesn't help, you should reach out to the boxes.py developers and users. I am neither.
    https://github.com/florianfesti/boxes/issues

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Boxes.py does not generate boxes.