Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-28 Thread Fernando Perez
On Wed, Jul 28, 2010 at 12:36 PM, Fernando Perez wrote: > The official Python 2.x unicode story is well explained here: > http://docs.python.org/howto/unicode.html > > and here is the corresponding document for 3.x: > http://docs.python.org/release/3.1.2/howto/unicode.html Just in case you're sti

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-28 Thread Fernando Perez
On Tue, Jul 27, 2010 at 7:42 AM, Sebastian Haase wrote: > The origin of this problem is the fact that Python supports (at least) > 2 types of Unicode: > 2 bytes and/or 4 bytes per character. It only supports those two, and that's purely an internal implementation detail. Python can encode unicod

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-28 Thread Robert Faryabi
Thanks, I did almost the same yesterday and now everything works fine. On Wed, Jul 28, 2010 at 4:29 AM, Sebastian Haase wrote: > You should be allowed to remove anything in /usr/local without fear to > kill your operation system. > In case you miss python2.5 afterwards, you should be able to just

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-28 Thread Sebastian Haase
You should be allowed to remove anything in /usr/local without fear to kill your operation system. In case you miss python2.5 afterwards, you should be able to just install it with apt-get install python2.5 at any time - it would go to /usr/lib + /usr/bin + ... NOT /usr/local. It is unlikely that

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Keith Goodman
On Tue, Jul 27, 2010 at 9:29 AM, Robert Faryabi wrote: > I just looked at my system more carefully. > > There are two executable files > > /usr/local/bin/python > > and > > /usr/bin/python > this is a link to python2.6 > > I believe that the first one is source compiled version. So, how can I get

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Robert Faryabi
I just looked at my system more carefully. There are two executable files /usr/local/bin/python and /usr/bin/python this is a link to python2.6 I believe that the first one is source compiled version. So, how can I get rid of it? On Tue, Jul 27, 2010 at 12:09 PM, Robert Faryabi wrote: > it r

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Robert Faryabi
it returns /usr/local/bin/python On Tue, Jul 27, 2010 at 12:07 PM, Matthieu Brucher < matthieu.bruc...@gmail.com> wrote: > What does "which python" return? > > 2010/7/27 Robert Faryabi : > > I'm getting the same > > > sys.maxunicode > > 65535 > > > > I might have some "hand complied" python

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Robert Faryabi
As Sebastian suggested, I might have some hand compiled python. Anyone could tell me how can I get rid of all my python and reinstall a fresh one? On Tue, Jul 27, 2010 at 10:33 AM, Matthieu Brucher < matthieu.bruc...@gmail.com> wrote: > It's a problem of compilation of Python and numpy with diff

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Matthieu Brucher
What does "which python" return? 2010/7/27 Robert Faryabi : > I'm getting the same > sys.maxunicode > 65535 > > I might have some "hand complied" python. Once I compiled Biopython long > ago. > > The problem is I do not know how to clean up all the python version that I > have. I tried the re

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Robert Faryabi
I'm getting the same >>> sys.maxunicode 65535 I might have some "hand complied" python. Once I compiled Biopython long ago. The problem is I do not know how to clean up all the python version that I have. I tried the reinstall option. It does not work. I cannot remove the python. It will wipe ou

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Sebastian Haase
The origin of this problem is the fact that Python supports (at least) 2 types of Unicode: 2 bytes and/or 4 bytes per character. Additionally, for some incomprehensible reason the Python source code (as downloaded from python.org) defaults to 2ByteUnicode whereas all (major) Linux distributions de

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Matthieu Brucher
It's a problem of compilation of Python and numpy with different parameters. But I've tried the same yesterday, and the Ubuntu repository are OK in that respect, so there is something not quite right with your configuration. Matthieu 2010/7/27 Robert Faryabi : > I can see the numpy now, but I hav

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Robert Faryabi
I can see the numpy now, but I have the problem with a shared library. Here is the error >>> import numpy Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.6/dist-packages/numpy/__init__.py", line 130, in import add_newdocs File "/usr/lib/python2.6/dist-pack

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Robert Faryabi
Yes, It seems there is a problem with some sort of header. I have no Idea. Look at this http://article.gmane.org/gmane.comp.python.numeric.general/3508/match=numpy+core+multiarray+so+_pyunicodeucs4_iswhitespace On Tue, Jul 27, 2010 at 10:03 AM, Matthieu Brucher < matthieu.bruc...@gmail.com> wr

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Charles R Harris
On Tue, Jul 27, 2010 at 7:46 AM, Robert Faryabi wrote: > I am new to numpy. Hopefully this is a correct forum to post my question. > > I have Ubuntu Luci system. I installed Python 2.6.5 and Python 3.0 as well > as python-numpy using Ubuntu repository. > When I import the numpy into python, I get

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Matthieu Brucher
Python 2.6.5 from Ubuntu? I tried the same yesterday evening, and it worked like a charm. Matthieu 2010/7/27 Robert Faryabi : > I am using 2.5.6 > > Python 2.6.5 (r265:79063, Jun 28 2010, 20:31:28) > [GCC 4.4.3] on linux2 > > > > On Tue, Jul 27, 2010 at 9:51 AM, Matthieu Brucher > wrote: >> >> W

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Robert Faryabi
I am using 2.5.6 Python 2.6.5 (r265:79063, Jun 28 2010, 20:31:28) [GCC 4.4.3] on linux2 On Tue, Jul 27, 2010 at 9:51 AM, Matthieu Brucher < matthieu.bruc...@gmail.com> wrote: > Which version of Python are you actually using in this example? > > Matthieu > > 2010/7/27 Robert Faryabi : > > I am

Re: [Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Matthieu Brucher
Which version of Python are you actually using in this example? Matthieu 2010/7/27 Robert Faryabi : > I am new to numpy. Hopefully this is a correct forum to post my question. > > I have Ubuntu Luci system. I installed Python 2.6.5 and Python 3.0 as well > as python-numpy using Ubuntu repository.

[Numpy-discussion] Problem with importing numpy in Ubuntu

2010-07-27 Thread Robert Faryabi
I am new to numpy. Hopefully this is a correct forum to post my question. I have Ubuntu Luci system. I installed Python 2.6.5 and Python 3.0 as well as python-numpy using Ubuntu repository. When I import the numpy into python, I get the following error. >> import numpy Traceback (most recent call