This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author DoctorEvil
Recipients DoctorEvil
Date 2017-12-13.22:11:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513203071.76.0.213398074469.issue32315@psf.upfronthosting.co.za>
In-reply-to
Content
When I try to run a really simple script like:
def fun(a):
    print a
    return

I get this error:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1541, in __call__
    return self.func(*args)
  File "C:\Python27\lib\idlelib\MultiCall.py", line 166, in handler
    r = l[i](event)
  File "C:\Python27\lib\idlelib\ScriptBinding.py", line 149, in run_module_event

    if PyShell.use_subprocess:
AttributeError: 'module' object has no attribute 'use_subprocess'

It basically means Python is only usable by copy-pasting code into Shell, any kind of script fails with that error.
History
Date User Action Args
2017-12-13 22:11:11DoctorEvilsetrecipients: + DoctorEvil
2017-12-13 22:11:11DoctorEvilsetmessageid: <1513203071.76.0.213398074469.issue32315@psf.upfronthosting.co.za>
2017-12-13 22:11:11DoctorEvillinkissue32315 messages
2017-12-13 22:11:11DoctorEvilcreate