Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#57410 closed defect (fixed)

py-requests: unable to import

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-requests

Description

uhd-devel destroot fails on buildbot worker:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.24) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_uhd/uhd-devel/work/destroot/opt/local/share/uhd/utils/uhd_images_downloader.py", line 21, in <module>
    import requests
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/__init__.py", line 112, in <module>
    from . import utils
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/utils.py", line 26, in <module>
    from ._internal_utils import to_native_string
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/_internal_utils.py", line 11, in <module>
    from .compat import is_py2, builtin_str, str
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/compat.py", line 48, in <module>
    from urllib3.packages.ordered_dict import OrderedDict
ImportError: No module named ordered_dict
Command failed: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_uhd/uhd-devel/work/destroot/opt/local/share/uhd/utils/uhd_images_downloader.py --verbose --install-location=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_uhd/uhd-devel/work/destroot/opt/local/share/uhd/images
Exit code: 1
Error: Failed to destroot uhd-devel: command execution failed

Change History (4)

comment:1 Changed 6 years ago by michaelld (Michael Dickens)

This is not a UHD issue. This issue is with "py-requests". Changing it to be so ...

comment:2 Changed 6 years ago by michaelld (Michael Dickens)

Port: py-requests added; uhd removed
Summary: uhd-devel: ImportError: No module named ordered_dictpy-requests: unable to import

comment:3 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from michaelld to stromnov

comment:4 Changed 6 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: assignedclosed
Version 0, edited 6 years ago by michaelld (Michael Dickens) (next)
Note: See TracTickets for help on using tickets.