Slater Victoroff
Slater Victoroff

Reputation: 21914

Python code runs fine from command line, but won't work from IDLE

I've found a lot of people having the reverse issue, but haven't yet found a question that involves IDLE not being able to run something that runs fine from the command line. I'm using a new module that I haven't used before that uses one .pyd file and one .dll, and involves a device that connects through USB. I sadly can't post in-depth code snippets since this is copyrighted code, but if anyone knows where to start on a problem like this I would be very grateful.

Upvotes: 0

Views: 215

Answers (1)

Charles Beattie
Charles Beattie

Reputation: 5949

IDLE swaps out the sys.stdout and sys.stderr objects at the Python level this causes issues with some pyd modules. Try using another debugger.

Upvotes: 1

Related Questions