Bug 1459634 - scipy uses a bundled modified six and does not work correctly if using the system version
Summary: scipy uses a bundled modified six and does not work correctly if using the sy...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: scipy
Version: rh-python35
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Nikola Forró
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 1465545
TreeView+ depends on / blocked
 
Reported: 2017-06-07 16:18 UTC by Paulo Andrade
Modified: 2021-03-11 15:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1465545 (view as bug list)
Environment:
Last Closed: 2019-06-14 14:08:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Unbundle six properly (42.41 KB, patch)
2018-11-21 17:25 UTC, Nikola Forró
no flags Details | Diff

Description Paulo Andrade 2017-06-07 16:18:02 UTC
Example command:

"""
$ scl enable rh-python35 'python -c "from scipy import ndimage"'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/rh/rh-python35/root/usr/lib64/python3.5/site-packages/scipy/ndimage/__init__.py", line 161, in <module>
    from .filters import *
  File "/opt/rh/rh-python35/root/usr/lib64/python3.5/site-packages/scipy/ndimage/filters.py", line 37, in <module>
    from scipy.misc import doccer
  File "/opt/rh/rh-python35/root/usr/lib64/python3.5/site-packages/scipy/misc/__init__.py", line 51, in <module>
    from scipy.special import comb, factorial, factorial2, factorialk
  File "/opt/rh/rh-python35/root/usr/lib64/python3.5/site-packages/scipy/special/__init__.py", line 629, in <module>
    from .basic import *
  File "/opt/rh/rh-python35/root/usr/lib64/python3.5/site-packages/scipy/special/basic.py", line 10, in <module>
    from six import xrange
ImportError: cannot import name 'xrange'
"""

The correction is to rebuild rh-python35-scipy backporting
http://pkgs.fedoraproject.org/cgit/rpms/scipy.git/commit/scipy.spec?id=b51885ba54e6a172fff77a2162becdfb4a83a15c

Comment 5 Nikola Forró 2018-11-21 17:24:53 UTC
Instead of reverting to bundling six, I think better approach is to fix the broken imports.

Comment 6 Nikola Forró 2018-11-21 17:25:14 UTC
Created attachment 1507748 [details]
Unbundle six properly

Comment 7 Joe Orton 2019-03-14 11:02:42 UTC
Red Hat does not currently plan to provide any further changes to this collection in a Red Hat Software Collections update release.

This software collection is nearing the retirement date (May 2019) after which customers are encouraged to upgrade to a later release.

Please contact Red Hat Support if you have further questions, or refer to the support lifecycle page for more information. https://access.redhat.com/support/policy/updates/rhscl/

Comment 8 Honza Horak 2019-06-14 14:08:09 UTC
Closing as this collection is EOL now.


Note You need to log in before you can comment on or make changes to this bug.