[Bug 947357] New: devel:languages:python/python-requests: devel:languages:python3/python3-requests: Bug
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=947357 Bug ID: 947357 Summary: devel:languages:python/python-requests: devel:languages:python3/python3-requests: Bug Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software Assignee: jfunk@funktronics.ca Reporter: bruno@ioda-net.ch QA Contact: opensuse-communityscreening@forge.provo.novell.com Found By: --- Blocker: --- the two packages have one thing in common, they both bundle urllib3 This should be avoided for 2 reasons : urllib3 exist as a separate package and as such can be patched updated independly. Placing a symlink to urllib3 real package is the way of doing for example by fedora. The second trouble is the differences between the patches Continuing to have two main repository d:l:p and d:l:p3 will drive us to this kind of errors, which can put our users in trouble ( one version working the other not ) or at risk ( one security patch pushed on one version and not the others) I don't know if it could be easy to have a check on obs, if one or the other version is updated, a reminder (warn, error, info) is shown that the other version is not up to date. Traceback (most recent call last): File "/usr/lib/python3.3/site-packages/requests/packages/urllib3/util/ssl_.py", line 267, in ssl_wrap_socket context.load_verify_locations(ca_certs) IsADirectoryError: [Errno 21] Is a directory -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=947357 http://bugzilla.opensuse.org/show_bug.cgi?id=947357#c1 Duncan Mac-Vicar <dmacvicar@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmacvicar@suse.com, | |p.drouand@gmail.com Flags| |needinfo?(p.drouand@gmail.c | |om) --- Comment #1 from Duncan Mac-Vicar <dmacvicar@suse.com> --- It seems that this was "fixed" and since then the package is broken. * Mon Oct 05 2015 p.drouand@gmail.com - Unbundle python-chardet and python-urllib3 (boo#947357) requests-do-not-use-bundle.patch (a simple import requests reveals it) Python 2.7.9 (default, Dec 21 2014, 11:02:59) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import requests Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 58, in <module> from . import utils File "/usr/lib/python2.7/site-packages/requests/utils.py", line 26, in <module> from .compat import parse_http_list as _parse_list_header File "/usr/lib/python2.7/site-packages/requests/compat.py", line 41, in <module> from .packages.urllib3.packages.ordered_dict import OrderedDict ImportError: No module named packages.urllib3.packages.ordered_dict
-- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=947357 http://bugzilla.opensuse.org/show_bug.cgi?id=947357#c2 --- Comment #2 from Duncan Mac-Vicar <dmacvicar@suse.com> --- There is a new SR https://build.opensuse.org/request/show/336832 I will test with that one. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=947357 http://bugzilla.opensuse.org/show_bug.cgi?id=947357#c3 Jacob W <jacobwinski@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jacobwinski@gmail.com --- Comment #3 from Jacob W <jacobwinski@gmail.com> --- How did this happen to be submitted? The most simple & obvious python module test fails: import requests It *still* fails as of SR #336832. Please stop doing drugs while submitting / testing patches! Thanks. IPython output on TW 20151002: In [1]: import requests --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-686486c241c8> in <module>() ----> 1 import requests /usr/lib/python2.7/site-packages/requests/__init__.py in <module>() 56 pass 57 ---> 58 from . import utils 59 from .models import Request, Response, PreparedRequest 60 from .api import request, get, head, post, patch, put, delete, options /usr/lib/python2.7/site-packages/requests/utils.py in <module>() 24 from . import __version__ 25 from . import certs ---> 26 from .compat import parse_http_list as _parse_list_header 27 from .compat import (quote, urlparse, bytes, str, OrderedDict, unquote, is_py2, 28 builtin_str, getproxies, proxy_bypass, urlunparse, /usr/lib/python2.7/site-packages/requests/compat.py in <module>() 39 from Cookie import Morsel 40 from StringIO import StringIO ---> 41 from .packages.urllib3.packages.ordered_dict import OrderedDict 42 43 builtin_str = str ImportError: No module named packages.urllib3.packages.ordered_dict -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com