Open ltspicer opened 1 month ago
Or: how I reinstall/compile...
Hello, the svgelements library is missing. Just do pip install svgelements from the command line. JP
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. WARNING: You are using pip version 20.1.1; however, version 20.3.4 is available. You should consider upgrading via the '/usr/bin/python2 -m pip install --upgrade pip' command.
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 Python 3.12.3
But too Python2 for Oki scantool. Is bCNC ready for Python3.12? I coded a Linux installer for dxf2gcode ( https://github.com/ltspicer/dxf2gcode.linux.installer ). Python3.11- is not the same than 3.12+. I had to adapt the script!
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 venv CNC (CNC as an example, any name can be chosen)
2- Activate this environment source bin/activate
3- Load the modules needed for bCNC to work with the pip function pip install pillow pip install opencv-python pip install numpy pip install svgelements pip install shxparser pip install pyserial pip install scipy
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. /desktop/CNC/lib/python3.1x -m bCNC (x varies depending on the installed version. Best regards, JP
3- Load the modules needed for bCNC to work with the pip function pip install pillow pip install opencv-python pip install numpy pip install svgelements pip install shxparser pip install pyserial pip install scipy
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 error: externally-managed-environment
× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.
If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path supprimer le lien Then use path/to/venv/bin/python and path supprimer le lien Make sure you have python3-full installed.
pip install bCNC tries to install in the python root and throws an error. With my procedure it works, but there is surely a way to automate the process.
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. JP
With python3.12 and the obligation to use a virtual environment it does not work
then obviously it should work by installing bCNC within that venv.
OR
if you're naughty boy like me, then you can just remove /usr/lib/python3.12/EXTERNALLY-MANAGED
file :-)
It is actually much simpler.
Thanks @ all I have now downgraded to LM21.3 , because there were other problems with LM22.
No idea what is LM tho...
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?