pesaply / mplh5canvas

Automatically exported from code.google.com/p/mplh5canvas
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Issue installing mplh5canvas through easy install #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
* What steps will reproduce the problem?
1. easy_install mplh5canvas

* What is the expected output? What do you see instead?
$ easy_install mplh5canvas
Searching for mplh5canvas
Reading http://pypi.python.org/simple/mplh5canvas/
Reading http://code.google.com/p/mplh5canvas/
Best match: mplh5canvas 0.5
Downloading 
http://pypi.python.org/packages/source/m/mplh5canvas/mplh5canvas-0.5.tar.gz#md5=
de1a64e81a635d589e85dc33a229e4f7
Processing mplh5canvas-0.5.tar.gz
Running mplh5canvas-0.5/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-W4IGPw/mplh5canvas-0.5/egg-dist-tmp-_p3XCG
error: SandboxViolation: os.open('/home/***/.matplotlib/tmpWUu1ke', 131266, 
384) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.

* What version of the product are you using? On what operating system?
Linux ubuntu 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011 i686 
i686 i386 GNU/Linux

* Please provide any additional information below.

Original issue reported on code.google.com by ugo.jard...@gmail.com on 23 Jul 2011 at 1:31

GoogleCodeExporter commented 9 years ago
This bug also applies at least to Fedora 14 and 15.

Original comment by jensen.r...@gmail.com on 13 Oct 2011 at 7:01

GoogleCodeExporter commented 9 years ago
Actually the error on Fedora is slightly different, although it is most likely 
the same problem:

[root@robertj ~]# easy_install mplh5canvas
install_dir /usr/lib/python2.7/site-packages/
Searching for mplh5canvas
Reading http://pypi.python.org/simple/mplh5canvas/
Reading http://code.google.com/p/mplh5canvas/
Best match: mplh5canvas 0.5
Downloading 
http://pypi.python.org/packages/source/m/mplh5canvas/mplh5canvas-0.5.tar.gz#md5=
de1a64e81a635d589e85dc33a229e4f7
Processing mplh5canvas-0.5.tar.gz
Running mplh5canvas-0.5/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-HCvcuA/mplh5canvas-0.5/egg-dist-tmp-zJEfE0
error: SandboxViolation: os.open('/root/tmpsIC34Y', 131266, 384) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.

Original comment by jensen.r...@gmail.com on 14 Oct 2011 at 8:50

GoogleCodeExporter commented 9 years ago
I can confirm that the error reported in the original post also appears on 
Ubuntu 11.04.

Original comment by k.nielse...@gmail.com on 14 Oct 2011 at 9:06

GoogleCodeExporter commented 9 years ago
I'm also having issues on windows 7.

E:\>easy_install mplh5canvas
Searching for mplh5canvas
Best match: mplh5canvas 0.6
Processing mplh5canvas-0.6-py2.7.egg
mplh5canvas 0.6 is already the active version in easy-install.pth

Using c:\python27\lib\site-packages\mplh5canvas-0.6-py2.7.egg
Processing dependencies for mplh5canvas
Finished processing dependencies for mplh5canvas

E:\>python

>>> import matplotlib
>>> matplotlib.use('mplh5canvas')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 916, in use
    name = validate_backend(be_parts[0])
  File "C:\Python27\lib\site-packages\matplotlib\rcsetup.py", line 107, in valid
ate_backend
    else: return _validate_standard_backends(s)
  File "C:\Python27\lib\site-packages\matplotlib\rcsetup.py", line 49, in __call
__
    % (self.key, s, self.valid.values()))
ValueError: Unrecognized backend string "mplh5canvas": valid strings are ['ps',
'Qt4Agg', 'GTK', 'GTKAgg', 'svg', 'agg', 'cairo', 'MacOSX', 'GTKCairo', 'WXAgg',
 'TkAgg', 'QtAgg', 'FltkAgg', 'pdf', 'CocoaAgg', 'emf', 'gdk', 'template', 'WX']

Original comment by ubershmekel@gmail.com on 17 Mar 2012 at 7:34

GoogleCodeExporter commented 9 years ago
Just to close this issue:

The easy_install sandbox violation was fixed in r32 on 25 October 2011.

@ubershmekel: The correct way to select the mplh5canvas backend is:

  import matplotlib
  matplotlib.use('module://mplh5canvas.backend_h5canvas')

The module notation is necessary because the backend is not integrated into 
matplotlib itself.

Original comment by ludwig.s...@gmail.com on 29 Jun 2012 at 7:23