473,846 Members | 1,905 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 2701
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 vector, which I will call "x". right now I have it as an array, and I choose columns from that array...
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>", line 1, in ? import pylab as p File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ?
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 of autoimp is to make usage of the interactive Python prompt
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 control the plot. So far I can't even get the program to actually show a plot in a panel.
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 launch my program other times with different
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. Import Error. One of the library functions needed to run this application could not be found." I...
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.