Re: [Matplotlib-users] problem with svn install

2009-07-22 Thread davide lasagna
Yes,
That did it. The partition had to be mounted with option
execin /etc/fstab!!
Thanks.

Cheers

Davide


--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problem with svn install (Davide Lasagna)

2009-07-22 Thread davide lasagna
Well,
actually i'm using Ubuntu  at work on a virtual machine, and the svn copy is
in a partition mounted at boot by a line in /etc/fstab.
If i remember correctly this filesystem is mounted with options users. I'm
at home now, i'll try with the exec option tomorrow.
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problem with svn install

2009-07-22 Thread Gökhan SEVER
On Wed, Jul 22, 2009 at 11:47 AM, Jouni K. Seppänen  wrote:

> davide lasagna  writes:
>
> > ImportError:
> > /home/davide/partizione/matplotlib/lib/matplotlib/_path.so: failed to
> > map segment from shared object: Operation not permitted
> >
> > Could it be that i've installed in the wrong directory? If yes how can
> > i cope with this?
>
> Apparently this could be caused by SELinux (good luck with configuring
> that correctly), or perhaps your /home filesystem is mounted with the
> noexec option to prevent users from running their own code. Ask your
> system administrator how to install libraries so that Python can call
> dlopen on them.
>
> --
> Jouni K. Seppänen
> http://www.iki.fi/jks
>
>
>
> --
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>


I also have been bitten by SELinux a couple times. On my personal Fedora 11
laptop, and previously on FC10 my resolution was to completely disable
SELinux to eliminate installation and running issues.

Fortunately, I have not dealt with administrative restrictions on our
machines that sit in the lab. Once I heard of a complain in this regard
sys-admin will be the first to know after me :)

-- 
Gökhan
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problem with svn install

2009-07-22 Thread Jouni K . Seppänen
davide lasagna  writes:

> ImportError:
> /home/davide/partizione/matplotlib/lib/matplotlib/_path.so: failed to
> map segment from shared object: Operation not permitted
>
> Could it be that i've installed in the wrong directory? If yes how can
> i cope with this?

Apparently this could be caused by SELinux (good luck with configuring
that correctly), or perhaps your /home filesystem is mounted with the
noexec option to prevent users from running their own code. Ask your
system administrator how to install libraries so that Python can call
dlopen on them.

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] problem with svn install

2009-07-22 Thread davide lasagna
Hi all,
I have a problem with an svn install.
I've followed the instruciont on mpl website, that is:

$ svn co 
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib 
matplotlib
$ cd matplotlib
$ python setupegg.py develop

Please note that i've run the last command with sudo as i'm explicitly asked to 
do so.

Then if  i run this simple test script: 

from pylab import *
plot([1,2,3])
show()

from the command line as

python test.py --verbose-helpful

i get thise output:

dav...@davide-desktop:~$ python test.py --verbose-helpful
$HOME=/home/davide
CONFIGDIR=/home/davide/.matplotlib
matplotlib data path /home/davide/partizione/matplotlib/lib/matplotlib/mpl-data
loaded rc file 
/home/davide/partizione/matplotlib/lib/matplotlib/mpl-data/matplotlibrc
matplotlib version 0.98.6svn
verbose.level helpful
interactive is False
units is False
platform is linux2
Traceback (most recent call last):
  File "mio", line 1, in 
from pylab import *
  File "/home/davide/partizione/matplotlib/lib/pylab.py", line 1, in 
from matplotlib.pylab import *
  File "/home/davide/partizione/matplotlib/lib/matplotlib/pylab.py", line 206, 
in 
from matplotlib import mpl  # pulls in most modules
  File "/home/davide/partizione/matplotlib/lib/matplotlib/mpl.py", line 1, in 

from matplotlib import artist
  File "/home/davide/partizione/matplotlib/lib/matplotlib/artist.py", line 5, 
in 
from transforms import Bbox, IdentityTransform, TransformedBbox, 
TransformedPath
  File "/home/davide/partizione/matplotlib/lib/matplotlib/transforms.py", line 
34, in 
from matplotlib._path import affine_transform
ImportError: /home/davide/partizione/matplotlib/lib/matplotlib/_path.so: failed 
to map segment from shared object: Operation not permitted

Could it be that i've installed in the wrong directory? If yes how can i cope 
with this?
Thanks in advance for any help.


Davide








--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users