* Re: Antw: Re: Cygwin python 2.3 oddity
@ 2003-09-11 14:54 Olivier Lefevre
2003-09-11 15:39 ` Jason Tishler
0 siblings, 1 reply; 10+ messages in thread
From: Olivier Lefevre @ 2003-09-11 14:54 UTC (permalink / raw)
To: Cygwin
bash-2.05b$ ls -ls `echo $PYTHONSTARTUP`
1.0k -rw-rw-rw- 1 Administ None 22 Sep 11 16:34
/c/cygwin/startup.py
I know it isn't read because it contains the line 'from sets import
Set' but
bash-2.05b$ python
Python 2.3 (#1, Aug 1 2003, 15:01:23)
[GCC 3.2 20020927 (prerelease)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> Set()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'Set' is not defined
yet the sets module can be found:
>>> from sets import Set
>>> Set()
Set([])
>>>
So at this point I am really mystified.
-- O.L.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Antw: Re: Cygwin python 2.3 oddity
2003-09-11 14:54 Antw: Re: Cygwin " Olivier Lefevre
@ 2003-09-11 15:39 ` Jason Tishler
0 siblings, 0 replies; 10+ messages in thread
From: Jason Tishler @ 2003-09-11 15:39 UTC (permalink / raw)
To: cygwin; +Cc: Olivier Lefevre
Olivier,
On Thu, Sep 11, 2003 at 04:41:04PM +0200, Olivier Lefevre wrote:
> bash-2.05b$ ls -ls `echo $PYTHONSTARTUP`
> 1.0k -rw-rw-rw- 1 Administ None 22 Sep 11 16:34
> /c/cygwin/startup.py
Why is the above "/c/cygwin/startup.py" and not "/startup.py" as you
previously indicated?
> I know it isn't read because it contains the line 'from sets import
> Set' but
>
> bash-2.05b$ python
> Python 2.3 (#1, Aug 1 2003, 15:01:23)
> [GCC 3.2 20020927 (prerelease)] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> Set()
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> NameError: name 'Set' is not defined
>
> yet the sets module can be found:
>
> >>> from sets import Set
> >>> Set()
> Set([])
> >>>
>
> So at this point I am really mystified.
I cannot explain the above behavior.
FWIW, the following works:
$ cat /tmp/.pythonrc.py
print '*** startup executed ***'
$ PYTHONSTARTUP=/tmp/.pythonrc.py python
Python 2.3 (#1, Aug 5 2003, 09:49:11)
[GCC 3.2 20020927 (prerelease)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
*** startup executed ***
>>>
BTW, I just noticed that you are using Cygwin Python 2.3-1. Does 2.3-2
work any better? The two packages are identical except for 32- vs.
64-bit, but maybe this is the difference?
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Antw: Re: Cygwin python 2.3 oddity
@ 2003-09-11 15:55 Olivier Lefevre
2003-09-11 17:28 ` Cliff Hones
0 siblings, 1 reply; 10+ messages in thread
From: Olivier Lefevre @ 2003-09-11 15:55 UTC (permalink / raw)
To: cygwin, jason
> Why is the above "/c/cygwin/startup.py" and not "/startup.py"
> as you previously indicated?
That's the same directory. I just made a typo the 1st time.
> BTW, I just noticed that you are using Cygwin Python 2.3-1. Does
2.3-2
> work any better? The two packages are identical except for 32- vs.
> 64-bit, but maybe this is the difference?
I tried to install 2.3.2 and got "The procedure entry point __getreent
could not
be located in the dynamic link library cygwin1.dll", so I went back to
2.3.1. In
any case, this is a standard PIV-based PC, no 64-bit here.
Now if only cygwin had an equivalent of Solaris truss; it might give us
a clue.
-- O.L.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <sf60b722.072@t-c-c.at>]
* Re: Antw: Re: Cygwin python 2.3 oddity
[not found] <sf60b722.072@t-c-c.at>
@ 2003-09-11 18:35 ` Jason Tishler
0 siblings, 0 replies; 10+ messages in thread
From: Jason Tishler @ 2003-09-11 18:35 UTC (permalink / raw)
To: Olivier Lefevre; +Cc: cygwin
Olivier,
On Thu, Sep 11, 2003 at 05:55:37PM +0200, Olivier Lefevre wrote:
> > BTW, I just noticed that you are using Cygwin Python 2.3-1. Does
> > 2.3-2 work any better? The two packages are identical except for
> > 32- vs. 64-bit, but maybe this is the difference?
>
> I tried to install 2.3.2 and got "The procedure entry point __getreent
> could not be located in the dynamic link library cygwin1.dll", so I
> went back to 2.3.1. In any case, this is a standard PIV-based PC, no
> 64-bit here.
See the following:
http://cygwin.com/ml/cygwin-announce/2003-09/msg00001.html
http://cygwin.com/ml/cygwin-announce/2003-09/msg00041.html
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Antw: Re: Cygwin python 2.3 oddity
@ 2003-09-11 21:55 Olivier Lefevre
2003-09-11 21:58 ` Antw: Re: cygwin " Christopher Faylor
0 siblings, 1 reply; 10+ messages in thread
From: Olivier Lefevre @ 2003-09-11 21:55 UTC (permalink / raw)
To: jason; +Cc: cygwin
OK, so I upgraded everything and now with python 2.3.2 it works. Weird.
I didn't change anything else.
However, following up on my own suggestion re. truss, I found about
strace and wanted to try it but:
bash-2.05b$ strace python
strace.exe: error creating process python, (error 2)
Is this a known issue? It's not mentioned in python-2.3.README, at any rate.
Thanks again,
-- O.L.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Antw: Re: cygwin python 2.3 oddity
2003-09-11 21:55 Olivier Lefevre
@ 2003-09-11 21:58 ` Christopher Faylor
2003-09-12 14:49 ` Jason Tishler
0 siblings, 1 reply; 10+ messages in thread
From: Christopher Faylor @ 2003-09-11 21:58 UTC (permalink / raw)
To: cygwin
On Thu, Sep 11, 2003 at 11:55:10PM +0200, Olivier Lefevre wrote:
>OK, so I upgraded everything and now with python 2.3.2 it works. Weird.
>I didn't change anything else.
>
>However, following up on my own suggestion re. truss, I found about
>strace and wanted to try it but:
>
> bash-2.05b$ strace python
> strace.exe: error creating process python, (error 2)
>
>Is this a known issue? It's not mentioned in python-2.3.README, at any rate.
python is a symlink. strace doesn't grok symlinks.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Antw: Re: cygwin python 2.3 oddity
2003-09-11 21:58 ` Antw: Re: cygwin " Christopher Faylor
@ 2003-09-12 14:49 ` Jason Tishler
0 siblings, 0 replies; 10+ messages in thread
From: Jason Tishler @ 2003-09-12 14:49 UTC (permalink / raw)
To: cygwin; +Cc: Olivier Lefevre
Olivier,
On Thu, Sep 11, 2003 at 05:58:14PM -0400, Christopher Faylor wrote:
> On Thu, Sep 11, 2003 at 11:55:10PM +0200, Olivier Lefevre wrote:
> >OK, so I upgraded everything and now with python 2.3.2 it works.
> >Weird. I didn't change anything else.
When I built Python 2.3-2, I didn't change anything either -- I just
built against Cygwin 1.5.x.
> >However, following up on my own suggestion re. truss, I found about
> >strace and wanted to try it but:
> >
> > bash-2.05b$ strace python
> > strace.exe: error creating process python, (error 2)
> >
> >Is this a known issue? It's not mentioned in python-2.3.README, at
> >any rate.
>
> python is a symlink. strace doesn't grok symlinks.
Try the following:
$ strace -o python.log python2.3.exe
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-09-12 14:49 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <sf5fac54.018@t-c-c.at>
2003-09-11 14:16 ` Antw: Re: Cygwin python 2.3 oddity Jason Tishler
2003-09-11 15:31 ` Antw: Re: cygwin " Christopher Faylor
2003-09-11 14:54 Antw: Re: Cygwin " Olivier Lefevre
2003-09-11 15:39 ` Jason Tishler
2003-09-11 15:55 Olivier Lefevre
2003-09-11 17:28 ` Cliff Hones
[not found] <sf60b722.072@t-c-c.at>
2003-09-11 18:35 ` Jason Tishler
2003-09-11 21:55 Olivier Lefevre
2003-09-11 21:58 ` Antw: Re: cygwin " Christopher Faylor
2003-09-12 14:49 ` Jason Tishler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).