Skip to content
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

klibs-script.py problem #5

Open
abidi-wq opened this issue Oct 27, 2022 · 2 comments
Open

klibs-script.py problem #5

abidi-wq opened this issue Oct 27, 2022 · 2 comments

Comments

@abidi-wq
Copy link

Hello,

I didn't manage to run the taskswitching program. All requirments were succesfully installed (I use windows 10). When I run Klibs run, I receive the following error :

C:\Users\utilisateur_invité\AppData\Local\Programs\Python\Python37\TaskSwitching>klibs run
File "C:\Users\utilisateur_invité\AppData\Local\Programs\Python\Python37\Scripts\klibs-script.py", line 1
SyntaxError: Non-UTF-8 code starting with '\xe9' in file C:\Users\utilisateur_invité\AppData\Local\Programs\Python\Python37\Scripts\klibs-script.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

And when I open the klibs-script.py file, the following message appears :
the file's encoding is invalid for python 3.x.
IDLE will convert it to UTF-8.
what is the current encoding of the file?

Best regards,
Malek

@a-hurst
Copy link
Member

a-hurst commented Oct 28, 2022

Hi Malek, can I ask how you installed klibs? I've installed it on dozens of Windows computers (and Macs) and have never seen this error before. I downloaded and ran the TaskSwitching task on a spare Windows computer and it ran right out of the box. There no such file as 'klibs-script.py' in a normal install so I think something's gone wrong on your end.

For working with Python on Windows, I highly recommend using pyenv-win since it lets you install and use multiple versions without conflicts, and also seems to avoid a lot of other weirdness with Python on Windows. It could also be a bizarre issue with international versions of Windows (I see the French username), but that seems unlikely to me.

@abidi-wq
Copy link
Author

Hi Hurst,
Many thanks for your response. The problem is with the username (invité).
I created a new session on the computer using simple lettre (without é) and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants