Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

siglent power backend incompatible with Python 3.13 #1507

Open
Bastian-Krause opened this issue Sep 30, 2024 · 2 comments
Open

siglent power backend incompatible with Python 3.13 #1507

Bastian-Krause opened this issue Sep 30, 2024 · 2 comments
Labels

Comments

@Bastian-Krause
Copy link
Member

The siglent power backend uses the vxi11 module. It hasn't seen any activity in the last 7 years. It still uses the deprecated xdrlib module from the Python standard library. xdrlib will be removed in Python 3.13 which is expected next week.

Upstream issue: python-ivi/python-vxi11#49

If nobody steps in, we will deprecate the siglent power backend and drop it in the foreseeable future.

Cc @esben (original contributor of the siglent power backend)

Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Sep 30, 2024
See labgrid-project#1507 for more
details.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Sep 30, 2024
See labgrid-project#1507 for more
details.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Sep 30, 2024
See labgrid-project#1507 for more
details.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Sep 30, 2024
On Python 3.13, the vxi11 module import fails:

  autodoc: failed to import module 'siglent' from module 'labgrid.driver.power'; the following exception was raised:
  No module named 'xdrlib'

It uses xdrlib which was dropped from Python's standard library with
Python 3.13. See labgrid-project#1507
for more details.

For the time being, mock the vxi11 module to make the doc builds work on
Python 3.13.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Sep 30, 2024
On Python 3.13, the vxi11 module import fails:

  autodoc: failed to import module 'siglent' from module 'labgrid.driver.power'; the following exception was raised:
  No module named 'xdrlib'

It uses xdrlib which was dropped from Python's standard library with
Python 3.13. See labgrid-project#1507
for more details.

For the time being, mock the vxi11 module to make the doc builds work on
Python 3.13.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Oct 8, 2024
On Python 3.13, the vxi11 module import fails:

  autodoc: failed to import module 'siglent' from module 'labgrid.driver.power'; the following exception was raised:
  No module named 'xdrlib'

It uses xdrlib which was dropped from Python's standard library with
Python 3.13. See labgrid-project#1507
for more details.

For the time being, mock the vxi11 module to make the doc builds work on
Python 3.13.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Oct 8, 2024
On Python 3.13, the vxi11 module import fails:

  autodoc: failed to import module 'siglent' from module 'labgrid.driver.power'; the following exception was raised:
  No module named 'xdrlib'

It uses xdrlib which was dropped from Python's standard library with
Python 3.13. See labgrid-project#1507
for more details.

For the time being, mock the vxi11 module to make the doc builds work on
Python 3.13.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Oct 10, 2024
On Python 3.13, the vxi11 module import fails:

  autodoc: failed to import module 'siglent' from module 'labgrid.driver.power'; the following exception was raised:
  No module named 'xdrlib'

It uses xdrlib which was dropped from Python's standard library with
Python 3.13. See labgrid-project#1507
for more details.

For the time being, mock the vxi11 module to make the doc builds work on
Python 3.13.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Oct 14, 2024
On Python 3.13, the vxi11 module import fails:

  autodoc: failed to import module 'siglent' from module 'labgrid.driver.power'; the following exception was raised:
  No module named 'xdrlib'

It uses xdrlib which was dropped from Python's standard library with
Python 3.13. See labgrid-project#1507
for more details.

For the time being, mock the vxi11 module to make the doc builds work on
Python 3.13.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause added a commit to Bastian-Krause/labgrid that referenced this issue Oct 16, 2024
See labgrid-project#1507 for more
details.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Emantor pushed a commit to Bastian-Krause/labgrid that referenced this issue Oct 21, 2024
On Python 3.13, the vxi11 module import fails:

  autodoc: failed to import module 'siglent' from module 'labgrid.driver.power'; the following exception was raised:
  No module named 'xdrlib'

It uses xdrlib which was dropped from Python's standard library with
Python 3.13. See labgrid-project#1507
for more details.

For the time being, mock the vxi11 module to make the doc builds work on
Python 3.13.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
@heevasti
Copy link

Hi Bastian, we had a similar problem with our Tektronix 5014 AWG. Our control software for it depends also on the use of python-vxi11. But, you can extend life by putting in project dependencies for Python 3.13 version to https://github.com/da4089/py-xdrlib. It install the py-xdrlib in the same namespace as the xdrlib, so the import statement won't raise an exception and will work 'as usual'. Note that the currently latest version in Pypi is still 4.0.1. which does not work. So the pip install needs (at the moment) be done directly from the Github project.

I hope this information helps, with that these old hardware can be made run a little longer with the old dependencies.

@esben
Copy link
Contributor

esben commented Dec 11, 2024

You could also use https://github.com/youknowone/python-deadlib, and install standard-xdrlib which should provide a clean backport of the removed xdrlib module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants