I am running python 3.8.10 in a virtual environment on Linux Mint 20.3. They are both pretty much on plain vanilla defaults, I tend not to muck around with configurations if at all possible.
I have recently bought an Elitech RC-5 temperature data logger. Its official software is for win/mac only. Before I borrow my wife's laptop, or install windows in a virtual environment (never had much luck persuading wine to work with the USB ports), I'd like to see if it can work straight from linux.
I found this RC-5 reader on PYPI which claims to work with them to some extent.
However, when I try to install it with pip, I get the following error
How can I debug / fix this error?
I have recently bought an Elitech RC-5 temperature data logger. Its official software is for win/mac only. Before I borrow my wife's laptop, or install windows in a virtual environment (never had much luck persuading wine to work with the USB ports), I'd like to see if it can work straight from linux.
I found this RC-5 reader on PYPI which claims to work with them to some extent.
However, when I try to install it with pip, I get the following error
(pye) neil@neil-i5:~/Documents/python$ pip install elitech-datareader
Collecting elitech-datareader
Using cached elitech_datareader-1.0.5-py3-none-any.whl (17 kB)
Collecting enum34==1.1.6 (from elitech-datareader)
Using cached enum34-1.1.6-py3-none-any.whl (12 kB)
Collecting pyserial==2.7 (from elitech-datareader)
Using cached pyserial-2.7.tar.gz (122 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
Traceback (most recent call last):
File "<string>", line 18, in <module>
ImportError: cannot import name 'build_py_2to3' from 'distutils.command.build_py' (/tmp/pip-build-env-fsx48hhf/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_py.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/neil/pye/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/neil/pye/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/neil/pye/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-fsx48hhf/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-fsx48hhf/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-fsx48hhf/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 487, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-fsx48hhf/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 21, in <module>
ImportError: build_py_2to3 not found in distutils - it is required for Python 3.x
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.A bit of googling has found hints that I should fix pySerial2.7, but I've no idea how to do this. I've tried fooling around to install build_py_2to3 (didn't work), install 2to3 (worked but didn't change the result)How can I debug / fix this error?
