unable to import open_url

155 views
Skip to first unread message

Waseem Ali

unread,
Sep 21, 2017, 1:13:42 PM9/21/17
to pydap
I am unable to  import the open url
>>> from pydap.client import open_url
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27_2\lib\site-packages\pydap\client.py", line 52, in <module>
    from .net import GET, raise_for_status
  File "C:\Python27_2\lib\site-packages\pydap\net.py", line 4, in <module>
    import requests
ImportError: No module named requests

Tom Kralidis

unread,
Sep 21, 2017, 2:01:46 PM9/21/17
to Waseem Ali, pydap
On Thu, 21 Sep 2017, Waseem Ali wrote:

> Date: Thu, 21 Sep 2017 10:13:41 -0700 (PDT)
> From: Waseem Ali <w1m...@gmail.com>
> Reply-To: py...@googlegroups.com
> To: pydap <py...@googlegroups.com>
> Subject: unable to import open_url
> --

Looks like you need the Python requests library installed
(pip install requests). Having said this Pydap should take care of
this for you when installing Pydap proper.

Can you open a GitHub issue [1] on this? I'll provide a fix there.

Thanks

..Tom

[1] https://github.com/pydap/pydap/issues/new

Chris Barker

unread,
Sep 21, 2017, 2:16:10 PM9/21/17
to py...@googlegroups.com, Waseem Ali
On Thu, Sep 21, 2017 at 10:55 AM, Tom Kralidis <tomkr...@gmail.com> wrote:
Looks like you need the Python requests library installed
(pip install requests).  Having said this Pydap should take care of
this for you when installing Pydap proper.

indeed -- it is not listed in the requirements:

install_requires = [
'numpy',
'Webob',
'Jinja2',
'docopt',
'six >= 1.4.0',
'beautifulsoup4'
]


 
Can you open a GitHub issue [1] on this? I'll provide a fix there.


--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris....@noaa.gov
Reply all
Reply to author
Forward
0 new messages