Reputation: 23
I am trying to execute pvpython (from ParaView) in Linux. The problem is that when I try to execute pvpython by typing
python2 -i $HOME/Downloads/ParaView-5.10/bin/pvpython
I get an error:
SyntaxError: Non-ASCII character '\x84' in file pvpython on line 2,but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details.
If I go on the site for details it says that I should change the source code so that python would be able to read non-ASCII characters. What should I do? By tiping file pvpython
i get :
pvpython: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=681d55b0ca9429ce73a34b642ee7500fc91b52c2, not stripped
Also,the output of locale
gives me LANG:en_IE.UTF-8
and LC_ALL=
Is the source file that I have to modify bash.rc
? And what should I change?
Upvotes: 0
Views: 177
Reputation: 69218
pvpython
is the interpreter, and as you already verified it's a
ELF 64-bit LSB executable,...
then what you have to run to execute your script is
$HOME/Downloads/ParaView-5.10/bin/pvpython my-script.py
Upvotes: 1