Bitcoin Forum

Bitcoin => Electrum => Topic started by: sedxc on March 10, 2019, 07:05:10 AM



Title: SyntaxError when running Electrum-3.3.4
Post by: sedxc on March 10, 2019, 07:05:10 AM
According to https://electrum.org/#download ->Run without installing, I unpacked Electrum-3.3.4.tar.gz and ran electrum :
Code:
$ tar -xvf Electrum-3.3.4.tar.gz
$ python3 Electrum-3.3.4/run_electrum
  File "Electrum-3.3.4/run_electrum", line 53
    sys.exit(f"Error: {str(e)}. Try 'sudo python3 -m pip install <module-name>'")
                                                                                                                              ^
SyntaxError: invalid syntax
but the script seems to be buggy.

Any solution to fix it ?

Thanks.


Title: Re: SyntaxError when running Electrum-3.3.4
Post by: HCP on March 10, 2019, 07:32:06 AM
which version of python do you have installed?

I vaguely recall seeing a post very similar to this... and from memory, it was because the user was using an older version of Python 3... but latest versions of Electrum need Python 3.6. I will see if I can find the reference.

EDIT: Found it! From the Electrum Release notes: https://github.com/spesmilo/electrum/blob/master/RELEASE-NOTES#L47
* The minimum python version was increased to 3.6

The previous topic was this one: https://bitcointalk.org/index.php?topic=5088612.0


Title: Re: SyntaxError when running Electrum-3.3.4
Post by: Abdussamad on March 10, 2019, 06:35:50 PM
Use the appimage version instead. See the instructions for linux here (https://bitcoinelectrum.com/how-to-verify-your-electrum-download/).