View Single Post
Old 03-12-2015, 05:46 PM   #3
mokayak
Junior Member
mokayak began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2015
Device: Kobo mini
Hi Kevin, thanks so much for replying.

I copied the contents of that package over the /mnt/onboard/.python folder (that was created by installing your weather package), and it's definitely got me further.

Running my test script (which interpolates print statements between the first half-dozen lines of weather.py) now gets as far as the second one, i.e. it succesfully executes "import urllib2", which it previously dies on. Although it still dies on "import pygame, os".

But first things first - before getting that far, it reports two errors. Same thing occurs going to shell:

Code:
[root@(none) koboWeather]# python
Error processing line 1 of /mnt/onboard/.python/lib/python2.7/site-packages/._easy-install.pth:

  Traceback (most recent call last):
    File "/mnt/onboard/.python/lib/python2.7/site.py", line 156, in addpackage
      if not dircase in known_paths and os.path.exists(dir):
    File "/mnt/onboard/.python/lib/python2.7/genericpath.py", line 18, in exists
      os.stat(path)
  TypeError: must be encoded string without NULL bytes, not str

Remainder of file ignored
Error processing line 1 of /mnt/onboard/.python/lib/python2.7/site-packages/._setuptools.pth:

  Traceback (most recent call last):
    File "/mnt/onboard/.python/lib/python2.7/site.py", line 156, in addpackage
      if not dircase in known_paths and os.path.exists(dir):
    File "/mnt/onboard/.python/lib/python2.7/genericpath.py", line 18, in exists
      os.stat(path)
  TypeError: must be encoded string without NULL bytes, not str

Remainder of file ignored
Python 2.7.5 (default, Aug  1 2013, 23:18:00) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Can you point me in the right direction (apologies, I'm a Python noob as well as a Kobo noob).

Thanks for all you help,

Ben
mokayak is offline   Reply With Quote