$ sudo apt-get install python-dev
$ sudo apt-get install python-pip
2. install the requests library:
$ sudo pip install requests
Note that if your modified installer did not work as expected it is possible you will have other unmet dependencies (ie errors). You will need to deal with them as they occur and you may well have to install other libraries.
Gary
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0a9b6a73-fdba-4ab5-acf2-ad30d2456d0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I’m not so sure he modified anything. The packages need to be installed manually when using setup.py for installation.In particular, look at the Install Prerequisites section.
--Hi,It looks like you have modified the WeeWX installer and it has not done what you want. I cannot help with that but I suggest the easiest way to fix your requests import error is to manually install the python requests library. To install requests try (untested):1. install pip:$ sudo apt-get install python-dev
$ sudo apt-get install python-pip
2. install the requests library:$ sudo pip install requests
Note that if your modified installer did not work as expected it is possible you will have other unmet dependencies (ie errors). You will need to deal with them as they occur and you may well have to install other libraries.
Gary
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e2601499-8147-4f9a-8a06-d7664ebbea95%40googlegroups.com.
$ sudo pip install requests
$ sudo pip install python-dateutil
and all what here is writen:
http://weewx.com/docs/setup.htm
the prob is that weeutil, cannot import these librarys and in these way i have found a way to install it with setup.py, but it dosent work.
I have in the moment no idea why these not work and we i can add the 2 additional librarys in the weewx-container that my extension will work.
$ python
>>>import requests
$ sudo /home/weewx/bin/weewxd /home/weewx/weewx.conf