Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4234581
By: gecko79

Hi!
tried to execute this simple python code within eclipse-pydev:

import os

if __name__ == "__main__":
    print "Just a test"
    stream=os.popen('ls')
    list = stream.readlines()
    print list
-----------------------------------------------------------
output @stderr received:

sh: mc: line 1: syntax error: unexpected end of file
sh: error importing function definition for `mc'

-----------------------------------------------------------
and stdout:

Just a test
['fileSystemChecks.py\n', 'fileSystemChecks.pyc\n', '__init__.py\n',
'__init__.pyc\n', 'processChecks.py\n', 'python.log\n', 'regexpChecks.py\n',
'spikeTests.py\n']

(OK!)
-----------------------------------------------------------
Works fine from the shell with "python test.py"!

any idea how to solve this?

thanks in advance,
 georg

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to