473,320 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Basic Python CGI library/package issue

6
Hi, this a newbie question, forgive me!
Ok so I have some code written using the libxml2dom package (because I want to parse html pages) and I would like to have this work on a web server. The web server (from Hostmonster) has libxml2 installed, and I put the libxml2dom package folder in my cgi-bin directory where I'm running the script. However, when I try to run the script, I get this error:

Traceback (most recent call last): File "test.py", line 5, in ? import libxml2dom File "/home/xxx/public_html/cgi-bin/libxml2dom/__init__.py", line 25, in ? from libxml2dom.macrolib import * File "/home/xxx/public_html/cgi-bin/libxml2dom/macrolib/__init__.py", line 27, in ? from libxml2dom.macrolib.macrolib import * File "/home/xxx/public_html/cgi-bin/libxml2dom/macrolib/macrolib.py", line 30, in ? from libxmlmods import libxml2mod ImportError: No module named libxmlmods


I found the libxmlmods folder inside "C:\Python25\Lib\site-packages" and tried to put that folder in "/home/xxx/public_html/cgi-bin/libxml2dom/macrolib/" but then it couldn't import libxml2mod because no file/folder of that name exists within libxml2mods.

Is this because mod_python isn't installed on the server (they said mod_python isn't installed because of security reasons)? If not, how would I get around to fixing this? Thanks in advance.
Mar 9 '07 #1
2 3384
sauce
6
update***

Is this because libxml2-python bindings aren't installed on the server, even though libxml2 is? If I go into /usr/lib/python2.3/site-packages/, I don't see a libxml2 directory....
Mar 9 '07 #2
bartonc
6,596 Expert 4TB
This
...even though libxml2 is [installed]
does not agree with the
If I go into /usr/lib/python2.3/site-packages/, I don't see a libxml2 directory....
So it sounds like an installation issue.
Mar 10 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Irmen de Jong | last post by:
QOTW: "What can I do with Python that I can't do with C#? You can go home on time at the end of the day." -- Daniel Klein "Python lends itself to playing with it and to discussing the merits of...
0
by: Irmen de Jong | last post by:
QOTW: "The best use for a bug report on comp.lang.python is as an object lesson for your grandchildren: 40 years from now you can search the archives for it, and tell the little darlings 'see? ...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 378 open ( +3) / 3298 closed (+34) / 3676 total (+37) Bugs : 886 open (-24) / 5926 closed (+75) / 6812 total (+51) RFE : 224 open...
1
by: dwelch91 | last post by:
c.l.p- I am undertaking writing an installer for a software package using Python. It is exclusively for Linux. Because this is an installer and has to run on numerous Linux distros, it is...
1
by: Daniel Nogradi | last post by:
It might be slightly off topic here but couldn't find a more suitable place for this question: I'm trying to build the python binding for ming -- http://ming.sf.net -- but for some reason the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.