Wait, what's this about python2.4 in those paths? You said you're running python 2.5? What happens if you do $ python25 >>> import pylab ?
On Tue, Mar 3, 2009 at 12:31 PM, Pau <[email protected]> wrote: > Hello, > > thanks, I thought the same and, as a matter of fact: > > hux(p8)| python > Python 2.4.6 (#1, Feb 9 2009, 15:01:16) > [GCC 3.3.5 (propolice)] on openbsd4 > Type "help", "copyright", "credits" or "license" for more information. >>>> import sys >>>> print sys.path > ['', '/usr/local/lib/python24.zip', '/usr/local/lib/python2.4', > '/usr/local/lib/python2.4/plat-openbsd4', > '/usr/local/lib/python2.4/lib-tk', > '/usr/local/lib/python2.4/lib-dynload', > '/usr/local/lib/python2.4/site-packages'] >>>> > > But where is pylab? pbrowser doesn't find it and > > # cd /usr/ports/ > # find . -name "*pylab*" > > yields nothing... > > Is this related to running -current? I would prefer to stick to a > stable, but this laptop is too modern... > > 2009/3/3 Nick Guenther <[email protected]>: >> On Tue, Mar 3, 2009 at 12:18 PM, Pau <[email protected]> wrote: >>> Hello, >>> >>> I have many python scripts to plot graphs. >>> >>> I have now done a clean OpenBSD install (-current) on a thinkpad x200s. >>> >>> hux(p8)| uname -a >>> OpenBSD hux 4.5 GENERIC#1748 i386 >>> >>> I have installed py-matplotlib and python. >>> >>> My scripts start like this: >>> >>> ------------------------------------- >>> #!/usr/bin/env python >>> """ >>> some comment >>> """ >>> >>> from pylab import * >>> >>> # Create arrays >>> X = load ( './BinaryData_0.dat') >>> etc etc >>> ------------------------------------- >>> >>> I have done thousands of plots with this scheme. >>> >>> But now, when I try to execute the script, I get >>> >>> Traceback (most recent call last): >>> File "./KozaiEccSemi.py", line 11, in ? >>> from pylab import * >>> ImportError: No module named pylab >>> >>> This is Python 2.5.4, on zsh but I have tried to both change the >>> python version and to use a different shell, with default config file >>> (my zshrc is complicated) >>> >>> The error output is always the same. >>> >>> Any help will be appreciated. >>> >> >> Run this python script: >> >> import sys >> print sys.path >> >> and then look in the dirs it spits out for anything called "pylab". >> It's likely that pylab wasn't installed with py-matplotlib. Did you >> read something that suggested it would be? >> >> -Nick >> > > > > -- > Let there be peace on earth. And let it begin with misc > _______________________________________________ Openbsd-newbies mailing list [email protected] http://mailman.theapt.org/listinfo/openbsd-newbies
