View Issue Details

IDProjectCategoryView StatusLast Update
0000579Other Unix PortBugpublic2020-08-24 03:12
Reporterrobhamerling Assigned Topsmedley  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformIntel I-5OSeComStationOS Version2.2-beta
Summary0000579: Python blocked
Description
When Python is called without any arguments in a (windowed) commandline session regular opening lines appear, but the keyboard is dead: nothing is echoed, nothing happens, unable to terminate other than by closing the session. This applies to 2.7.2, but as well with with 2.6.5 (as comes with eCS 2.2-beta).

[K:\]python
Python 2.7.2 (default, Jan 8 2012, 07:07:57)
[GCC 4.4.6] on os2knix
Type "help", "copyright", "credits" or "license" for more information.
>>>


Calling Python with a python program as argument works fine.


TagsNo tags attached.

Activities

robhamerling

2013-08-13 11:46

reporter   ~0002463

Forgot to mention that one of the (4) CPUs runs at 100% in this situation.

psmedley

2013-09-06 09:13

administrator   ~0002465

pls try with 2.7.3

http://smedley.id.au/tmp/python-2.7.3.zip

This has pyqt as well as I was too lazy to try strip it out (this is a zip of my installed copy of python)

robhamerling

2013-09-06 09:59

reporter   ~0002466

Thanks Paul! This 2.7.3 version does not block the keyboard.

psmedley

2013-09-06 10:01

administrator   ~0002467

great, i'll try bump python/2 to v2.75 (just noticed it's out)

psmedley

2013-09-07 10:05

administrator   ~0002468

Please also test http://smedley.id.au/tmp/python-2.7.5-os2-20130907.zip

robhamerling

2013-09-07 13:23

reporter   ~0002469

Tested and no blocking!
But there are some issues:
- I cannot close the session with Ctrl-D
- Opening a file gives an error, see e.g.:
See for all three points the console output below:


[K:\]python
Python 2.7.5 (default, Sep 7 2013, 19:17:33)
[GCC 4.7.3] on os2knix
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> help(os.path)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "k:/python27/lib/site.py", line 454, in __call__
    import pydoc
  File "k:/python27/lib/pydoc.py", line 55, in <module>
    import sys, imp, os, re, types, inspect, __builtin__, pkgutil, warnings
  File "k:/python27/lib/inspect.py", line 41, in <module>
    from operator import attrgetter
ImportError: dlopen rc=2 extra=GCC473
>>> ^D
  File "<stdin>", line 1
    
    ^
SyntaxError: invalid syntax
>>>

robhamerling

2013-09-07 13:49

reporter   ~0002470

I meant: cannot terminate the Python interpreter with Ctrl-D.
But I just found out that it can be done with Ctrl-Z.

psmedley

2013-09-07 21:24

administrator   ~0002471

the gcc473 error is due to missing gcc473.dll

I'l add it at http://smedley.id.au/gcc473.zip in a few minutes

robhamerling

2013-09-08 07:46

reporter   ~0002472

That did it! I added gcc473.dll to [bootdrive]:\ecs\dll and now both the file-I/O and the interpreter termination with Ctrl-D work now as before!
BTW I see that there are copies of gcc dlls in usr\lib. Should I copy this new dll to \usr\dll as well? Both dirs are in libpath, so that seems overkill to me.

psmedley

2013-09-23 10:36

administrator   ~0002527

yes it's overkill. One libpath copy is enough :)

psmedley

2013-09-23 10:37

administrator   ~0002528

Fixed in v2.7.5

Issue History

Date Modified Username Field Change
2013-08-11 12:34 robhamerling New Issue
2013-08-13 11:46 robhamerling Note Added: 0002463
2013-09-06 09:13 psmedley Note Added: 0002465
2013-09-06 09:59 robhamerling Note Added: 0002466
2013-09-06 10:01 psmedley Note Added: 0002467
2013-09-07 10:05 psmedley Note Added: 0002468
2013-09-07 13:23 robhamerling Note Added: 0002469
2013-09-07 13:49 robhamerling Note Added: 0002470
2013-09-07 21:24 psmedley Note Added: 0002471
2013-09-08 07:46 robhamerling Note Added: 0002472
2013-09-23 10:36 psmedley Note Added: 0002527
2013-09-23 10:37 psmedley Note Added: 0002528
2013-09-23 10:37 psmedley Status new => resolved
2013-09-23 10:37 psmedley Resolution open => fixed
2013-09-23 10:37 psmedley Assigned To => psmedley
2020-08-24 03:12 psmedley Status resolved => closed