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

problem with import pylab from a website


Hello All,
I am facing a problem while importing pylab library(in a .py program file) via
web browser however the same program works when I execute it from the command
prompt.
my configuration :

Fedora Core 3
Apache 2.0
python 2.3.4
postgresql 7.3.4
mod_python-3.1.3-5

Error message we get:

[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] Traceback (most
recent call last):, referer: http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] File
"/var/www/html/sensor_data/get_graph.py", line 15, in ?, referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] , referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] import pylab,
referer: http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] File
"/usr/lib/python2.3/site-packages/pylab.py", line 1, in ?, referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] , referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] from
matplotlib.pylab import *, referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] File
"/usr/lib/python2.3/site-packages/matplotlib/pylab.py", line 184, in ?, referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] , referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] from axes import
Axes, PolarAxes, referer: http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] File
"/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 14, in ?, referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] , referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] from axis import
XAxis, YAxis, referer: http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] File
"/usr/lib/python2.3/site-packages/matplotlib/axis.py", line 20, in ?, referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] , referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] from font_manager
import FontProperties, referer: http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] File
"/usr/lib/python2.3/site-packages/matplotlib/font_manager.py", line 942, in ?,
referer: http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] , referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] fontManager =
FontManager(), referer: http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] File
"/usr/lib/python2.3/site-packages/matplotlib/font_manager.py", line 786, in
__init__, referer: http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] , referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] rebuild(), referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] File
"/usr/lib/python2.3/site-packages/matplotlib/font_manager.py", line 780, in
rebuild, referer: http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] , referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101]
pickle.dump(self.ttfdict, file(ttfcache, 'w')), referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] IOError, referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] : , referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] [Errno 13]
Permission denied: '/usr/share/matplotlib/.ttffont.cache', referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] , referer:
http://128.178.156.101/sensor_data/readings.php
[Wed Jan 19 09:43:58 2005] [error] [client 128.178.156.101] Premature end of
script headers: get_graph.py, referer:
http://128.178.156.101/sensor_data/readings.php

Thanks in advance.

Regards,
jean
Jul 18 '05 #1
1 2669
je**********@epfl.ch wrote:
Permission denied: '/usr/share/matplotlib/.ttffont.cache', referer:


It could be that the webserver runs as a user that does not
have access to certain locations.

Istvan.
Jul 18 '05 #2

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

Similar topics

2
by: Charles Krug | last post by:
List: I'm trying to us pylab to see what I'm doing with some DSP algorithms, in case my posts about convolution and ffts weren't giving it away. I've been using pylab's plot function, but I'm...
2
by: Brian Blais | last post by:
Hello, I am trying to translate some Matlab/mex code to Python, for doing neural simulations. This application is definitely computing-time limited, and I need to optimize at least one inner...
0
by: sturlamolden | last post by:
Recently, I have been trying to test Python as an alternative to Matlab. I have problems getting matplotlib to work on Windows (ActivePython 2.4.2). After installing the precompiled binary packages...
0
by: Petr Jakes | last post by:
Hi my script is working well when I am running it from the terminal window. While I am trying to start it as a Cron job, I am getting an Error described bellow: My configuration: Pentium III,...
11
by: Connelly Barnes | last post by:
Hi, I wrote the 'autoimp' module , which allows you to import lazy modules: from autoimp import * (Import lazy wrapper objects around all modules; "lazy modules" will turn into normal...
0
by: Soren | last post by:
Hi, I'm trying to create a small GUI program where I can do plots using Matplotlib. I've been trying to borrow code from the examples at the matplotlib website, but I can't get it to work. I...
1
by: redcic | last post by:
I've got a question regarding matplotlib. I use the command: pylab.plot(...) to create a graph. Then, the execution of the code stops after the line: pylab.show() which is off course the last...
3
by: Caren Balea | last post by:
Hello, I'm newbie to python. So far, I'm a bit disappointed. It's awful to set Python up to work. It's not working!!! Ok, calm down. Here are my settings: I'm using Windows XP machine and...
1
by: W. eWatson | last post by:
I'm trying to figure out why an application that both myself and a colleague use gives errors when he uses it under W98. I'm using XP. Py 2.5 is installed on each of our machines. His first problem...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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?
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.