Most scientific python packages broken
After the update to 2.6, packages such as numpy, scipy, matplotlib, etc are not working anymore. I get the following error in ipython when trying to import any one of them.
In [1]: import numpy
ImportError Traceback (most recent call last)
/home/msid/<ipython console> in <module>()
/usr/lib/python2.5/site-packages/numpy/__init__.py in <module>()
123 return loader(*packages, **options)
124
--> 125 import add_newdocs
126 __all__ = ['add_newdocs']
127
/usr/lib/python2.5/site-packages/numpy/add_newdocs.py in <module>()
7 # core/fromnumeric.py, core/defmatrix.py up-to-date.
8
----> 9 from lib import add_newdoc
10
11 add_newdoc('numpy.core', 'dtype',
/usr/lib/python2.5/site-packages/numpy/lib/__init__.py in <module>()
2 from numpy.version import version as __version__
3
----> 4 from type_check import *
5 from index_tricks import *
6 from function_base import *
/usr/lib/python2.5/site-packages/numpy/lib/type_check.py in <module>()
6 'common_type']
7
----> 8 import numpy.core.numeric as _nx
9 from numpy.core.numeric import asarray, asanyarray, array, isnan, \
10 obj2sctype, zeros
/usr/lib/python2.5/site-packages/numpy/core/__init__.py in <module>()
3 from numpy.version import version as __version__
4
----> 5 import multiarray
6 import umath
7 import _internal # for freeze programs
ImportError: libpython2.5.so.1.0: cannot open shared object file: No such file or directory
I even tried reinstalling them, but the packages always install in the python2.5 directory . Is a recompilation needed in the repositories?
Profjim wrote:
What do you mean, make it use python2.5? It only gets loaded by an already-running Python interpreter, there's no way that numpy can change the version of the interpreter that's loading it.
What you can control is: (1) keep a copy of python2.5 on your machine, and (2) install numpy in the /usr/lib/python2.5/site-packages folder. (2) is easy: just tweak the numpy PKGBUILD to make sure that the python interpreter that's doing the install is itself 2.5. (1) is of course doable but I think will be more work---that is, if you also want to upgrade to python2.6. You're going to have to rewrite the python PKGBUILDs to enable you to have different versions side-by-side. Or, you could just let pacman upgrade to python2.6, and install python2.5 from source in /usr/local/bin (without using pacman).
When someone has gotten (debugged) PKGBUILD tweaks that install different versions of Python beside each other, please share the love.
Numpy is already installed in python2.5/site-packages, but when I try to import it in ipython, I get the error
ImportError: libpython2.5.so.1.0: cannot open shared object file: No such file or directory
And since there is no python2.5 in the repos, only 2.4, I guess I will have to install that.
Last edited by sidc (2008-11-04 08:01:48)
Similar Messages
-
Guide me in making AUR for a python package
This is the package http://pypi.python.org/pypi/BitTorrent-bencode/5.0.8
- This python package is wrongly packaged. http://stackoverflow.com/questions/2693 … ode-module
- Also, it contains a test directory. Is it a concern?
This is the AUR (thats wrong)
pkgname=python2-bencode
_realname=BitTorrent-bencode
pkgver=5.0.8
pkgrel=1
pkgdesc="The BitTorrent bencode python module as leight-weight, standalone package."
url="http://pypi.python.org/pypi/BitTorrent-bencode"
arch=('i686' 'x86_64')
license=('GPL')
depends=('python2')
makedepends=('python2-distribute')
source=(http://pypi.python.org/packages/source/B/BitTorrent-bencode/$_realname-$pkgver.tar.gz)
md5sums=('5ad77003d18fc2e698d8d0d83be78d11')
build(){
cd "$srcdir/$_realname-$pkgver"
# python2 fix
for file in $(find . -name '*.py' -print); do
sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
done
python2 setup.py install --root="$pkgdir" --optimize=1
Guide me in making a perfect PKGBUILD.What I do is get the sources and MD5s in the PKGBUILD, then makepkg -o. I'll manually compile the sources but not install them, and when I have a few one-liners that make the magic happen, I put it into the build() section. Then I'll rm -rf the $srcdir and actually try it with package { true; } as the package() function. If that works, I'll try some install lines (instead of true) and run find against the $pkgdir. If it all looks good, I'll make sure my dependencies are in check and pack it up.
-
i am unable to aceess torrentz website.its coming that your IP address is abusing this server and most common reason is broken RSS reader
I have discovered it is most likely because you have Ad-Blocking software.
If your posting on a Mozilla site, then you probably (like me) use FireFox and probably also have the addon: AdBlock Plus, like I also do. I simply disabled on Torrentz.eu (also Torrentz.me would cause this problem) & when I refreshed it allowed me again. -
Whats wrong with my Python package?
Hello.
I rebuilde new version of python package from abs (I use PKGBUILD provided by abs tree).
When I run all script that imported os module I have:
ImportError: No module named os
Thanks for helpN30N wrote:
SpeedVin wrote:
When I run all script that imported os module I have:
ImportError: No module named os
Check that it's in your package:
pacman -Ql python | grep /os.py
When check if it's in your python path:
python -c 'import sys; print(sys.path)'
1.
There is no output for that.
2.
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
['', '/usr/lib/python26.zip', '/usr/lib/python2.6/', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload']
And my $PYTHONHOME is clean how to change it?
Last edited by SpeedVin (2009-10-11 17:11:26) -
I just took the plunge and added [testing], [community-testing] and [multilib-testing] to pacman and updated 102 packages, including, of course, the Big Python Move of 2010. Nothing is broken (yet) except for calibre, or actually, python-cssutils-beta found in AUR. For AUR files that break with /usr/bin/python calls, should it just be reported on the AUR page?
Yes, report to the AUR page to its maintainer. Submit a patch if you can (sometimes its as easy as grepping for /usr/bin/env python or /usr/bin/python and changing to python2, or calling the .py scripts with python2 explicitly).
-
I am using Mac OS X 10.4.8 and using the Python/Tix test instructions at the following URL. http://www.python.org/doc/2.3.5/lib/node651.html
I get the following error.
dude:~ ben$ python
Python 2.3.5 (#1, Jan 13 2006, 20:13:11)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import Tix
root = Tix.Tk()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ Tix.py", line 210, in _init_
self.tk.eval('package require Tix')
_tkinter.TclError: can't find package Tix
Can anyone recommend a workaround?
Mac Mini Mac OS X (10.4.7) IntelThank you for the suggestion. I installed the latest version of TkAqua from the linked sourceforge site, and now I get the following error.
dude:~ ben$ /usr/bin/python
Python 2.3.5 (#1, Jan 13 2006, 20:13:11)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import Tix
root = Tix.Tk()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ Tix.py", line 210, in _init_
self.tk.eval('package require Tix')
_tkinter.TclError: no suitable image found. Did find:
/Library/Tcl/Tix8.4/libTix8.4.dylib: mach-o, but wrong architecture
0
I guess Rosetta doesn't help me out, and the solution is to build my own TkAqua, as described at the following URL. http://wiki.tcl.tk/12987
I can do this, but I would not ask end users to install Xcode and compile TkAqua just to run my program and get a file open dialog. =) -
Applications in 10.4.11 installer package broken/won't download
Some of my applications that came with OS X 10.4.11 have become damaged. I have tried two ways of replacing them from the 10.4.11 Combo installer package downloaded from Apple.
1. I removed the faulty ones from my Applications folder and then ran the installer. None of the applications were downloaded into my Applications folder.
2. I used Pacifist to look into the installer package. In the Applications folder within the package, all (or most) of the applications had the generic icon that shows that an application is broken or incomplete, and when I extracted two of them by means of Pacifist, they retained that icon and did not work.
Can anyone tell me why this is? And, more importantly, how I can obtain working versions of iCal and Address Book? I should be most grateful for suggestions. If anyone has working versions of these and could send them to me by e-mail, I should be very grateful, too.Hmmm, are your 10.4 Install Discs more than one?
Just tried my Mac Mini, 10.4.2 Install Discs which is a 4 or 5 set, and indeed AB was a generic icon & small, I believe more resides on other Discs in the set, likely #2.
Have you considered...
If all the above fails, then it appears to be time for a relatively painless Archive & Install, which gives you a new/old OS, but can preserve all your files, pics, music, settings, etc., as long as you have plenty of free disk space and no Disk corruption, and is relatively quick & painless...
http://docs.info.apple.com/article.html?artnum=107120
Just be sure to select Preserve Users & Settings. -
Ok, my first pacman upgrade error ever I haven't been able to solve by a search in this forum, I'm afraid it might not be so straight forward.
Last night doing a pacman -Syu gave me an error that said gcc-fortran was missing, found this http://bbs.archlinux.org/viewtopic.php?id=45642 thread and made a change in the PKGBUILD dependecy list from "gcc-fortran" to "gcc-libs". After that pacman -Su worked.
However, today trying to work on a school project requiring python-numpy I got this error while trying to run my code:
File "/usr/lib/python2.5/site-packages/numpy/linalg/linalg.py", line 25, in <module>
from numpy.linalg import lapack_lite
ImportError: libgfortran.so.2: cannot open shared object file: No such file or directory
A quick look in /usr/lib/ showed no libgfortran.so.2 file but a libgfortran.so.3 file. Hoping for a quick fix so I could continue my work I made a symlink libgfortran.so.2 -> libgfortran.so.3. But it gave me this error:
File "/usr/lib/python2.5/site-packages/numpy/linalg/linalg.py", line 25, in <module>
from numpy.linalg import lapack_lite
ImportError: /usr/lib/libblas.so.3: undefined symbol: scabs1_
I would guess that the python-numpy package isn't updated to use the new fortran libs? If anyone have any idea how to fix this I would be greatful.
Last edited by ccchris (2008-03-28 12:17:00)Ok, I finally had time to fix this, and learned a bit about Arch/ABS too
For inexperienced users with the same problem as me this is what i did:
1. Installed ABS and ran 'abs' as root (more info here http://wiki.archlinux.org/index.php/ABS … ild_System )
2. Copied the files in /var/abs/extra/science/blas/ to a folder in my ~
3. nano Makefile -> add 'scabs1.o' to the end of the OBJS list, save & quit. (info from here: http://bugs.archlinux.org/task/9905?pro … &pagenum=2 )
4. md5sum Makefile -> replace old md5 in PKGBUILD, save & quit.
5. as user, 'makepkg'
6. as root, pacman -U blas-19980702-4-i686.pkg.tar.gz
Now it seems to work, thanks for the help! -
Hi,
I want to install the scipy and numpy modules. I checked in the AUR, and scipy was flagged as outdated. I decided to do things the old fashioned way, by downloading the .tar.gz files from the official website, when I encountered two problems.
# I went through the wiki and found there was something called ABS. I went through the steps of installing it, making a new file in ~, copying python-numpy to that folder. When I go there and do makepkg, it gives me the error
"error: 'python-distribute': could not find or read package
==> ERROR: 'pacman' failed to install missing dependencies."
#Not knowing what was wrong, I decided to ahead with downloading the official .tar.gz files from the websites. When I navigate to the folder that I have extracted them to, and do ./configure, I get the error,
"bash: ./configure: No such file or directory"
I am stumped.
EDIT: I have found out how to install it from instructions on the official website which installs it through python. However, I am not going to mark this solved because I'd like to know why this didn't work.
Last edited by anirudh215 (2011-03-08 17:18:33)I did add the -s flag, but it still gave me that error.
I did download from Extras. I'm wondering why I got that error.
EDIT: I have successfully installed numpy through ABS and figured out how it works. I've installed scipy through the instructions on the website. I'd still like to to know why I got the errors I got which are
# Even when I included the -s flag for makepkg, it didn't resolve the dependency
#Where is configure? Why is it giving me an error?
I'd also like to say that the scipy module ought to be updated.
Last edited by anirudh215 (2011-03-08 18:08:11) -
Python Launcher that shipped with Leopard has been broken since release; which was a long time ago. It is not a bug either, the basic functionally of being able to launch a python program is not working at all.
Is it going to get fixed? Any ideas when?So you can double click on a python program (*.py) and the program will run? There are many other people that are also having problems.
http://mail.python.org/pipermail/python-list/2007-November/464718.html
http://groups.google.com/group/comp.lang.python/browse_thread/thread/4b2954b2ae8 ca261/7ba3be15934ac723 -
Kaspersky detected Trojan in python package
Hello,
i runed an Virustest today because i got some Issues with the webcam (It got enabled when i plugged in the AC-Adaptor of my Notebook until i started Cheese).
After all Kaspersky deteced an Trojan ArcBomb in the "/usr/lib/python2.7/test/testbz2_bigmem.bz2" archive and espacially in the Pacman cached File "python2-2.7.4-1-x86_64.pkg.tar.xz//python2-2.7.4-1-x86_64.pkg.tar" Maybe it is a fail detection or not.
Best regards
Last edited by elektromann (2013-05-16 17:42:59)How exactly did you test for malware? I'm not too sure myself, but it looks like the archive in question is tied to a python script in the python2 package used to perform memory tests, using blocks of "empty" data of varying sizes. If that's the case, then it might function similarly to an arcbomb, but technically wouldn't be one. From what I've seen, it's a legitimate part of the python2 package, but I'm no expert.
-
Old packages which should be removed with the new python package?
I recently pacman -Syu'ed and got all the new updates Arch has to offer. In doing this, quodlibet wouldn't work anymore. Doing my own investigation, it apparently looks for libs in /usr/lib/python-2.4 before /usr/lib/python-2.5 come to find out a bunch of old packages still use /usr/lib/python-2.4 and therefore the folder sticks around and quodlibet complains it cant find what it needs in /usr/lib/python-2.4 when it is in fact in /usr/lib/python-2.5
I then proceeded to pacman -Qo /usr/lib/python-2.4 and remove packages until i could successfully delete the folder with no packages owning it. I would then assume, that the packages I had to remove need to be rebuilt with the new python. If someone can confirm my logic here, I'll post a bug report and hopefully this clears up some of the python migration issues that seem to be cropping up.
[will@Ghost32 python2.5]$ sudo pacman -R pyxdg
removing pyxdg... done.
[will@Ghost32 python2.5]$ sudo pacman -R python-m2crypto
removing python-m2crypto... done.
[will@Ghost32 python2.5]$ sudo pacman -R setuptools
removing setuptools... done.
[will@Ghost32 python2.5]$ sudo pacman -R python-elementtreee
error: could not find python-elementtreee in database
[will@Ghost32 python2.5]$ sudo pacman -R python-elementtree
removing python-elementtree... done.
[will@Ghost32 python2.5]$ sudo pacman -R python-musicbrainz
removing python-musicbrainz... done.
[will@Ghost32 python2.5]$ sudo pacman -R picard
removing picard... done.
[will@Ghost32 python2.5]$ sudo pacman -R libtunepimp
removing libtunepimp... done.
[will@Ghost32 python2.5]$ sudo pacman -R python-pyicu
removing python-pyicu... done.
[will@Ghost32 python2.5]$ sudo pacman -R python-pylucene
removing python-pylucene... done.
[will@Ghost32 python2.5]$ sudo pacman -R python-dateutil
removing python-dateutil... done.
[will@Ghost32 python2.5]$ sudo pacman -R libnewt
error: this will break the following dependencies:
libnewt: is required by partimage
[will@Ghost32 python2.5]$ sudo pacman -R partimage
removing partimage...
warning: /etc/partimaged/partimagedusers saved as /etc/partimaged/partimagedusers.pacsave
Deleting user partimag
done.
[will@Ghost32 python2.5]$ sudo pacman -R libnewt
removing libnewt... done.
[will@Ghost32 python2.5]$ sudo pacman -R winki
removing winki... done.
[will@Ghost32 python2.5]$ sudo pacman -R boost
error: this will break the following dependencies:
boost: is required by wengophone-ng
[will@Ghost32 python2.5]$ sudo pacman -R wengophone-ng
removing wengophone-ng... done.
[will@Ghost32 python2.5]$ sudo pacman -R boost
removing boost... done.
[will@Ghost32 python2.5]$ sudo pacman -R pacmon-svn
removing pacmon-svn... done.
[will@Ghost32 python2.5]$ sudo pacman -R python-notify
removing python-notify... done.
[will@Ghost32 python2.5]$ sudo pacman -R python-eyed3
error: this will break the following dependencies:
python-eyed3: is required by libgpod
[will@Ghost32 python2.5]$ sudo pacman -R libgpod
error: this will break the following dependencies:
libgpod: is required by gtkpod
[will@Ghost32 python2.5]$ sudo pacman -R gtkpod libgpod python-eyed3
removing gtkpod... done.
removing libgpod... done.
removing python-eyed3... done.
[will@Ghost32 python2.5]$
and in the other terminal I had..
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by pyxdg 0.15-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by python-m2crypto 0.16-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by setuptools 0.6c3-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by python-elementtree 1.2.6-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by python-musicbrainz 2.1.2-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by picard 0.7.0-2
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by libtunepimp 0.5.0-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by python-pyicu 0.5-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by python-pylucene 2.0.0-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by python-dateutil 1.1-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by libnewt 0.52.2-3
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by winki 0.4.1-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by boost 1.33.1-5
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by pacmon-svn 14-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by python-notify 0.1.1-2
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
/usr/lib/python2.4/ is owned by python-eyed3 0.6.11-1
[will@Ghost32 ~]$ sudo pacman -Qo /usr/lib/python2.4/
No package owns /usr/lib/python2.4/
[will@Ghost32 ~]$
Edit: I just realized that a good deal of these packages could be ones that I built from the AUR, but hopefully theres a few in there from current and extra which will help the devs, and hopefully if nothing else it'll help some other people out there.
Last edited by The_Nerd (2007-03-21 22:47:39)Hi,
You can a cretae role by copying( 1st icon in application tollbar) from other one in t.code: PFCG & then need to assign role to user in t.code: SU01.
For reference check link:
http://e-mory.blogspot.com/2007/12/sap-pfcg-create-role.html
Regards,
Biju K -
ISO scientific graphing package
Hello
I'm looking for a tool to graph ( bar, line, histogram, 3d scatter plot ) and display hierarchical clusters for scientific data ( microarray ).
I've already found: jfreechart, jopenchart, genespring, gene sight, nViZn, ... It seems that anything with more features than jopenchart is a standalone application. I need a package that can run in a webserver.
thanksJFreeChart can be used for servlets or JSP. But it won't do a 3D scatter plot.
Regards,
Dave Gilbert
JFreeChart Project Leader
P.S. URL for anyone that wants it:
http://www.jfree.org/jfreechart/index.html -
How do I get a list of the most recent upgraded packages?
Hi there,
I want to get a list of the last upgrades using pacman.
I´ve been looking for a way to do it in the man page, but either I´m blind or there is not such an option.
I know that I can just do:
ls --sort time /var/cache/pacman/pkg/|head
But what if I clean the cache regularly?
Does the pacman database store the upgrade or installation date for each package? If so, how can I access this data?
Cheers,
Edit: I know that "pacman -Qi" gives me the date of installation of individual packages, but what I want is to be able to sort the list of all installed packages by date.
Last edited by samhain (2008-04-30 11:41:19)dolby wrote:/var/log/pacman is the file you want
Thanks.
cat /var/log/pacman.log | grep "] upgraded" | tail
Gives me what I need
I would prefer if pacman had some option for sorting the queries, but for now, this will do fine. -
Python/matplotlib output using latex broken
ive been trying to:
pyplt.savefig("something.eps")
but i always get these errors:
Saving figure to: plots/large_study/res_FR.eps
RuntimeError Traceback (most recent call last)
/mnt/data/sandbox/python/sqc_replacement/datawriter.py in <module>()
----> 1
2
3
4
5
/mnt/data/sandbox/python/sqc_replacement/datawriter.py in plot_residuals(params, ff)
613 fname = 'plots' + os.sep + outfile + os.sep + 'res_' + p + '.' + ff
614 print('Saving figure to: ' + fname)
--> 615 pyplt.savefig(fname, **{'format':ff})
616 # 1}}}
617
/usr/lib/python2.6/site-packages/matplotlib/pyplot.pyc in savefig(*args, **kwargs)
354 def savefig(*args, **kwargs):
355 fig = gcf()
--> 356 return fig.savefig(*args, **kwargs)
357 if Figure.savefig.__doc__ is not None:
358 savefig.__doc__ = dedent(Figure.savefig.__doc__)
/usr/lib/python2.6/site-packages/matplotlib/figure.pyc in savefig(self, *args, **kwargs)
1030 patch.set_alpha(0.0)
1031
-> 1032 self.canvas.print_figure(*args, **kwargs)
1033
1034 if transparent:
/usr/lib/python2.6/site-packages/matplotlib/backend_bases.pyc in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs)
1474 orientation=orientation,
1475 bbox_inches_restore=_bbox_inches_restore,
-> 1476 **kwargs)
1477 finally:
1478 if bbox_inches and restore_bbox:
/usr/lib/python2.6/site-packages/matplotlib/backend_bases.pyc in print_eps(self, *args, **kwargs)
1327 from backends.backend_ps import FigureCanvasPS # lazy import
1328 ps = self.switch_backends(FigureCanvasPS)
-> 1329 return ps.print_eps(*args, **kwargs)
1330
1331 def print_pdf(self, *args, **kwargs):
/usr/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in print_eps(self, outfile, *args, **kwargs)
853
854 def print_eps(self, outfile, *args, **kwargs):
--> 855 return self._print_ps(outfile, 'eps', *args, **kwargs)
856
857
/usr/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in _print_ps(self, outfile, format, *args, **kwargs)
882 self._print_figure_tex(outfile, format, imagedpi, facecolor, edgecolor,
883 orientation, isLandscape, papertype,
--> 884 **kwargs)
885 else:
886 self._print_figure(outfile, format, imagedpi, facecolor, edgecolor,
/usr/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in _print_figure_tex(self, outfile, format, dpi, facecolor, edgecolor, orientation, isLandscape, papertype, **kwargs)
1183 convert_psfrags(tmpfile, ps_renderer.psfrag, font_preamble,
1184 custom_preamble, paperWidth, paperHeight,
-> 1185 orientation)
1186
1187 if rcParams['ps.usedistiller'] == 'ghostscript':
/usr/lib/python2.6/site-packages/matplotlib/backends/backend_ps.pyc in convert_psfrags(tmpfile, psfrags, font_preamble, custom_preamble, paperWidth, paperHeight, orientation)
1270 if exit_status:
1271 raise RuntimeError('LaTeX was not able to process your file:\
-> 1272 \nHere is the full report generated by LaTeX: \n\n%s'% fh.read())
1273 else: verbose.report(fh.read(), 'debug')
1274 fh.close()
RuntimeError: LaTeX was not able to process your file:
Here is the full report generated by LaTeX:
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Arch Linux)
restricted \write18 enabled.
entering extended mode
(/tmp/tmpQzkfCe.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, ku
rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, po
lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, span
ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/latex/type1cm/type1cm.sty)
(/usr/share/texmf-dist/tex/latex/psnfss/mathptmx.sty)
(/usr/share/texmf-dist/tex/latex/psnfss/helvet.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty))
(/usr/share/texmf-dist/tex/latex/psnfss/courier.sty)
(/usr/share/texmf-dist/tex/latex/base/textcomp.sty
(/usr/share/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/share/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texmf-dist/tex/xelatex/xetexconfig/geometry.cfg)
Package geometry Warning: Over-specification in `h'-direction.
`width' (578.15999pt) is ignored.
Package geometry Warning: Over-specification in `v'-direction.
`height' (433.62pt) is ignored.
) (/usr/share/texmf-dist/tex/latex/psfrag/psfrag.sty
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/graphics/dvips.def)))
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty)
(/usr/share/texmf-dist/tex/latex/graphics/color.sty
(/usr/share/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/share/texmf-dist/tex/latex/graphics/dvipsnam.def))
No file tmpQzkfCe.aux.
(/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd)
(/usr/share/texmf-dist/tex/latex/psnfss/ot1ptm.fd)
*geometry detected driver: dvips*
<tmpQzkfCe.eps> (/usr/share/texmf-dist/tex/latex/psnfss/ot1ztmcm.fd)
(/usr/share/texmf-dist/tex/latex/psnfss/omlztmcm.fd)
(/usr/share/texmf-dist/tex/latex/psnfss/omsztmcm.fd)
(/usr/share/texmf-dist/tex/latex/psnfss/omxztmcm.fd)
! Missing $ inserted.
<inserted text>
$
l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
! Extra }, or forgotten $.
\mbox #1->\leavevmode \hbox {#1}
l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
! Extra }, or forgotten $.
\nfss@text #1->{\mbox {#1}}
l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
! Missing $ inserted.
<inserted text>
$
l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
! Missing } inserted.
<inserted text>
l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
! Missing } inserted.
<inserted text>
l.47 \includegraphics*[angle=0]{tmpQzkfCe.eps}
[1] (./tmpQzkfCe.aux) )
(see the transcript file for additional information)
Output written on tmpQzkfCe.dvi (1 page, 5944 bytes).
Transcript written on tmpQzkfCe.log.
matplotlibrc:
backend : GTKAgg
font.family : serif
font.serif : Times, Palatino, New Century Schoolbook, Bookman, Computer Modern Roman
font.sans-serif : Helvetica, Avant Garde, Computer Modern Sans serif
font.cursive : Zapf Chancery
font.monospace : Terminus, Dina, Courier
text.usetex : true
ps.usedistiller : ghostscript
relevant packages:
extra/texlive-bibtexextra 2009.16287-1 (texlive-most)
extra/texlive-bin 2009.5-2
extra/texlive-core 2009.16776-1 (texlive-most)
extra/texlive-fontsextra 2009.16617-1 (texlive-most)
extra/texlive-formatsextra 2009.16044-1 (texlive-most)
extra/texlive-games 2009.16453-1 (texlive-most)
extra/texlive-genericextra 2009.15878-1 (texlive-most)
extra/texlive-htmlxml 2009.15878-1 (texlive-most)
extra/texlive-humanities 2009.16540-1 (texlive-most)
extra/texlive-latex3 2009.16491-1 (texlive-most)
extra/texlive-latexextra 2009.16666-1 (texlive-most)
extra/texlive-music 2009.15878-2 (texlive-most)
extra/texlive-pictures 2009.16576-1 (texlive-most)
extra/texlive-plainextra 2009.16629-1 (texlive-most)
extra/texlive-pstricks 2009.16633-1 (texlive-most)
extra/texlive-publishers 2009.16512-1 (texlive-most)
extra/texlive-science 2009.16539-1 (texlive-most)
extra/python-numpy 1.4.0-1
community/python-scipy 0.7.1-5
community/python-matplotlib 0.99.1.2-2
im pretty new to python, and i know nothing of latex, other than it seems to be well broken atm for me. i can save figures in any other file format with no errors.csstaub wrote:Looks like the script is generating invalid LaTeX code. A bug perhaps?
i've asked friends (other distros) and the folks in #scipy, noone else seems to have this problem.
i'd bet it has something to do wiht my setup, but im afraid idk enough to fix this problem.
Maybe you are looking for
-
Printing a slide: how to shrink the size of the border
I am trying to print a single slide on a 8.5 x 11" page. I'm not necessariliy looking for a borderless print, but would like to minimize the white border around the slide. I realize there may be settings specific to my printer, which I've tried playi
-
SCCM 2012 - Network requirements for Client communication to primary in a Cross Forest Environment
Hello, I have been trying to get some definitive answers on what network traffic is required between a client and a primary site versus a secondary in a cross forest scenario. Here is the scenario: Company A has an existing SCCM 2012 primary Site. Co
-
N97 mini - Contact Sort Company, Name
Hello my N97 mini is for Business use and I am using Mail for Exchange. Everything works perfect. I synchronize Mails, Contacts, dates and tasks with Exchange. In Exchange-Contacts are, along with other contact details, for me the important fields
-
Hi All :D I have a datagrid with an arrayCollection as its data provider. One of the columns, named address, is the concatenation of three addresses from my arrayCollection (address1, address2, address3) My problem is I do not know how to implement t
-
How to install software on MDS 9509 Switch
Hi, One of our MDS 9509 switches has died. This used to be supported externally but has now been brought in house. A replacement box is due to arrive soon but I will nee to update the software to the same version that the old box was using and apply