ArcWelderPlugin icon indicating copy to clipboard operation
ArcWelderPlugin copied to clipboard

Issue Install after update Ubuntu to the latest version

Open XeroZar opened this issue 1 year ago • 9 comments

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 "", line 2, in File "", line 34, in File "/tmp/pip-req-build-54ma7jnj/setup.py", line 32, in from distutils.msvccompiler import MSVCCompiler ModuleNotFoundError: No module named 'distutils.msvccompiler' [end of output]

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

XeroZar avatar Oct 28 '24 18:10 XeroZar

I have the same problem. Any advice?

taguatoyetapa avatar Nov 11 '24 14:11 taguatoyetapa

Same issue here after upgrading to the latest Octoprint version on Ubuntu 24.04.1 LTS (noble).

fiechr avatar Nov 24 '24 09:11 fiechr

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.

pebdev avatar Jan 09 '25 22:01 pebdev

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 "", line 2, in File "", line 34, in File "/tmp/pip-req-build-uqj0hspr/setup.py", line 53, in plugin_version = versioneer.get_version() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-req-build-uqj0hspr/versioneer.py", line 1480, in get_version return get_versions()["version"] ^^^^^^^^^^^^^^ File "/tmp/pip-req-build-uqj0hspr/versioneer.py", line 1412, in get_versions cfg = get_config_from_root(root) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-req-build-uqj0hspr/versioneer.py", line 342, in get_config_from_root parser = configparser.SafeConfigParser() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? [end of output]

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


XeroZar avatar Mar 02 '25 19:03 XeroZar

https://github.com/FormerLurker/ArcWelderPlugin/compare/master...gisforgirard:ArcWelderPlugin:master

gisforgirard avatar Apr 16 '25 01:04 gisforgirard

msvccompiler

https://github.com/pypa/setuptools/issues/4620#issuecomment-2323233905

gisforgirard avatar Apr 16 '25 01:04 gisforgirard

@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

tanchez1236 avatar Jul 23 '25 18:07 tanchez1236

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

DanielmGM avatar Aug 09 '25 02:08 DanielmGM

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.

plugin_pluginmanager_console.log

XeroZar avatar Aug 16 '25 17:08 XeroZar