Monday, May 01, 2006

Problems installing Planet

I really want to install Planet to aggregate all my blogs. So far I still rely on Kinja to aggregate them, and that's also only after I consulted Priyadi, one of my friends who is also a blog expert. So, couple of days ago, I tried to install Planet on my own server.

According to its documentation, Planet requires Python 2.2 or greater, while the Python installed on my server is still 1.5.2.

bash-2.02$ python
Python 1.5.2 (#17, Jun 6 2001, 02:45:56) [GCC 2.95.3 20010315 (release)] on bsdos4
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>

So I downloaded the latest stable version of Python (2.4.3) from its website and installed it. There's actually a newer version, which is 2.5, however it's still alpha 1 release. I installed the Python 2.4.3 under my home directory, not as root because the server is a live server and it's shared by many users. Therefore, after compilation, the binary file will be in my home directory.

bash-2.02$ ~/python/Python-2.4.3/python
Python 2.4.3 (#1, Apr 27 2006, 14:46:13)
[GCC 2.95.3 20010315 (release)] on bsdos4
Type “help”, “copyright”, “credits” or “license” for more information.
>>>

After finished installing Python, I proceeded to download the latest version of Planet, which is still version 1.0, from its website. I went through the instruction on the INSTALL file, and follow all the instructions there, including to edit the config.ini file for Planet's configuration. I also have modified the planet.py file to call the newly installed python (version 2.4.3) inside my home directory, instead of the default python on the server (version 1.5.2).

However, when I tried to run the program, it didn't work. This is the error message I am getting:

bash-2.02$ ./planet.py ~/planet/indra/fancy/config.ini
Traceback (most recent call last):
File “./planet.py”, line 22, in ?
import planet
File “/usr/home/ip/planet/planet/__init__.py”, line 33, in ?
import dbhash
File “/usr/home/ip/python/Python-2.4.3/Lib/dbhash.py”, line 5, in ?
import bsddb
File “/usr/home/ip/python/Python-2.4.3/Lib/bsddb/__init__.py”, line 47, in ?
import _bsddb
ImportError: No module named _bsddb

I'm not too sure what's the cause of the error. I searched Google but I couldn't find any possible answers to the problem above. Someone said that the above error occurs because my Python environment doesn't have bsddb installed, however I'm not too sure how to install the module.

Or is it because I'm using BSDI (BSD/OS)?

Priyadi advised me to try installing the new version of Python as root (server wide), and not installing it in my home directory. However, I didn't dare to do that because it's a live server and shared by multiple users. Perhaps I might want to try using another server first (e.g. development server). Will try that later.

Anyone else might have encountered the same or similar problem and know how to workaround this? :)

[Indonesian version]

2 comments:

tata said...

wah asik nih suka ngoprek2 gue... kapan2 kalo ketemu gue mau belajar dari elo deh ;)

Anonymous said...

Loh, bukannya sebaliknya Ta? :) Gue yang musti banyak belajar dari elo... :D