python 2.1.1 problems on cygwin 1.3.3-1

Jason Tishler jason@tishler.net
Fri Sep 14 06:07:00 GMT 2001


Gerrit,

On Fri, Sep 14, 2001 at 06:25:55AM +0200, Gerrit P. Haase wrote:
> My script: make-version.py looks like this (shorter than original, 
> probably only the first line will produce this error):
> ======================================================
> 
> import re
> import sys
> 
> This is the output:
> ===================
> $ python ./stepmake/bin/make-version.py
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>   File "./stepmake/bin/make-version.py", line 2, in ?
>     import re
> ImportError: No module named re

I just tried the above and it works for me.  I'm using 2000 -- IIRC, you
are using NT 4.0.  Correct?  Although, this should not be relevant.

> $ python -v ./stepmake/bin/make-version.py
> 'import site' failed; traceback:
> ImportError: No module named site
> Python 2.1.1 (#2, Aug 23 2001, 10:41:44)
> [GCC 2.95.3-5 (cygwin special)] on cygwin
> Type "copyright", "credits" or "license" for more information.
> Traceback (most recent call last):
>   File "./stepmake/bin/make-version.py", line 2, in ?
>     import re
> ImportError: No module named re

> [snip]
> 
> What did i wrong, or is s.th. missing from my installation?

The site and re modules are not missing from the tarball:

    $ tar -tjf python-2.1.1-1.tar.bz2 | egrep '/(site|re)\.py$'
    usr/lib/python2.1/re.py
    usr/lib/python2.1/site.py

Please do the following and report back:

    $ python -c 'import sys; print sys.path'
    ['', '/usr/lib/python2.1', '/usr/lib/python2.1/plat-cygwin', '/usr/lib/python2.1/lib-tk', '/usr/lib/python2.1/lib-dynload', '/usr/lib/python2.1/site-packages', '/usr/lib/python2.1/site-packages/python-ldap']
    $ ls -l /usr/bin/*python*
    -rwxrwxrwx    1 Administ None       510464 Aug 23 10:44 /usr/bin/libpython2.1.dll
    lrwxrwxrwx    1 Administ None           24 Sep 14 08:54 /usr/bin/python.exe -> python2.1.exe
    -rwxrwxrwx    1 Administ None         3072 Aug 23 10:44 /usr/bin/python2.1.exe
    $ ls -l /usr/lib/python2.1/site.py /usr/lib/python2.1/re.py
    -rwxrwxrwx    1 Administ None          817 Aug 23 10:42 /usr/lib/python2.1/re.py
    -rwxrwxrwx    1 Administ None         9041 Aug 23 10:42 /usr/lib/python2.1/site.py

Thanks,
Jason

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list