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 <robert.fary...@gmail.com>:
> > 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 out my operating system.
> >
> > Any suggestion?
> >
> >
> >
> >
> > On Tue, Jul 27, 2010 at 10:42 AM, Sebastian Haase <seb.ha...@gmail.com>
> > 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.
> >>
> >> Additionally, for some incomprehensible reason the Python source code
> >> (as downloaded from python.org) defaults to 2ByteUnicode whereas
> >> all (major) Linux distributions default to 4ByteUnicode.....
> >>
> >> ( check >>> sys.maxunicode   to see what you have; I get  1114111, i.e
> >> >65535 , so I have 4 byte (on Debian) )
> >>
> >> So, most likely you have some "hand compiled" Python somewhere ....
> >>
> >> - Sebastian Haase
> >>
> >>
> >>
> >> On Tue, Jul 27, 2010 at 4:33 PM, Matthieu Brucher
> >> <matthieu.bruc...@gmail.com> wrote:
> >> > 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 <robert.fary...@gmail.com>:
> >> >> 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 "<stdin>", line 1, in <module>
> >> >>   File "/usr/lib/python2.6/dist-packages/numpy/__init__.py", line
> 130,
> >> >> in
> >> >> <module>
> >> >>     import add_newdocs
> >> >>   File "/usr/lib/python2.6/dist-packages/numpy/add_newdocs.py", line
> 9,
> >> >> in
> >> >> <module>
> >> >>     from lib import add_newdoc
> >> >>   File "/usr/lib/python2.6/dist-packages/numpy/lib/__init__.py", line
> >> >> 4, in
> >> >> <module>
> >> >>     from type_check import *
> >> >>   File "/usr/lib/python2.6/dist-packages/numpy/lib/type_check.py",
> line
> >> >> 8,
> >> >> in <module>
> >> >>     import numpy.core.numeric as _nx
> >> >>   File "/usr/lib/python2.6/dist-packages/numpy/core/__init__.py",
> line
> >> >> 5, in
> >> >> <module>
> >> >>     import multiarray
> >> >> ImportError:
> /usr/lib/python2.6/dist-packages/numpy/core/multiarray.so:
> >> >> undefined symbol: _PyUnicodeUCS4_IsWhitespace
> >> >>
> >> >>
> >> >> Do you have any idea? It seems that the UCS4 and UCS2 are related to
> 16
> >> >> and
> >> >> 8 bit unicode.
> >> >>
> >> >>
> >> >> On Tue, Jul 27, 2010 at 10:16 AM, Charles R Harris
> >> >> <charlesr.har...@gmail.com> wrote:
> >> >>>
> >> >>>
> >> >>> On Tue, Jul 27, 2010 at 7:46 AM, Robert Faryabi
> >> >>> <robert.fary...@gmail.com>
> >> >>> 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 the following error.
> >> >>>>
> >> >>>> >> import numpy
> >> >>>> Traceback (most recent call last):
> >> >>>>   File "<stdin>", line 1, in <module>
> >> >>>> ImportError: No module named numpy
> >> >>>>
> >> >>>> The package cannot be located.
> >> >>>>
> >> >>>> Then I tried to point the interpreter to the numpy
> >> >>>>
> >> >>>> >>> sys.path.append('/usr/lib/
> >> >>>> python2.6/dist-packages')
> >> >>>>
> >> >>>
> >> >>> I use an install.pth file
> >> >>>
> >> >>> $char...@ubuntu ~$ cat
> >> >>> ~/.local/lib/python2.6/site-packages/install.pth
> >> >>> /usr/local/lib/python2.6/dist-packages
> >> >>>
> >> >>> You will need to create the .local directory and its subdirectories.
> >> >>> Don't
> >> >>> use Python 3.0, use 3.1 or greater if you want to experiment.
> >> >>>
> >> >>> <snip>
> >> >>>
> >> >>> Chuck
> >> >>>
> >> >>>
> >> >>> _______________________________________________
> >> >>> NumPy-Discussion mailing list
> >> >>> NumPy-Discussion@scipy.org
> >> >>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >> >>>
> >> >>
> >> >>
> >> >> _______________________________________________
> >> >> NumPy-Discussion mailing list
> >> >> NumPy-Discussion@scipy.org
> >> >> http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Information System Engineer, Ph.D.
> >> > Blog: http://matt.eifelle.com
> >> > LinkedIn: http://www.linkedin.com/in/matthieubrucher
> >> > _______________________________________________
> >> > NumPy-Discussion mailing list
> >> > NumPy-Discussion@scipy.org
> >> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >> >
> >> _______________________________________________
> >> NumPy-Discussion mailing list
> >> NumPy-Discussion@scipy.org
> >> http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >
> >
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion@scipy.org
> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
> >
> >
>
>
>
> --
> Information System Engineer, Ph.D.
> Blog: http://matt.eifelle.com
> LinkedIn: http://www.linkedin.com/in/matthieubrucher
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to