-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrade from LM21.3 to 22 #1907
Comments
Or: how I reinstall/compile... |
Hello, the svgelements library is missing. |
$ pip install svgelements |
upgrade to python 3 please. the transition took years, but whole world did already moved on from python 2 now... |
I have installed Python3.12. $ python3 -V But too Python2 for Oki scantool. |
bCNC installation procedure with python > 3.10 The installation of bCNC in the python source folder is no longer possible since version 3.10; you must create a virtual environment. Ref: https://www.docstring.fr/glossaire/environnement-virtuel/ The procedure is done in command line in an input terminal (right click on the desktop to open the terminal). Enter the commands in bold. 1- Create a virtual environment 2- Activate this environment 3- Load the modules needed for bCNC to work with the pip function 4- Check that the modules are installed in CNC/lib/python 3.1x/site-packages 5- If everything is correct, open the site-packages folder as an administrator and paste the bCNC folder contained in bCNC-master into it. To launch bCNC, create a launcher and search for the directory of the installed python version. Add _m bCNC to the end of the command string. |
wait a moment... pip should install those automaticaly when you install bCNC |
With python3.12 and the obligation to use a virtual environment it does not work: cncpi@raspberrypi:~ $ pip3 install --upgrade bCNC × This environment is externally managed If you wish to install a non-Debian-packaged Python package, pip install bCNC tries to install in the python root and throws an error. I faced the problem recently when ubuntu upgraded from 22.04 to 24.04 with python 3.12 integrated. My system which had been running for 3 years was no longer working. I had to do the manual installation again to restart my machine. |
then obviously it should work by installing bCNC within that venv. OR if you're naughty boy like me, then you can just remove |
It is actually much simpler. |
Thanks @ all |
No idea what is LM tho... |
Linux Mint ;) |
./bCNC.sh
Launching bCNC from .
WARNING: bCNC was recently ported to only support
python3.8 and newer.
Most things seem to work reasonably well.
Please report any issues to: https://github.com/vlachoudis/bCNC/issues
new-config bCNC <configparser.ConfigParser object at 0x75840ef81880>
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/daniel/bCNC/bCNC/main.py", line 226, in
main()
File "/home/daniel/bCNC/bCNC/main.py", line 46, in main
import bmain
File "/home/daniel/bCNC/bCNC/bmain.py", line 62, in
import CNCCanvas
File "/home/daniel/bCNC/bCNC/CNCCanvas.py", line 51, in
from CNC import CNC
File "/home/daniel/bCNC/bCNC/CNC.py", line 25, in
from svgcode import SVGcode
File "/home/daniel/bCNC/bCNC/lib/svgcode.py", line 14, in
from svgelements import SVG, Arc, Close, Line, Move, Path, Shape
ModuleNotFoundError: No module named 'svgelements'
I use Python2 too (for Oki scan tool)
python ist Python 2 and python3 is Python 3.12.3
What can I do?
The text was updated successfully, but these errors were encountered: