markwal / OctoPrint-GPX

An OctoPrint plug-in to use GPX as the protocol layer underneath rather than replacing g-code to talk to s3g/x3g machines, for example, a FlashForge.
GNU Affero General Public License v3.0
104 stars 26 forks source link

OctoPrint-GPX for macOS #73

Open michaelbaisch opened 4 years ago

michaelbaisch commented 4 years ago

Hello everyone,

I would like to use OctoPrint with GPX with my old Thing-o-matic. But I'm getting errors while trying to install the plugin:

Installing plugin from https://markwal.github.io/octoprint-download/OctoPrint-GPX.tar.gz...
/Users/michael/OctoPrint/venv/bin/python -m pip --disable-pip-version-check install https://markwal.github.io/octoprint-download/OctoPrint-GPX.tar.gz --no-cache-dir
Collecting https://markwal.github.io/octoprint-download/OctoPrint-GPX.tar.gz
Downloading https://markwal.github.io/octoprint-download/OctoPrint-GPX.tar.gz (125kB)
Requirement already satisfied: OctoPrint in ./venv/lib/python2.7/site-packages/OctoPrint-1.3.12-py2.7.egg (from OctoPrint-GPX==2.6.3) (1.3.12)
Requirement already satisfied: flask<0.11,>=0.10.1 in ./venv/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.10.1)
Requirement already satisfied: Jinja2<2.9,>=2.8.1 in ./venv/lib/python2.7/site-packages/Jinja2-2.8.1-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (2.8.1)
Requirement already satisfied: tornado==4.5.3 in ./venv/lib/python2.7/site-packages/tornado-4.5.3-py2.7-macosx-10.15-x86_64.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (4.5.3)
Requirement already satisfied: Flask-Login<0.3,>=0.2.11 in ./venv/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.2.11)
Requirement already satisfied: regex!=2018.11.6 in ./venv/lib/python2.7/site-packages/regex-2019.11.1-py2.7-macosx-10.15-x86_64.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (2019.11.1)
Requirement already satisfied: Flask-Principal<0.5,>=0.4 in ./venv/lib/python2.7/site-packages/Flask_Principal-0.4.0-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.4.0)
Requirement already satisfied: Flask-Babel<0.13,>=0.12 in ./venv/lib/python2.7/site-packages/Flask_Babel-0.12.2-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.12.2)
Requirement already satisfied: Flask-Assets<0.13,>=0.12 in ./venv/lib/python2.7/site-packages/Flask_Assets-0.12-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.12)
Requirement already satisfied: werkzeug<0.16,>=0.15.1 in ./venv/lib/python2.7/site-packages/Werkzeug-0.15.6-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.15.6)
Requirement already satisfied: cachelib<0.2,>=0.1 in ./venv/lib/python2.7/site-packages/cachelib-0.1-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.1)
Requirement already satisfied: PyYAML<6,>=5.1 in ./venv/lib/python2.7/site-packages/PyYAML-5.1.2-py2.7-macosx-10.15-x86_64.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (5.1.2)
Requirement already satisfied: markdown<3.1,>=3.0 in ./venv/lib/python2.7/site-packages/Markdown-3.0.1-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (3.0.1)
Requirement already satisfied: pyserial<3.5,>=3.4 in ./venv/lib/python2.7/site-packages/pyserial-3.4-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (3.4)
Requirement already satisfied: netaddr<0.8,>=0.7.19 in ./venv/lib/python2.7/site-packages/netaddr-0.7.19-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.7.19)
Requirement already satisfied: watchdog<0.10,>=0.9.0 in ./venv/lib/python2.7/site-packages/watchdog-0.9.0-py2.7-macosx-10.15-x86_64.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.9.0)
Requirement already satisfied: sarge==0.1.5post0 in ./venv/lib/python2.7/site-packages/sarge-0.1.5.post0-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.1.5.post0)
Requirement already satisfied: netifaces<0.11,>=0.10.9 in ./venv/lib/python2.7/site-packages/netifaces-0.10.9-py2.7-macosx-10.15-x86_64.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.10.9)
Requirement already satisfied: pylru<1.3,>=1.2 in ./venv/lib/python2.7/site-packages/pylru-1.2.0-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (1.2.0)
Requirement already satisfied: rsa<5,>=4.0 in ./venv/lib/python2.7/site-packages/rsa-4.0-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (4.0)
Requirement already satisfied: pkginfo<1.6,>=1.5.0.1 in ./venv/lib/python2.7/site-packages/pkginfo-1.5.0.1-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (1.5.0.1)
Requirement already satisfied: requests<3,>=2.21.0 in ./venv/lib/python2.7/site-packages/requests-2.22.0-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (2.22.0)
Requirement already satisfied: semantic_version<2.7,>=2.6 in ./venv/lib/python2.7/site-packages/semantic_version-2.6.0-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (2.6.0)
Requirement already satisfied: psutil<5.7,>=5.6.1 in ./venv/lib/python2.7/site-packages/psutil-5.6.5-py2.7-macosx-10.15-x86_64.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (5.6.5)
Requirement already satisfied: Click<8,>=7 in ./venv/lib/python2.7/site-packages/Click-7.0-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (7.0)
Requirement already satisfied: awesome-slugify<1.7,>=1.6.5 in ./venv/lib/python2.7/site-packages/awesome_slugify-1.6.5-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (1.6.5)
Requirement already satisfied: feedparser<5.3,>=5.2.1 in ./venv/lib/python2.7/site-packages/feedparser-5.2.1-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (5.2.1)
Requirement already satisfied: chainmap<1.1,>=1.0.3 in ./venv/lib/python2.7/site-packages/chainmap-1.0.3-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (1.0.3)
Requirement already satisfied: future<0.18,>=0.17.1 in ./venv/lib/python2.7/site-packages/future-0.17.1-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.17.1)
Requirement already satisfied: scandir<1.11,>=1.10 in ./venv/lib/python2.7/site-packages/scandir-1.10.0-py2.7-macosx-10.15-x86_64.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (1.10.0)
Requirement already satisfied: websocket-client<0.57,>=0.56 in ./venv/lib/python2.7/site-packages/websocket_client-0.56.0-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.56.0)
Requirement already satisfied: wrapt<1.12,>=1.11.1 in ./venv/lib/python2.7/site-packages/wrapt-1.11.2-py2.7-macosx-10.15-x86_64.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (1.11.2)
Requirement already satisfied: futures<3.3,>=3.2 in ./venv/lib/python2.7/site-packages/futures-3.2.0-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (3.2.0)
Requirement already satisfied: emoji<0.6,>=0.5.1 in ./venv/lib/python2.7/site-packages/emoji-0.5.4-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.5.4)
Requirement already satisfied: monotonic<1.6,>=1.5 in ./venv/lib/python2.7/site-packages/monotonic-1.5-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (1.5)
Requirement already satisfied: frozendict<1.3,>=1.2 in ./venv/lib/python2.7/site-packages/frozendict-1.2-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (1.2)
Requirement already satisfied: sentry-sdk==0.7.7 in ./venv/lib/python2.7/site-packages/sentry_sdk-0.7.7-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (0.7.7)
Requirement already satisfied: typing<4,>=3.6.6 in ./venv/lib/python2.7/site-packages/typing-3.7.4.1-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (3.7.4.1)
Requirement already satisfied: filetype<2,>=1.0.5 in ./venv/lib/python2.7/site-packages/filetype-1.0.5-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (1.0.5)
Requirement already satisfied: appdirs>=1.4.0 in ./venv/lib/python2.7/site-packages/appdirs-1.4.3-py2.7.egg (from OctoPrint->OctoPrint-GPX==2.6.3) (1.4.3)
Requirement already satisfied: itsdangerous>=0.21 in ./venv/lib/python2.7/site-packages/itsdangerous-1.1.0-py2.7.egg (from flask<0.11,>=0.10.1->OctoPrint->OctoPrint-GPX==2.6.3) (1.1.0)
Requirement already satisfied: MarkupSafe in ./venv/lib/python2.7/site-packages/MarkupSafe-1.1.1-py2.7-macosx-10.15-x86_64.egg (from Jinja2<2.9,>=2.8.1->OctoPrint->OctoPrint-GPX==2.6.3) (1.1.1)
Requirement already satisfied: singledispatch in ./venv/lib/python2.7/site-packages/singledispatch-3.4.0.3-py2.7.egg (from tornado==4.5.3->OctoPrint->OctoPrint-GPX==2.6.3) (3.4.0.3)
Requirement already satisfied: certifi in ./venv/lib/python2.7/site-packages/certifi-2019.9.11-py2.7.egg (from tornado==4.5.3->OctoPrint->OctoPrint-GPX==2.6.3) (2019.9.11)
Requirement already satisfied: backports_abc>=0.4 in ./venv/lib/python2.7/site-packages/backports_abc-0.5-py2.7.egg (from tornado==4.5.3->OctoPrint->OctoPrint-GPX==2.6.3) (0.5)
Requirement already satisfied: blinker in ./venv/lib/python2.7/site-packages/blinker-1.4-py2.7.egg (from Flask-Principal<0.5,>=0.4->OctoPrint->OctoPrint-GPX==2.6.3) (1.4)
Requirement already satisfied: Babel>=2.3 in ./venv/lib/python2.7/site-packages/Babel-2.7.0-py2.7.egg (from Flask-Babel<0.13,>=0.12->OctoPrint->OctoPrint-GPX==2.6.3) (2.7.0)
Requirement already satisfied: webassets>=0.11.1 in ./venv/lib/python2.7/site-packages/webassets-0.12.1-py2.7.egg (from Flask-Assets<0.13,>=0.12->OctoPrint->OctoPrint-GPX==2.6.3) (0.12.1)
Requirement already satisfied: argh>=0.24.1 in ./venv/lib/python2.7/site-packages/argh-0.26.2-py2.7.egg (from watchdog<0.10,>=0.9.0->OctoPrint->OctoPrint-GPX==2.6.3) (0.26.2)
Requirement already satisfied: pathtools>=0.1.1 in ./venv/lib/python2.7/site-packages/pathtools-0.1.2-py2.7.egg (from watchdog<0.10,>=0.9.0->OctoPrint->OctoPrint-GPX==2.6.3) (0.1.2)
Requirement already satisfied: pyasn1>=0.1.3 in ./venv/lib/python2.7/site-packages/pyasn1-0.4.8-py2.7.egg (from rsa<5,>=4.0->OctoPrint->OctoPrint-GPX==2.6.3) (0.4.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./venv/lib/python2.7/site-packages/chardet-3.0.4-py2.7.egg (from requests<3,>=2.21.0->OctoPrint->OctoPrint-GPX==2.6.3) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in ./venv/lib/python2.7/site-packages/idna-2.8-py2.7.egg (from requests<3,>=2.21.0->OctoPrint->OctoPrint-GPX==2.6.3) (2.8)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./venv/lib/python2.7/site-packages/urllib3-1.25.7-py2.7.egg (from requests<3,>=2.21.0->OctoPrint->OctoPrint-GPX==2.6.3) (1.25.7)
Requirement already satisfied: Unidecode<0.05,>=0.04.14 in ./venv/lib/python2.7/site-packages/Unidecode-0.4.21-py2.7.egg (from awesome-slugify<1.7,>=1.6.5->OctoPrint->OctoPrint-GPX==2.6.3) (0.4.21)
Requirement already satisfied: six in ./venv/lib/python2.7/site-packages/six-1.13.0-py2.7.egg (from websocket-client<0.57,>=0.56->OctoPrint->OctoPrint-GPX==2.6.3) (1.13.0)
Requirement already satisfied: pytz>=2015.7 in ./venv/lib/python2.7/site-packages/pytz-2019.3-py2.7.egg (from Babel>=2.3->Flask-Babel<0.13,>=0.12->OctoPrint->OctoPrint-GPX==2.6.3) (2019.3)
Building wheels for collected packages: OctoPrint-GPX
Building wheel for OctoPrint-GPX (setup.py): started
ERROR: Command errored out with exit status 1:
command: /Users/michael/OctoPrint/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-req-build-5ByioH/setup.py'"'"'; __file__='"'"'/private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-req-build-5ByioH/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-wheel-zNsIji --python-tag cp27
cwd: /private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-req-build-5ByioH/
Complete output (54 lines):
running bdist_wheel
running build
got version from file /private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-req-build-5ByioH/octoprint_GPX/_version.py {'version': '2.6.3', 'full': '23ba898fe267736c57dd341863e494a25b8dc0f9'}
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-2.7
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX
copying octoprint_GPX/_version.py -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX
copying octoprint_GPX/__init__.py -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX
copying octoprint_GPX/gpxprinter.py -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX
copying octoprint_GPX/iniparser.py -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX
running egg_info
creating OctoPrint_GPX.egg-info
writing requirements to OctoPrint_GPX.egg-info/requires.txt
writing OctoPrint_GPX.egg-info/PKG-INFO
writing top-level names to OctoPrint_GPX.egg-info/top_level.txt
writing dependency_links to OctoPrint_GPX.egg-info/dependency_links.txt
writing entry points to OctoPrint_GPX.egg-info/entry_points.txt
writing manifest file 'OctoPrint_GPX.egg-info/SOURCES.txt'
reading manifest file 'OctoPrint_GPX.egg-info/SOURCES.txt'
writing manifest file 'OctoPrint_GPX.egg-info/SOURCES.txt'
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/css
copying octoprint_GPX/static/css/gpx.css -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/css
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/less
copying octoprint_GPX/static/less/Makefile -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/less
copying octoprint_GPX/static/less/gpx.less -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/less
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/js
copying octoprint_GPX/static/js/gpx.js -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/js
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/templates
copying octoprint_GPX/templates/GPX_settings.jinja2 -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/templates
running build_ext
building 'gpx' extension
creating build/temp.macosx-10.15-x86_64-2.7
creating build/temp.macosx-10.15-x86_64-2.7/GPX
creating build/temp.macosx-10.15-x86_64-2.7/GPX/src
creating build/temp.macosx-10.15-x86_64-2.7/GPX/src/pymodule
creating build/temp.macosx-10.15-x86_64-2.7/GPX/src/shared
creating build/temp.macosx-10.15-x86_64-2.7/GPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/pymodule/gpxmodule.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/pymodule/gpxmodule.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/shared/machine_config.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/shared/machine_config.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/shared/opt.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/shared/opt.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/gpx/vector.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/gpx/vector.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/gpx/gpx.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/gpx/gpx.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/gpx/gpx-main.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/gpx/gpx-main.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/gpx/gpxresp.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/gpx/gpxresp.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
GPX/src/gpx/gpxresp.c:900:19: error: use of undeclared identifier 'B57600'
speed=B57600;
^
GPX/src/gpx/gpxresp.c:906:19: error: use of undeclared identifier 'B115200'
speed=B115200;
^
2 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for OctoPrint-GPX
Building wheel for OctoPrint-GPX (setup.py): finished with status 'error'
Running setup.py clean for OctoPrint-GPX
Failed to build OctoPrint-GPX
Installing collected packages: OctoPrint-GPX
Running setup.py install for OctoPrint-GPX: started
ERROR: Command errored out with exit status 1:
command: /Users/michael/OctoPrint/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-req-build-5ByioH/setup.py'"'"'; __file__='"'"'/private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-req-build-5ByioH/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-record-UevZkz/install-record.txt --single-version-externally-managed --compile --install-headers /Users/michael/OctoPrint/venv/bin/../include/site/python2.7/OctoPrint-GPX
cwd: /private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-req-build-5ByioH/
Complete output (52 lines):
running install
running build
got version from file /private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-req-build-5ByioH/octoprint_GPX/_version.py {'version': '2.6.3', 'full': '23ba898fe267736c57dd341863e494a25b8dc0f9'}
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-2.7
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX
copying octoprint_GPX/_version.py -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX
copying octoprint_GPX/__init__.py -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX
copying octoprint_GPX/gpxprinter.py -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX
copying octoprint_GPX/iniparser.py -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX
running egg_info
writing requirements to OctoPrint_GPX.egg-info/requires.txt
writing OctoPrint_GPX.egg-info/PKG-INFO
writing top-level names to OctoPrint_GPX.egg-info/top_level.txt
writing dependency_links to OctoPrint_GPX.egg-info/dependency_links.txt
writing entry points to OctoPrint_GPX.egg-info/entry_points.txt
reading manifest file 'OctoPrint_GPX.egg-info/SOURCES.txt'
writing manifest file 'OctoPrint_GPX.egg-info/SOURCES.txt'
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/css
copying octoprint_GPX/static/css/gpx.css -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/css
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/less
copying octoprint_GPX/static/less/Makefile -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/less
copying octoprint_GPX/static/less/gpx.less -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/less
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/js
copying octoprint_GPX/static/js/gpx.js -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/static/js
creating build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/templates
copying octoprint_GPX/templates/GPX_settings.jinja2 -> build/lib.macosx-10.15-x86_64-2.7/octoprint_GPX/templates
running build_ext
building 'gpx' extension
creating build/temp.macosx-10.15-x86_64-2.7
creating build/temp.macosx-10.15-x86_64-2.7/GPX
creating build/temp.macosx-10.15-x86_64-2.7/GPX/src
creating build/temp.macosx-10.15-x86_64-2.7/GPX/src/pymodule
creating build/temp.macosx-10.15-x86_64-2.7/GPX/src/shared
creating build/temp.macosx-10.15-x86_64-2.7/GPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/pymodule/gpxmodule.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/pymodule/gpxmodule.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/shared/machine_config.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/shared/machine_config.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/shared/opt.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/shared/opt.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/gpx/vector.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/gpx/vector.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/gpx/gpx.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/gpx/gpx.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/gpx/gpx-main.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/gpx/gpx-main.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c GPX/src/gpx/gpxresp.c -o build/temp.macosx-10.15-x86_64-2.7/GPX/src/gpx/gpxresp.o -DGPX_VERSION="\"OctoPrint\"" -DSERIAL_SUPPORT -fvisibility=hidden -IGPX/build/src/shared -IGPX/src/shared -IGPX/src/gpx
GPX/src/gpx/gpxresp.c:900:19: error: use of undeclared identifier 'B57600'
speed=B57600;
^
GPX/src/gpx/gpxresp.c:906:19: error: use of undeclared identifier 'B115200'
speed=B115200;
^
2 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/michael/OctoPrint/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-req-build-5ByioH/setup.py'"'"'; __file__='"'"'/private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-req-build-5ByioH/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/zk/68mn83ls3m1f4zz5bjhxcwsh0000gn/T/pip-record-UevZkz/install-record.txt --single-version-externally-managed --compile --install-headers /Users/michael/OctoPrint/venv/bin/../include/site/python2.7/OctoPrint-GPX Check the logs for full command output.
Running setup.py install for OctoPrint-GPX: finished with status 'error'
Error!
Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

I know in the Compatibility Information it only says linux, but since GPX is running on macOS, I believe this should be possible. Any quick ideas how to make it work?

Thanks :)

Sanerix commented 4 years ago

Some declaration problem

download and extract archive in src/gpxresp.c change line 900 and 906 and remove B .... speed=57600; break; // TODO auto detect speed when 0? case 0: // 0 means default of 115200 *baudrate=115200; case 115200: speed=115200; ....

install plugin using dir name instead of archive

Script succeded for me...

Sanerix commented 4 years ago

Either that, or replacing the src/ files with the lates GPX results in plugin loading, though I get segmentation fault thereafter

markwal commented 3 years ago

I don't have OctoPrint running on a Mac, but since 2.6.7 fixes that compile issue, perhaps it works now?

michaelbaisch commented 2 years ago

Now it would be nice to be able to simply select it in OctoPrint - https://github.com/markwal/plugins.octoprint.org/pull/1