pyrpl does not support python3

Applications, development tools, FPGA, C, WEB
Post Reply
paracpg
Posts: 13
Joined: Tue Aug 13, 2024 9:37 pm

pyrpl does not support python3

Post by paracpg » Fri Oct 04, 2024 6:30 pm

Hi,
There are multiple branches on various repositories with the python3 changes. I have brought all this together and could commit it to https://github.com/RedPitaya/pyrpl.git however I think that this should also be a version change in the code.

Code: Select all

__version_info__ = (0, 9, 6, 0)
Would be best moved to

Code: Select all

__version_info__ = (1, 0, 0, 0)
@33dnp has requested pull requests for python3 support

https://github.com/danielbrown2/pyrpl.git
https://github.com/RedPitaya/pyrpl.git has a py3.10_test branch
https://github.com/lneuhaus/pyrpl.git has a python3-only branch

As the setup process is also broken for python3. I use python modules from the Ubuntu 24.04.1 repository so:
sudo apt install python3-ipython python3-numpy python3-pandas python3-scp python3-paramiko python3-scipy python3-ruamel.yaml python3-qtpy python3-qasync python3-pyqtgraph python3-nest-asyncio python3-matplotlib python3-yaml

gives you
IPython 8.20.0
numpy 1.26.4
pandas 2.1.4
paramiko 2.12.0
scipy 1.11.4
scp 0.14.5
ruamel.yaml 0.17.21
yaml 6.0.1
qtpy 2.4.1

Any objections to updating master to 1.0 for python3?

33dnp
Posts: 39
Joined: Fri Jul 17, 2020 6:00 am

Re: pyrpl does not support python3

Post by 33dnp » Mon Oct 07, 2024 4:01 am

Hi
No objections )) the main thing is that everything works ))

User avatar
redpitaya
Site Admin
Posts: 968
Joined: Wed Mar 26, 2014 7:04 pm

Re: pyrpl does not support python3

Post by redpitaya » Mon Oct 07, 2024 7:27 am

Hello paracpg,

Thank you for taking the time to collect all the changes from various GitHub branches together into this one commit. We are grateful to you and the rest of the community members who contributed to the project.

paracpg
Posts: 13
Joined: Tue Aug 13, 2024 9:37 pm

Re: pyrpl does not support python3

Post by paracpg » Mon Oct 07, 2024 9:15 am

No problem. The next step will be to re-instate the python test in github. I will not be able to do this as it requires hardware. Not sure how this is done, but it was enabled previously in https://github.com/lneuhaus/pyrpl

On the testing topic .. nose is being depreciated so the tests should be refactored for PyTest.

The tests are worth maintaining. I found a couple of missed code changes and bugs whilst working on the python3 changes using the nose tests.

So I would recommend anyone who plans to submit a change to the pyrpl code to run the tests prior to submission and confirm that no new failures are introduced!

On the outstanding issues in https://github.com/lneuhaus/pyrpl/issues is there a way to drag those across to https://github.com/RedPitaya/pyrpl or at least allow new issues to be raised against the python3 code?

User avatar
redpitaya
Site Admin
Posts: 968
Joined: Wed Mar 26, 2014 7:04 pm

Re: pyrpl does not support python3

Post by redpitaya » Mon Oct 07, 2024 12:27 pm

Seems like there is a way to transfer issues between repositories, but write access is required for both repositories: https://docs.github.com/en/issues/track ... repository

We will see what we can do.

paracpg
Posts: 13
Joined: Tue Aug 13, 2024 9:37 pm

Re: pyrpl does not support python3

Post by paracpg » Sun Oct 20, 2024 9:06 pm

As you can imagine I am very keen to see python3 supported in pyrpl. Now @Lightsaver7 has mentioned that, understandably the RedPitaya team do not want to merge commits without conducting proper tests and studying the capabilities of the environment. Now as I see it the advantage of an open source project is that the "team" is actually larger.

To this end I have added a set of simple python3 scripts to help explore the capabilities of the pyrpl environment. You will find these in https://github.com/peteasa/pyrpl_testbe ... ain/basics.

In addition the https://github.com/peteasa/pyrpl/tree/c ... te_python3 branch contains a set of changes from the py3.10_test and python3-only branches that pass and fix some of the nose python tests included in the repository.

I note that @michaelcroquette is active in the source repository at https://github.com/lneuhaus/pyrpl/commits/py3.10_test and the multiple people are adding Issues to the source repository.. see https://github.com/lneuhaus/pyrpl/issues. My conclusion is that there are others who would perhaps be able to contribute to this "team" effort.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: Bing [Bot] and 1 guest