-
-
Notifications
You must be signed in to change notification settings - Fork 29.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDLE does not run with Py30b3 #47878
Comments
When I try to run IDLE in Py30b3 I get a traceback, then the main window $ ~/opt/python30b3/bin/idle
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/mark/opt/python30b3/lib/python3.0/idlelib/run.py", line
76, in main
sockthread.set_daemon(True)
AttributeError: 'Thread' object has no attribute 'set_daemon' It looks like there's been some mixup with threading... in an earlier $ ~/opt/python30b3/bin/idle # using setDaemon
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/mark/opt/python30b3/lib/python3.0/idlelib/run.py", line
76, in main
sockthread.setDaemon(True)
File "/home/mark/opt/python30b3/lib/python3.0/threading.py", line 674,
in setDaemon
"Thread.daemon property", DeprecationWarning)
File "/home/mark/opt/python30b3/lib/python3.0/warnings.py", line 18,
in showwarning
file.write(formatwarning(message, category, filename, lineno, line))
TypeError: idle_formatwarning_subproc() takes exactly 4 positional
arguments (5 given) I did run make test and got 300 tests OK with 22 skipped all expected on |
Just realised how to fix this. Change line 76 in idlelib/run.py: # change this:
sockthread.set_daemon(True)
# to this:
sockthread.daemon = True and IDLE runs fine. |
This should be changed in 2.6 as well (from sockthread.setDaemon(True) to By the way, I notice that there are also used of setDaemon, isDaemon, |
Fixed in r66518. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: