Forums

cls not found

In my snapshot.py I import os and try command os.system('cls') but in bush I have a message sh: 1: cls: not found

I'm guessing that you're used to Windows systems, where cls is a command to clear the screen. PythonAnywhere runs on Linux, so you need to use clear instead.

Yes it's help.

Last question, I use polsih letters and I have bug with this, where I can set Charset on UTF-8

We already use UTF-8. Unfortunately, different browsers with different keyboards send characters differently and we're still trying to work out how to get the consoles working with all combinations.

sow on this moment I can't use polish word characters?

Yes, unfortunately. You should be able to paste Polish characters into a console, though.

In my example it is not work, look on two printscreen, in first i below polish letters in next I have a error

https://www.dropbox.com/s/j1lvtaju396bwls/polskie%20litery.png?dl=0

https://www.dropbox.com/s/dx600pqh9t7v7sa/polskie%20litery%202.png?dl=0

sory this lin is not active, error is like below

17:22 ~/python_cwiczenia $ python snapshot.py File "snapshot.py", line 7 SyntaxError: Non-ASCII character '\xc4' in file snapshot.py on line 8, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details 17:22 ~/python_cwiczenia $

What encoding is the file in? Have you declared the encoding correctly?

I don't put

-- coding: utf-8 --

i first line, now it's work.

Thanks for help :)

Excellent, thanks for confirming!