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

from vh3 import virthost / AddVirtDomain / Ensim / Apache

Hi,

I'm new to python, and am trying to use some premade scripts on RedHat 7,
but its giving me errors.

The scripts are part of the Ensim hosting software, and when I run the
command "AddVirtDomain" from a root shell, it works fine.

However when I call it from my php page, and thus running under the apache
user, I get the following error:

Traceback (most recent call last):
File "/usr/local/bin/AddVirtDomain", line 26, in ?
from vh3 import virthost
File "virtualhosting/virthost.py", line 46, in ?
File
"/home/build/qa/webppliance/3.1.11/2/lwp/vaishali2/WebGui/base/services/vh3/
virtualhosting/virtutil.py", line 14, in ?
ImportError: No module named logging

The first file mentioned is the one I am running, and 2nd two dont even
exist - tho the script runs fine under a root shell.

To me this indicates a permissions problem - but permissions to what? The
files mentioned dont exist !

Anybody got any ideas ?
Thanks in advance
-Dan
Jul 18 '05 #1
2 1272
Hi, I'm trying to do the same thing and getting the exact same problem
as you. Have you had any luck? Part of the difficulty is that the
files virthost.py and virtutil.py are probably compiles (in .pyc
form), and not located in those directories shown in the trace.
However, I still get the same error after I chmod those files.

"Dan Messenger" <NO***********************@hotmail.com> wrote in message news:<c5*************@ID-59554.news.uni-berlin.de>...
Hi,

I'm new to python, and am trying to use some premade scripts on RedHat 7,
but its giving me errors.

The scripts are part of the Ensim hosting software, and when I run the
command "AddVirtDomain" from a root shell, it works fine.

However when I call it from my php page, and thus running under the apache
user, I get the following error:

Traceback (most recent call last):
File "/usr/local/bin/AddVirtDomain", line 26, in ?
from vh3 import virthost
File "virtualhosting/virthost.py", line 46, in ?
File
"/home/build/qa/webppliance/3.1.11/2/lwp/vaishali2/WebGui/base/services/vh3/
virtualhosting/virtutil.py", line 14, in ?
ImportError: No module named logging

The first file mentioned is the one I am running, and 2nd two dont even
exist - tho the script runs fine under a root shell.

To me this indicates a permissions problem - but permissions to what? The
files mentioned dont exist !

Anybody got any ideas ?
Thanks in advance
-Dan

Jul 18 '05 #2
ar**@spyre.net (A. Y. Chen) wrote in message news:<2a**************************@posting.google. com>...
Hi, I'm trying to do the same thing and getting the exact same problem
as you. Have you had any luck? Part of the difficulty is that the
files virthost.py and virtutil.py are probably compiles (in .pyc
form), and not located in those directories shown in the trace.
However, I still get the same error after I chmod those files.

"Dan Messenger" <NO***********************@hotmail.com> wrote in message news:<c5*************@ID-59554.news.uni-berlin.de>...
Hi,

I'm new to python, and am trying to use some premade scripts on RedHat 7,
but its giving me errors.

The scripts are part of the Ensim hosting software, and when I run the
command "AddVirtDomain" from a root shell, it works fine.

However when I call it from my php page, and thus running under the apache
user, I get the following error:

Traceback (most recent call last):
File "/usr/local/bin/AddVirtDomain", line 26, in ?
from vh3 import virthost
File "virtualhosting/virthost.py", line 46, in ?
File
"/home/build/qa/webppliance/3.1.11/2/lwp/vaishali2/WebGui/base/services/vh3/
virtualhosting/virtutil.py", line 14, in ?
ImportError: No module named logging


...are you sure that php is running the same version of python as you
from the command line. the logging module is a standard one, BUT it is
only available in python >= 2.3

/Simon
Jul 18 '05 #3

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

Similar topics

4
by: Shufen | last post by:
Hi, I'm a newbie that just started to learn python, html and etc. I have some questions to ask and hope that someone can help me on. I'm trying to code a python script (with HTML) to get...
0
by: atlantis | last post by:
Hi, I have a very strange problem with xsl:import when usig RELATIVE path on AIX 5.2 server. I have two XSL files in the same directory: "ists_xslt3.xsl" and "ists_xslt3_layout.xsl". This...
0
by: soloturn | last post by:
as i'm not sure if apache2 or python is responsible for this, excuse if i try to ask here too. our problem is that mercurial does not work from apache, but from python command-line it does. what...
8
by: menmysql | last post by:
i am not bale to solve this problem since two weeks i am trying to access records from mysql database using jsp. inside this jsp program i wrote all my JDBC code. it is working very nicely and...
5
by: Daythryl | last post by:
I've got some VB code that's supposed to retrieve a Map from a Web Service written in Java, running under Tomcat via Axis-1.4. I'll list the WSDL, the response message and the source code below. ...
6
by: santhoskumara | last post by:
How to request to servlet from Ajax and also I got the DOM object in the servlet through Business Logic. Now how will i pass the DOM object from serlvet to Clientside. Where in the client Side i am...
0
by: shanmukhi | last post by:
Hi All, i am very new to crystal reports.. how can i run crystal report(rpt file) from a jsp page.. i tried somthing by getting code from google my applicaction structure is like this ...
2
by: zoeabraham | last post by:
I am Using STRUTS1.4 in NetBeans5.5 IDE Here we have a JSP Page <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"...
12
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.