[issue14216] ImportError: No module named binascii

Qian Liu report at bugs.python.org
Wed Mar 7 10:35:22 CET 2012


Qian Liu <liuq0011 at e.ntu.edu.sg> added the comment:

Dear Martin,

I did the following operations
./configure --prefix=
"/img01/home/liuqian1/PLAprediction/software/PythonInstall"
make
make install

and then

MPYTHONHOME="/img01/home/liuqian1/PLAprediction/software/PythonInstall"
PATH="$MPYTHONHOME/bin":$PATH

However, when I try ' python -c "import binascii;" ', *I still got the same
error.*

By the way, I can run ' python -c "import binascii;" ' on Window XP and in
python 2.5.5.

Our technician also installed python 3.0 in our Linux server without the
'prefex' in the "./configure" but we got the same error also.

Any more comments about this?

Thanks for your help in advance.

Best regards,
Qian Liu

On Wed, Mar 7, 2012 at 5:12 PM, Qian Liu <report at bugs.python.org> wrote:

>
> Qian Liu <liuq0011 at e.ntu.edu.sg> added the comment:
>
> Dear Martin,
>
> Many thanks for your help and your reply. I will correct the errors and let
> you know the result.
>
> best regards,
> Qian Liu
>
> On Wed, Mar 7, 2012 at 5:07 PM, Martin v. Löwis <report at bugs.python.org
> >wrote:
>
> >
> > Martin v. Löwis <martin at v.loewis.de> added the comment:
> >
> > There are some minor errors indeed: the syntax for PATH and PYTHONPATH is
> > wrong (don't use quotes (") in the middle of the value). Also, putting
> > site-packages into PYTHONPATH should not be necessary.
> >
> > I think the main cause might be the incorrect --prefix argument. Don't
> use
> > "~/PythonInstall", but "$HOME/PythonInstall". Also, when I try this, I
> get
> >
> > configure: error: expected an absolute directory name for --prefix:
> > ~/PythonInstall
> >
> > so you must have made something different (or you have used a shell
> > different from bash), else you would have gotten the same error.
> >
> > ----------
> >
> > _______________________________________
> > Python tracker <report at bugs.python.org>
> > <http://bugs.python.org/issue14216>
> > _______________________________________
> >
> >
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue14216>
> _______________________________________
>
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14216>
_______________________________________


More information about the Python-bugs-list mailing list