Open felixhoff opened 6 months ago
This happened with me when I was accidentally using python 3.8. I changed to python 3.6 and it worked.
The pyrpl version on PyPI is quite outdated so I would advise to clone the repository from github if you want a version compatible with python 3.9.
Commenting here because I you may want to update setup.py. : I had to when I installed PyRPL in my conda environment from source using the method below. Is there a better method to install in development mode ?
First I cloned and created a conda environment:
cd c:\user\labo\documents\github
git clone https://github.com/lneuhaus/pyrpl.git
cd pyrpl
git checkout python3-only
conda env create -n pyrpl -f environment_pyrpl.yml
conda activate pyrpl
Then tried python setup.py develop
and I got this error, along with some setuptools related deprecation warnings
error: Couldn't find a setup script in C:\Users\labo\AppData\Local\Temp\easy_install-zhbtau4a\PyQt5-5.14.0.tar.gz
It worked after I removed the <=5.14
requirement on PyQt5. (version is 5.15.10 in requirement_pyrpl.yml
PS:
I also tried pip install -e .
, it worked but it installed many pip packages that don't even appear in setup.py:
attrs-23.2.0
beautifulsoup4-4.12.3
bleach-6.1.0
defusedxml-0.7.1
fastjsonschema-2.20.0
importlib-metadata-8.0.0
ipython-genutils-0.2.0
jinja2-3.1.4
jsonschema-4.22.0
jsonschema-specifications-2023.12.1
jupyter-core-5.7.2
jupyterlab-pygments-0.3.0
markupsafe-2.1.5
mistune-3.0.2
nbclient-0.10.0
nbformat-5.10.4
pandocfilters-1.5.1
platformdirs-4.2.2
pyrpl-0.9.6.0
pywin32-306
pyzmq-26.0.3
qtpy-1.9.0
referencing-0.35.1
rpds-py-0.18.1
soupsieve-2.5
tinycss2-1.3.0
tornado-6.4.1
webencodings-0.5.1
zipp-3.19. 2
If you create an environment with the right packages, you don't need to run "python setup.py develop". And I think you should not ! This command will use pip as your package manager but you created an environment with conda so you should keep it as your package manager. There can be some issues when the two of them interfere. As for the extra pip packages I think they are dependencies from jupyter probably already included in a default conda environments.
I have a potential fix for install problems see - https://github.com/RedPitaya/pyrpl/pull/7/commits/1f1be51364f467f8d9523541cc96a65043b9273c
The objective is to install all the right packages then clone the pyrpl repository .. no need to install pyrpl just link to the pyrpl/pyrpl folder and import the library into your python code from pyrpl folder in your project directory.. I created a demonstration with brief instructions here - https://github.com/peteasa/pyrpl_testbench/blob/main/README.md
If I run the pip installation, I get this syntax error :