arCHMage ImportError: cannot import name realpath 

Newsgroups: linux.debian.maint.python
Date: 2003-12-28 11:40:27 PST

I never used Python before (just perl) :-( . I got problems to get the python Programm "archmage" [1] runnig under woody. I'm not sure, but I think the os.path "library" is missing or not correctly installed (Point 3. says it is installed). Were is the error, which additional (deb) package do I have to install to get it working?

Emal

[1]: It's a programm to convert "chm" (Microsoft Compiled HTML files) to html See Freshmeat for more details: http://freshmeat.net/projects/archmage/?topic_id=234,849,867

arCHMage ImportError: cannot import name realpath 

> emal@buster:~$ archmage test.chm /tmp
> Traceback (most recent call last):
>    File "/usr/bin/archmage", line 7, in ?
>      from CHM import *
>    File "/usr/lib/python2.1/site-packages/CHM.py", line 2, in ?
>      from os.path import isfile,isdir,exists,dirname,realpath,getsize,walk
> ImportError: cannot import name realpath

it looks like os.path.realpath was introduced in python2.2.

Ian

arCHMage 

http://archmage.sourceforge.net/

arCHMage - extensible reader/decompiler of files in CHM format(Microsoft HTML help, also known as Compiled HTML).

arCHMage is based on chmlib by Jed Wing (http://66.93.236.84/~jedwin/projects/chmlib/) and is written on python