smithy1155
Posts: 15
Joined: Wed Mar 23, 2016 12:42 pm

pyowm

Sun Nov 06, 2016 5:38 pm

I'm very new Python and just started to have a mess about with it.

I came across open weather map and thought I'd be able to incorporate it into a program, I had a search on Google and came across pyowm.

I've been using python 3.4.2 and wanted to install pyowm

I used

Code: Select all

sudo pip3 install pyowm
However when I've tried to install it, it comes back with an error, I'm just wondering if anyone has any success installing it, or if anyone has any solutions.

Many Thanks

scotty101
Posts: 3958
Joined: Fri Jun 08, 2012 6:03 pm

Re: pyowm

Sun Nov 06, 2016 5:53 pm

What error does it report?
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

smithy1155
Posts: 15
Joined: Wed Mar 23, 2016 12:42 pm

Re: pyowm

Sun Nov 06, 2016 6:21 pm

my apologies for not posting the error.

but this is the response i get

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip3')()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 74, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python3/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python3/dist-packages/pip/download.py", line 25, in <module>
    from requests.compat import IncompleteRead
ImportError: cannot import name 'IncompleteRead'

adv6
Posts: 1
Joined: Thu Oct 20, 2016 9:09 am

Re: pyowm

Sun Nov 06, 2016 9:02 pm

Are you sure that you are connected to the Internet? It looks like pip can not download the package from the Internet.

smithy1155
Posts: 15
Joined: Wed Mar 23, 2016 12:42 pm

Re: pyowm

Mon Nov 07, 2016 6:01 am

I'm definitely connected to the internet, I can download the package for python 2.7 without a problem

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: pyowm

Mon Nov 07, 2016 9:25 am

There's a problem with the package 'requests', one of the dependencies of pip3.
Does http://stackoverflow.com/questions/3458 ... mpleteread help?

smithy1155
Posts: 15
Joined: Wed Mar 23, 2016 12:42 pm

Re: pyowm

Tue Nov 08, 2016 10:19 am

Thank you all for your help, and pointing me in the right direction, after having a look around on other forums it seemed pip3 wasn't installed.

someone had suggested using this code

Code: Select all

sudo easy_install3 pip
it has worked!

Many Thanks

Return to “Python”