Comments (9)
Hi,
can you ensure that boxes installed properly? Maybe it skipped installing due to some error reason?
you can check by
pip list installed | grep boxes
from mightyscape-1.2.
Hi @vmario89
actually no, it was not installed - I was assuming it was part of the requirements.txt, my bad.
I have now tried to install it, but it does not sound to me right
pip install boxes --no-cache-dir
Collecting boxes
Downloading boxes-0.0.0.tar.gz (7.8 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: boxes
Building wheel for boxes (setup.py) ... done
Created wheel for boxes: filename=boxes-0.0.0-py2.py3-none-any.whl size=3111 sha256=bb45319bd050d01002096f3dff2e5f39b43837aed0a923373f972bea94cfc797
Stored in directory: /tmp/pip-ephem-wheel-cache-a29pnob1/wheels/36/5e/21/04cf0e4703e07bb629c779f063126fb5a618b66d19071dfc38
Successfully built boxes
Installing collected packages: boxes
Successfully installed boxes-0.0.0
And actually boxes.py is empty
cat venv/lib64/python3.10/site-packages/boxes/boxes.py
# -*- coding: utf-8 -*-
"""Main module."""
This is the full error
stderr: /home/didomax/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz/boxes.py/boxes/scripts/boxes:21: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import get_distribution
Traceback (most recent call last):
File "/home/didomax/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz/boxes.py/boxes/scripts/boxes", line 24, in <module>
import boxes
ModuleNotFoundError: No module named 'boxes'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/didomax/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz/boxes.py/boxes/scripts/boxes", line 27, in <module>
import boxes
File "/home/didomax/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz/boxes.py/boxes/scripts/../boxes/__init__.py", line 32, in <module>
from boxes import formats
File "/home/didomax/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz/boxes.py/boxes/scripts/../boxes/formats.py", line 22, in <module>
from boxes.drawing import SVGSurface, PSSurface, LBRN2Surface, Context
File "/home/didomax/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz/boxes.py/boxes/scripts/../boxes/drawing.py", line 3, in <module>
from affine import Affine
ModuleNotFoundError: No module named 'affine'
Which I do not understand, since python is able to find the libraries when called from command line.
Any clue what is going on?
Max
from mightyscape-1.2.
hi, you actually installed the wrong boxes module: https://pypi.org/project/boxes/
please try to install like the following command:
pip install git+https://github.com/florianfesti/boxes.git
then run
boxes
the output will be
boxes.py
Generate stencils for wooden boxes.
Usage:
boxes <generator> [<args>...]
boxes --list
boxes (-h | --help)
boxes --version
Options:
-h --help Show this screen.
--version Show version.
--list List available generators.
from mightyscape-1.2.
ps: i added the missing dependency in requirements.txt
from mightyscape-1.2.
Thanks for the prompt answer.
Some progress done, I can call boxes both from the command line and in the python (virtual) environment
$ boxes.py
Generate stencils for wooden boxes.
Usage:
boxes <generator> [<args>...]
boxes --list
boxes (-h | --help)
boxes --version
Options:
-h --help Show this screen.
--version Show version.
--list List available generators.
and
Python 3.11.7 (main, Jan 7 2024, 01:05:16) [GCC 13.2.1 20231216] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import boxes
>>>
However, I get the very same error as in the previous post when trying to run the extension within inkscape. My preferences.xml
<group
id="extensions"
org.inkscape.output.png.inkscape.png_bitdepth="99"
org.inkscape.output.png.inkscape.png_compression="6"
org.inkscape.output.png.inkscape.png_antialias="2"
python-interpreter="/home/didomax/venv/bin/python"
I do not know anymore where to look for issues...
from mightyscape-1.2.
looks like i will have to check it myself when using venv (actually never tried). Which OS are you running? Linux, Windows, ... ?
from mightyscape-1.2.
from mightyscape-1.2.
i tested the thing with venv and it can confirm the failure. but good news: most of plugins work really well with venv. i will change mightyscape documentation to use venv mainly because it does not mess with system libraries at all
from mightyscape-1.2.
finally fixed by c5e4801
from mightyscape-1.2.
Related Issues (20)
- openmesh installation fails on Windows 11 as a result of ssize_t unrecognised in MSVS 2022 HOT 2
- [slic3r_stl_import] Add randomize options tab
- [slic3r_stl_import] Layer height value incorrect
- [reload] IDs are modified
- [epilog_dashboard_bbox_adjust] bbox wrong calculation HOT 1
- [chain_paths] Limit number of selected items
- [filter_by_length_area]
- Flatpak Support HOT 1
- Naming of the Extension and sub folders HOT 2
- [laser_check] Find combined contours
- [qcad_svg_to_modern_dxf] add option to export separate layers
- [smooth_path} extension
- [laser_check] Check for combined contours
- box_maker_generic_generator and Festi's Boxes.py extensions do not work HOT 18
- venv experiments in Linux + Windows - does MightyScape work well with virtualenv? HOT 1
- [destructive_clip] broken HOT 1
- [repair_text] extension
- [laser_check] Add check for small images/details
- [chip_scratches] options do not apply
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mightyscape-1.2.