tag 825748 + moreinfo thanks Hello Eric, thanks for this report!
On Sun, 29 May 2016 15:50:29 +0200 Eric <bugs.debian....@vvmail.fr> wrote: > Package: python-requests > Version: 2.10.0-1 > Severity: normal > > Hi, > Since the last update of python-requests, I can't use the weboob's > applications, such as boobank (http://weboob.org/applications/boobank): > > boobank > Traceback (most recent call last): > File "/usr/local/bin/boobank", line 4, in <module> > __import__('pkg_resources').run_script('weboob==1.2', 'boobank') > File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 719, > in run_script > self.require(requires)[0].run_script(script_name, ns) > File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line > 1504, > in run_script > exec(code, namespace, namespace) > File "/usr/local/lib/python2.7/dist-packages/weboob-1.2-py2.7.egg/EGG- > INFO/scripts/boobank", line 23, in <module> > from weboob.applications.boobank import Boobank > File "/usr/local/lib/python2.7/dist- > packages/weboob-1.2-py2.7.egg/weboob/applications/boobank/__init__.py", line > 21, in <module> > from .boobank import Boobank > File "/usr/local/lib/python2.7/dist- > packages/weboob-1.2-py2.7.egg/weboob/applications/boobank/boobank.py", line > 28, > in <module> > from weboob.browser.browsers import APIBrowser > File "/usr/local/lib/python2.7/dist- > packages/weboob-1.2-py2.7.egg/weboob/browser/__init__.py", line 20, in > <module> > from .browsers import Browser, DomainBrowser, UrlNotAllowed, PagesBrowser, > LoginBrowser, need_login > File "/usr/local/lib/python2.7/dist- > packages/weboob-1.2-py2.7.egg/weboob/browser/browsers.py", line 44, in > <module> > raise ImportError('Please install python-requests >= 2.0') > ImportError: Please install python-requests >= 2.0 Just to be sure I understand correctly: you are using a local installed version of weboob, but you are using system installed dependency for it, right? Please can you tell me what pgk_resource find when searching for requests? Can you see if ignoring site configuration give a different result? On my system both ❯ python -c "import pkg_resources; print pkg_resources.require(['requests>=2.0'])" and ❯ python -s -c "import pkg_resources; print pkg_resources.require(['requests>=2.0'])" give me the same result: [requests 2.10.0 (/usr/lib/python2.7/dist-packages)] I tried also the packaged weboob and it seems to work. > It asks for python-requests >= 2.0, despite 2.10.0-1 is installed already: > > apt-cache policy python-requests > python-requests: > Installed: 2.10.0-1 > Candidate: 2.10.0-1 > Version table: > *** 2.10.0-1 500 > 500 http://ftp.fr.debian.org/debian sid/main amd64 Packages > 500 http://ftp.fr.debian.org/debian sid/main i386 Packages > 500 http://http.debian.net/debian unstable/main amd64 Packages > 500 http://http.debian.net/debian unstable/main i386 Packages > 100 /var/lib/dpkg/status > 2.4.3-6 500 > 500 http://httpredir.debian.org/debian jessie/main amd64 Packages > 500 http://httpredir.debian.org/debian jessie/main i386 Packages > > > How to solve that issue please? We must understand why pgk_resources is not able to find requests, first. On Sun, 29 May 2016 16:00:42 +0200 bugs.debian....@vvmail.fr wrote: > Additionnal informations: > > python > Python 2.7.11+ (default, May 9 2016, 15:54:33) > [GCC 5.3.1 20160429] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import requests; requests.__version__.split('.') > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line > 61, in <module> > from .packages.urllib3.exceptions import DependencyWarning > ImportError: cannot import name DependencyWarning Please can you run this ignoring site configuration as before? I'm not able to reproduce (also not using -s): ❯ python -c "import requests; print requests.__version__.split('.')" ['2', '10', '0'] Regards, -- Daniele Tricoli 'eriol' https://mornie.org
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team