473,383 Members | 1,821 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,383 software developers and data experts.

Where to put the HTMLgen files

Hi,
I have downloaded the HTMLgen for generating web pages
with python. However I untared and unzipped it. I
tried to link it with my path like this:

Heres my .bashrc file
--------------------------------------

GAIM=/usr/bin/
YAHOO=/usr/bin/
PYTHON=/usr/bin
HTMLgenPYTHON=/usr/local/HTMLgen
PATH=$PATH:$GAIM/gaim:$YAHOO/ymessenger:$PYTHON/python:$HTMLgenPYTHON
export PATH GAIM YAHOO PYTHON HTMLgenPYTHON
---------------------------------------

It does not work. When I write a python program and
include :

import HTMLgen

it does not finds this module. Can anyone tell me
where should I place this HTMLgen directory? and how
to make it work?

Thanks
Dont

__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

Jul 18 '05 #1
1 1404
dont bother wrote:
It does not work. When I write a python program and
include :

import HTMLgen

it does not finds this module. Can anyone tell me
where should I place this HTMLgen directory? and how
to make it work?


Put HTMLgen.py directly into the site-packages directory of your python
installation, e. g. /usr/local/lib/python2.3/site-packages/
or include the directory containing HTMLgen.py in the python search path by
defining an environment variable

PYTHONPATH=/dir/containing/my/module/

or put a text file dontbother.pth (only the suffix is important) containing

/dir/containing/my/module/

into a folder already in the python module search path, e. g. the
site-packages mentioned above.

Peter

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: user | last post by:
Checking out HTMLgen, I find the manual to be quite terse, and difficult to crack. Are there any examples or tutorials available for this package? Thanks, Tobiah
1
by: Andre van der Vlies | last post by:
Hi, I've made some (minor) adjustments to HTMLgen. I added a 'style' option for (form)buttons and a 'valign' option for table(cells).... I tried to send this to the author of HTMLgen but e-mail...
2
by: adeger | last post by:
For use of CSS how do I do something like insert a 'class' attribute into an HTML tag like: <TABLE class='standard'></TABLE> I've really made a good faith effort to find this in the...
0
by: Armand Federico - INFO | last post by:
I received an error when i try htmlgen on winxp, apapche, mysql, mod_python THIS IS THE ERROR Mod_python error: "PythonHandler mod_python.publisher" Traceback (most recent call last): File...
0
by: C. Titus Brown | last post by:
Hi all, I spent a little bit of time today working on Robin Friedrich's HTMLgen, and made it work more like a modern Python package, with a Python package directory & distutils-based setup.py. ...
0
by: Sebastian Bassi | last post by:
Hello, I am using HTMLgen. It is very nice. But I can't make it to generate an arbitrary command. For example I want to output this: <embed src="canvas_norelief.svg" width="140" height="68"...
5
by: Cappy2112 | last post by:
Does anyone know if the table align property is available in HTMLgen.Table? The docs don't show it, but I find it hard to believe that it is not available. I want to center the table. Only the...
4
by: Joshua J. Kugler | last post by:
I realize that in today's MVC-everything world, the mere mention of generating HTML in the script is near heresy, but for now, it's what I ened to do. :) That said, can someone recommend a good...
5
by: econtreras.bantech | last post by:
Good day Mr. Guido, excuse my poor english. I am looking for HTMLgen module but not to find this, the link referenced in www.python.org it does not exist. I have need to develop in cgi and...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.