-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Problems with Python word_count_test #3385
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
Comments
The file itself seems to be OK. You can see it at https://github.com/exercism/xpython/blob/master/exercises/word-count/word_count_test.py
|
Hi Norbert,
3KB file size.
I can open it for editing in every editor I've tried (over 10 different editors) except for IDLE.
Also, when I try to open it from an already running instance of IDLE not only does it fail and give me an "untitled" document, I am also unable to close down that instance of IDLE unless I use Windows task manager. And I noticed it was using up considerably more system resources than other Python instances.
I am able to run the file through Windows PowerShell and cmd.exe.
Thank you.
…-------- Original message --------
From: Norbert Melzer <[email protected]>
Date: 21/02/2017 5:33 PM (GMT+10:00)
To: "exercism/exercism.io" <[email protected]>
Cc: Miles Williams <[email protected]>, Author <[email protected]>
Subject: Re: [exercism/exercism.io] Problems with Python word_count_test (#3385)
The file itself seems to be OK. You can see it at https://github.com/exercism/xpython/blob/master/exercises/word-count/word_count_test.py
* What size does your filemanager show?
* Can you read it using notepad.exe?
* Are you able to run it without IDLE from the cmd-prompt? python word_count_test.py, make sure python.exe is in your PATH though.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3385 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AYkDAW_8-rJIN4EegxARNkIB3UbjXIiOks5reoUYgaJpZM4MGzmb>.
|
So it seems that the file is OK but IDLE is broken. I will try to install python as well as IDLE once I have hands back on a computer (~3 hours from now) and do some experiments. In the meantime, you can try to re-install/update IDLE. Oh, and please check if you have the same problem when
|
I had tried re-installed Python already, unsuccessfully, sadly.
IDLE worked fine with all the previous exercises, and I've not had a single issue with IDLE in the last few years at all other than this one file.
I'm very confused.
Tomorrow I'm going to roll back to an older version of Python and see if it works. I'll keep you posted, unless you find the problem in the mean time.
Thank you.
…-------- Original message --------
From: Norbert Melzer <[email protected]>
Date: 22/02/2017 5:48 PM (GMT+10:00)
To: "exercism/exercism.io" <[email protected]>
Cc: Miles Williams <[email protected]>, Author <[email protected]>
Subject: Re: [exercism/exercism.io] Problems with Python word_count_test (#3385)
So it seems that the file is OK but IDLE is broken. I will try to install python as well as IDLE once I have hands back on a computer (~3 hours from now) and do some experiments.
In the meantime, you can try to re-install/update IDLE.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3385 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AYkDAb7tG4oysXiLTiHhE3-0FKPfORBWks5re9o7gaJpZM4MGzmb>.
|
OK, I tried it locally and observe the same behaviour as you. So I tried to start IDLE from cmd and got a python stack in my face:
So in fact, it is a mix of the files fault as well as IDLEs fault. IDLE 2.7 does work well though... Please report a bug at IDLEs tracker. The faulty line seems to be this one: I would be happy if @exercism/python would look into this as well, therefore I'll move the thread into the python repository. |
Issue moved to exercism/xpython #416 via ZenHub |
Hmpf, I'm not allowed to close here, please go to exercism/python#416 and continue discussion over there. Also please can someone with appropriate rights close this? |
Okay.
Thank you.
I had a feeling it was something with the unicode in it.
Cheers.
|
Fetched the word-count exercise for Python and the test file won't open in IDLE.
I'm on a Win7 32bit machine and running Python 3.6. I've had no issues with the previous 6 exercises.
When I try to open it by right-clicking and selecting "Edit in IDLE" it just fails to open. It's not that IDLE can't open the file, IDLE just doesn't open at all.
If I try opening it from within an already running instance of IDLE it opens a new "untitled" file.
I am not having any issues with any of my other Python files, just this one.
I have deleted the word-count directory and its contents and re-fetched the exercise but still the same issue.
The text was updated successfully, but these errors were encountered: