473,791 Members | 3,179 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Basic Python CGI library/package issue

6 New Member
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.macr olib import * File "/home/xxx/public_html/cgi-bin/libxml2dom/macrolib/__init__.py", line 27, in ? from libxml2dom.macr olib.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\Li b\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 3398
sauce
6 New Member
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 Recognized Expert Expert
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
516
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 code snippets with other people. It's one of the 'language' languages, in that it's suitable for people to communicate using it, and it can even be used as tool to check ones thoughts." -- Anton Vredegoor Discussion
0
1446
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? if I had only put that on SourceForge instead, the bug would have been fixed by now'." -- Tim Peters "I thought we made dictionaries out of trees... Are you trying to reverse entropy? " -- Bob Gailer
0
361
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 ( +7) / 227 closed ( +7) / 451 total (+14) New / Reopened Patches ______________________
1
2009
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 presenting some unique challenges. First off, I have begun this project by writing a text mode only interface. I would like to provide a GUI as an alternative, but I ran into problems in my early tests. Thinking that Tkinter would be the
1
5037
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 python macro for autoconf -- python.m4 -- doesn't seem to detect my python installation correctly. The strange thing is that it seemingly detects everything correctly, but a final check still fails. I have the python 2.5 source distribution...
0
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9987
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9023
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5424
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5552
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4100
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3709
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2910
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.