ArcWelderPlugin
ArcWelderPlugin copied to clipboard
Issue Install after update Ubuntu to the latest version
I recently did a clean install on my Ubuntu system. All other plugins install successfully except Arc Welder... Apparently its not compatibale with the latest Python... Please help.
Installing plugin "Arc Welder" from https://github.com/FormerLurker/ArcWelderPlugin/archive/master.zip... /home/pi/OctoPrint/bin/python3 -m pip --disable-pip-version-check install file:///tmp/tmprpiwt1_5/ArcWelderPlugin-master.zip --no-cache-dir Processing /tmp/tmprpiwt1_5/ArcWelderPlugin-master.zip Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error' error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details. Error! Could not parse output from pip, see plugin_pluginmanager_console.log for generated output
I have the same problem. Any advice?
Same issue here after upgrading to the latest Octoprint version on Ubuntu 24.04.1 LTS (noble).
I found a workaround for all Linux architectures (tested on Dietpi for me). I provide you a master-patched.zip. I applied these changes :
1- Download master source code
wget https://github.com/FormerLurker/ArcWelderPlugin/archive/master.zip
2- Unzip archive
unzip master.zip -d master
cd master
3- Edit setup file
vim ArcWelderPlugin-master/setup.py
Note : I had an issue by using Visual Studio Code at the end in Octoprint during the installation step (maybe a mode issue). I didn't wast any time with this, but be careful at this step.
Comment all of these lines :
#from distutils.msvccompiler import MSVCCompiler
#from distutils.bcppcompiler import BCPPCompiler
#from distutils.cygwinccompiler import CygwinCCompiler
#MSVCCompiler.compiler_type: {
# "extra_compile_args": ["/O2", "/GL", "/Gy", "/MD", "/EHsc"],
# "extra_link_args": [],
# "define_macros": [],
#},
...
#BCPPCompiler.compiler_type: {
# "extra_compile_args": ["-O3", "-std=c++11"],
# "extra_link_args": [],
# "define_macros": [],
#},
#CygwinCCompiler.compiler_type: {
# "extra_compile_args": ["-O3", "-std=c++11"],
# "extra_link_args": [],
# "define_macros": [],
#},
#MSVCCompiler.compiler_type: {
# "extra_compile_args": ["/EHsc", "/Z7"],
# "extra_link_args": ["/DEBUG"],
# "define_macros": [],
#},
...
#BCPPCompiler.compiler_type: {
# "extra_compile_args": [],
# "extra_link_args": [],
# "define_macros": [],
#},
#CygwinCCompiler.compiler_type: {
# "extra_compile_args": [],
# "extra_link_args": [],
# "define_macros": [],
#},
4- Re-create the zip file
zip -r master-patched.zip .
5- Install plugin
In Octoprint, install plugin from this archive.
I tried what you suggested @peddev and it did not work... Got this error...
Installing plugin from uploaded file... /home/pi/OctoPrint/bin/python3 -m pip --disable-pip-version-check install file:///tmp/tmpkg8_cq8a.zip --no-cache-dir Processing /tmp/tmpkg8_cq8a.zip Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error' error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
/tmp/pip-req-build-uqj0hspr/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details. Error! Could not parse output from pip, see plugin_pluginmanager_console.log for generated output
https://github.com/FormerLurker/ArcWelderPlugin/compare/master...gisforgirard:ArcWelderPlugin:master
msvccompiler
https://github.com/pypa/setuptools/issues/4620#issuecomment-2323233905
@pebdev solution worked for me using DietPi as well. I also have the issue with Octolapse, will check if a workaround like this works on Octolapse
I've figured out! I'm running Ubuntu 24.04 I've based on @pebdev 's answer, made some changes for compatibility and somehow it worked
`wget https://github.com/FormerLurker/ArcWelderPlugin/archive/master.zip unzip master.zip -d master cd master/ArcWelderPlugin-master
change SafeConfigParser to ConfigParser
sed -i 's/SafeConfigParser/ConfigParser/g' versioneer.py
#change readfp() to read_file() sed -i 's/.readfp(/.read_file(/g' versioneer.py
#delete imports of MSVC/BCPP/Cygwin on setup.py sed -i 's/from distutils.core import setup/from setuptools import setup/' setup.py sed -i '/from distutils.msvccompiler import MSVCCompiler/ s/^/#/' setup.py sed -i '/from distutils.bcppcompiler import BCPPCompiler/ s/^/#/' setup.py sed -i '/from distutils.cygwinccompiler import CygwinCCompiler/ s/^/#/' setup.py sed -i '/MSVCCompiler.compiler_type:/,/},/ s/^/#/' setup.py sed -i '/BCPPCompiler.compiler_type:/,/},/ s/^/#/' setup.py sed -i '/CygwinCCompiler.compiler_type:/,/},/ s/^/#/' setup.py
cd ../.. zip -r master-patched.zip master/ArcWelderPlugin-master ` I don't know if there's anything we can do to fix the master with those changes
I've figured out! I'm running Ubuntu 24.04 I've based on @pebdev 's answer, made some changes for compatibility and somehow it worked
`wget https://github.com/FormerLurker/ArcWelderPlugin/archive/master.zip unzip master.zip -d master cd master/ArcWelderPlugin-master
change SafeConfigParser to ConfigParser
sed -i 's/SafeConfigParser/ConfigParser/g' versioneer.py
#change readfp() to read_file() sed -i 's/.readfp(/.read_file(/g' versioneer.py
#delete imports of MSVC/BCPP/Cygwin on setup.py sed -i 's/from distutils.core import setup/from setuptools import setup/' setup.py sed -i '/from distutils.msvccompiler import MSVCCompiler/ s/^/#/' setup.py sed -i '/from distutils.bcppcompiler import BCPPCompiler/ s/^/#/' setup.py sed -i '/from distutils.cygwinccompiler import CygwinCCompiler/ s/^/#/' setup.py sed -i '/MSVCCompiler.compiler_type:/,/},/ s/^/#/' setup.py sed -i '/BCPPCompiler.compiler_type:/,/},/ s/^/#/' setup.py sed -i '/CygwinCCompiler.compiler_type:/,/},/ s/^/#/' setup.py
cd ../.. zip -r master-patched.zip master/ArcWelderPlugin-master ` I don't know if there's anything we can do to fix the master with those changes
I tried this, it still didn't work... please see attached log.