Closed djs45 closed 4 years ago
You need a newer version of python:
ERROR: Package 'setuptools-golang' requires a different Python: 3.5.3 not in '>=3.6.1'
If you can't upgrade your python version, take a look at using coapcmd instead.
Regards, M
Hello and thanks for your answer. No way to upgrade python properly on raspbian. No way to use coapcmd (bash install doesn't work ?). After reflexion, I updated Raspbian to buster to have a true Pytahon 3.7.x and I work. I think it will be a good thing to keep compatibility with Raspbian stratch (and Python 3.5.3 in fact) BR Sebastien
Installing coapcmd requires a working go compiler, version 1.11 or higher. There are prebuild binaries of coapcmd for arm v6 and v7 in the repo (https://github.com/moroen/coapcmd/releases/tag/v0.1.2). These should work on any Pi with stretch, so coapcmd is how compatibility with stretch is kept.
There is way to get py3coap on python 3.5.x, but that requires compiling the extension manually. I think python3.5 is sufficiently old that I don't plan to maintain prebuild wheels for it, but if there's interest, I guess it's possible to create a Makefile for getting py3coap working for 3.5.x systems
Regards, M
With Raspbian buster all is ok. Many thanks
Hello. I wan't to test and use Tradfri with my Domoticz but I can't install py3coap. This is the error : Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting py3coap Using cached py3coap-0.8.0.tar.gz (5.3 kB) ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nk8dbhfw/py3coap/setup.py'"'"'; file='"'"'/tmp/pip-install-nk8dbhfw/py3coap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-nk8dbhfw/py3coap/pip-egg-info cwd: /tmp/pip-install-nk8dbhfw/py3coap/ Complete output (31 lines): ERROR: Package 'setuptools-golang' requires a different Python: 3.5.3 not in '>=3.6.1' Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/setuptools/installer.py", line 128, in fetch_build_egg subprocess.check_call(cmd) File "/usr/lib/python3.5/subprocess.py", line 271, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpvpu85hj0', '--quiet', 'setuptools-golang']' returned non-zero exit status 1
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Can you help me ?
Many thanks in advance