473,574 Members | 3,172 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
my configuration :

Fedora Core 3
Apache 2.0
python 2.3.4
postgresql 7.3.4

Error message we get:

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

Thanks in advance.

Jul 18 '05 #1
1 2685
je**********@ep fl.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.

Jul 18 '05 #2

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

Similar topics

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 finding it a bit cumbersome. It works, but if I switch from the interactive window to the plot window and back, the plot window gets trashed.
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 loop of the code, or perhaps even rethink the algorithm. The procedure is very simple, after initializing any variables: 1) select a random input...
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 for NumPy 0.9.5 and Matplotlib 0.87.1, I get this error message: >>> import pylab as p Traceback (most recent call last): File "<pyshell#4>",...
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, Python 2.4.1, Fedora Core4 Thanks for your comments. Petr Jakes File "/root/eric/analyza_dat_TPC/htmlgenerator.py", line 7, in ?
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 modules when an attribute is first accessed with getattr()). from autoimp import A, B (Import specific lazy module wrapper objects). The main point...
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 want to be able to create a wx.Panel that contains an axis for plotting. Around it i want other panels containing various settings, buttons etc. to...
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 line of my code. My problem is that I have to close the figure window before in order to finish the execution of my code. I'd like to be able to...
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 have installed Python 2.5.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 came with matplotlib that pointed to the "from pylab ..." line below. The message ended with " ... from matplotlib.path: import affine_transform....
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
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...
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...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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
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...

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.