GoFlex Home Python bsddb

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

GoFlex Home Python bsddb

Postby titoudude » Mon Aug 22, 2011 7:52 pm

I just did an installation on a GoFlex Home, but I seem to be unable to run some python scripts properly. More specifically planet or venus http://www.planetplanet.org/. I know there is issues regarding Python2 and Python3 compatibility but i have tried both with different errors.

under Python2 I get the following :
$this->bbcode_second_pass_code('', '
[titoudude@goflex planet-2.0]$ python2 planet.py
Traceback (most recent call last):
File "planet.py", line 23, in <module>
import planet
File "/media/data/planet-2.0/planet/__init__.py", line 35, in <module>
import dbhash
File "/usr/lib/python2.7/dbhash.py", line 7, in <module>
import bsddb
File "/usr/lib/python2.7/bsddb/__init__.py", line 67, in <module>
import _bsddb
ImportError: No module named _bsddb
')

under python3 I get this :
$this->bbcode_second_pass_code('', '
[titoudude@goflex planet-2.0]$ python ./planet.py
File "./planet.py", line 58
print "Usage: planet [options] [CONFIGFILE]"
^
SyntaxError: invalid syntax
')

I get the same errors when using root. I'm completely lost on what could be causing these errors as the libraries are present and the syntax is also correct. Any help would be greatly appreciated.

Thanks

-----------------------------------
Edit: After googling for awhile, i found that that the error that I have is regarding the bsddb module not being loaded. I installed the python2-bsddb-5.1.2.600-1 package but I still get the same message. Is compiling python my only option?
titoudude
 
Posts: 2
Joined: Mon Aug 22, 2011 7:34 pm

Re: GoFlex Home Python bsddb

Postby titoudude » Thu Aug 25, 2011 1:59 am

Just to let everybody know, from what i could see it is a compatibility issue between python 2.7.1 and 2.7.2. Its probably something that needs to be adjusted within the planet.py script. But since I'm illiterate in Python, I've installed venus (another program based on planet) instead and it works fine under 2.7.2.

Keep up the good work guys.
titoudude
 
Posts: 2
Joined: Mon Aug 22, 2011 7:34 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 49 guests