pyxcli can't be installed on python3.11+

Bug #2060694 reported by Eric Harney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

On python 3.11+, pyxcli can't be installed because its dependency "bunch" does not support python3.11. This affects the ibm_storage XIV driver. (bunch was last released in 2011.)

$ tox -e py311 (after adding pyxcli to test-requirements.txt)

Collecting bunch (from pyxcli>=1.1.5->-r /home/eharney/src/cinder-review23/test-requirements.txt (line 45))
  Using cached bunch-1.0.1.zip (11 kB)
  Preparing metadata (setup.py) ... error

  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-_hb1q3r1/bunch_ca76dd7b029344f48611616a5bc47387/setup.py", line 11, in <module>
          package_file = open(join(HERE, 'bunch/__init__.py'), 'rU')
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ValueError: invalid mode: 'rU'
      [end of output]

Tags: drivers ibm
Revision history for this message
Takashi Kajinami (kajinamit) wrote :

It seems bunch hasn't get any release for 12 years... https://pypi.org/project/bunch/

Probably pyxcli needs to be updated to get rid of that dependency ? Though pyxcli itself hasn't been updated for 5 years...

Revision history for this message
Takashi Kajinami (kajinamit) wrote :

Maybe replacing bunch by munch is the appropriate way ? https://github.com/Infinidat/munch

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.