Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Python hanging when called from a file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
AKF_SDS
n00b
n00b


Joined: 03 Apr 2013
Posts: 22

PostPosted: Wed May 08, 2013 8:58 pm    Post subject: Python hanging when called from a file Reply with quote

Python is hanging when invoked from a file.
Code:
[computer src] truss ./test.py
tracing pid 7791
 


No progress is made after this point and the bash prompt is not returned.

./test.py is:
Code:
#!/usr/bin/env python
s = 'test'
print s


When these are run explicitly from the command prompt there is no problem:
Code:
[computer src] /usr/bin/env python
Python 2.7.2 (default, Aug 30 2011, 13:08:05)
[GCC 4.2.4 (Gentoo 4.2.4-r01.3 p1.1)] on interix3
Type "help", "copyright", "credits" or "license" for more information.
>>> s = 'test'
s = 'test'
>>> print s
print s
test
>>> 


Has anyone encountered this before? What could cause this behavior?
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Thu May 09, 2013 8:14 pm    Post subject: Reply with quote

Can you run the whole thing under strace -f? Maybe it would give some useful messages that could hint why it's hanging up.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum