467,074 Members | 875 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

Import error on webserver

Hi all,

I've developed a web application using Python on my development machine at home (running Mac OS X Tiger, Python 2.4.3). The time has come to "go live" and I have copied the app's folders to my host's servers (running GNU/Linux unknown Python version).

I am using Comstar's excellent HTML tool, and the error occurs when trying to import it:

Expand|Select|Wrap|Line Numbers
  1. from HyperText.HTML import DIV
Causes the error: "No module named HyperText.HTML"

The Python script I'm calling it from is in a folder that contains the "HyperText" folder, and within the "HyperText" folder is the "HTML.py" script I need to import. In other words the directory structure looks like this:

server/myscript.py
server/HyperText/HTML.py

I am guessing this is something to do with mod_python (as that's what my host is running). Or is it a configuration setting my host needs to change? (I don't have Python command line access on the host's server).

Can this be resolved?

Cheers,

Brendon
Mar 2 '08 #1
  • viewed: 846
Share:

Post your reply

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

Similar topics

2 posts views Thread by vichet | last post: by
8 posts views Thread by ōyvind Isaksen | last post: by
3 posts views Thread by Adriano | last post: by
1 post views Thread by kristian@help2hire.com | last post: by
1 post views Thread by Nick C | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.