Bitcoin Forum

Bitcoin => Electrum => Topic started by: Sandro kensan on January 29, 2019, 07:01:07 PM



Title: [Linux] Electrum-3.2.4 is ok but Electrum-3.3.x don't run [RESOLVED]
Post by: Sandro kensan on January 29, 2019, 07:01:07 PM
I had an old version of Electrum: Electrum-3.1.2 and I upgrade it to the last version but don't run. The last version that is ok for my linux box is: Electrum-3.2.4. This is the error:

Code:
[@localhost Electrum-3.3.0]$ python3 run_electrum                                                                  
  File "run_electrum", line 53                                                                                          
    sys.exit(f"Error: {str(e)}. Try 'sudo python3 -m pip install <module-name>'")                                        
                                                                               ^
SyntaxError: invalid syntax

I'm not a python coder but the code at line 53 is weird, is it correct or my version of python (python3) is not compatible?

The code in 3.2.4 version is this and works fine:
Code:
sys.exit("Error: %s. Try 'sudo pip install <module-name>'"%str(e))

The option "f" before strings in a function argument is not compatible with my python.

Any help o workaround?





Title: Re: [Linux] Electrum-3.2.4 is ok but Electrum-3.3.x don't run
Post by: Abdussamad on January 29, 2019, 09:23:30 PM
You need python 3.6 for 3.3.x branch. If your distro has that then install it otherwise stay with 3.2.4. Note that 3.2.x branch won't receive further updates so you will have to upgrade eventually. See if there's a newer version of your distro  or wait until the electrum appimage is released:

https://github.com/spesmilo/electrum/pull/5042/files


Title: Re: [Linux] Electrum-3.2.4 is ok but Electrum-3.3.x don't run
Post by: Sandro kensan on January 29, 2019, 09:35:00 PM
You need python 3.6 for 3.3.x branch. If your distro has that then install it otherwise stay with 3.2.4. Note that 3.2.x branch won't receive further updates so you will have to upgrade eventually. See if there's a newer version of your distro  or wait until the electrum appimage is released:

https://github.com/spesmilo/electrum/pull/5042/files

Tanks very much, your answer explain the incompatibility. My linux box is up to date and It is installed python 3.5.3. I stay with Electrum 3.2.4 until the new packet arrive in my distribution repository. I'll check the update from time to time. I suppose the next python version will be the 3.6.0.


Title: Re: [Linux] Electrum-3.2.4 is ok but Electrum-3.3.x don't run
Post by: jackg on January 30, 2019, 07:04:23 PM
There may be an issue why its not avaliable for that distro yet. @op if you upgrade you may lose a functioning version or python3 in the process, that's fine if you don't use it much though for anything other than electrum.


Title: Re: [Linux] Electrum-3.2.4 is ok but Electrum-3.3.x don't run
Post by: Sandro kensan on January 30, 2019, 07:15:20 PM
There may be an issue why its not avaliable for that distro yet. @op if you upgrade you may lose a functioning version or python3 in the process, that's fine if you don't use it much though for anything other than electrum.

Python is widespread used so I cannot upgrade the package without inconvenience.
I could compile python from source and then exec ~/phyton electrum.run but I wait.


Title: Re: [Linux] Electrum-3.2.4 is ok but Electrum-3.3.x don't run
Post by: Artemis3 on January 31, 2019, 12:07:38 PM
I had an old version of Electrum: Electrum-3.1.2 and I upgrade it to the last version but don't run. The last version that is ok for my linux box is: Electrum-3.2.4.

What is your Linux distro and version?


Title: Re: [Linux] Electrum-3.2.4 is ok but Electrum-3.3.x don't run
Post by: nc50lc on February 02, 2019, 02:32:23 AM
What is your Linux distro and version?
Please read the replies before replying, this issue was already resolved, and it's an outdated python version:
Tanks very much, your answer explain the incompatibility. My linux box is up to date and It is installed python 3.5.3. I stay with Electrum 3.2.4 until the new packet arrive in my distribution repository. I'll check the update from time to time.

Why don't users lock their own thread (https://bitcointalk.org/index.php?topic=2841800.msg29149516#msg29149516) (or/and edit the title) once it was resolved....  :-\


Title: Re: [Linux] Electrum-3.2.4 is ok but Electrum-3.3.x don't run
Post by: Sandro kensan on February 02, 2019, 10:06:20 AM
Why don't users lock their own thread (https://bitcointalk.org/index.php?topic=2841800.msg29149516#msg29149516) (or/and edit the title) once it was resolved....  :-\

Yes, sorry. I have edited the title with [RESOLVED]. I hope It is enough.
+Merit to the resolver.