Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FIXED - python fallback Hierachie ändern
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2656
Location: Heidelberg - Germany

PostPosted: Sun Jun 14, 2020 4:59 pm    Post subject: FIXED - python fallback Hierachie ändern Reply with quote

Bei mir sieht das jetzt folgendermaßen aus:

Code:

kellerkind ~ # eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python2.7
  [3]   python3.7 (fallback)


Wie kann ich jetzt python3.7 and die 2. Stelle setzen? Mit "set" setze ich ja den Defaultversion, also [1]. Aber wie tausche ich [2] und [3]?

Spielt das überhaupt eine Rolle?

Hintergrund:
Ich habe das Problem in der Arduino IDE, dass ich die Meldung

Code:

No module named 'serial'

bekomme, die Installation von dev-python/pyserial jedoch das Problem nicht löst. Von daher dachte ich, es könnte an der python Version liegen.

Grüße
Erdie
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W


Last edited by Erdie on Mon Jun 15, 2020 7:09 am; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Sun Jun 14, 2020 5:15 pm    Post subject: Reply with quote

Ich finde 3 Python Versionen viel zu viel! Am liebsten wäre es mir, wenn es auf meinen Maschinen - wie bei Perl - nur eine einzige Python-Version gäbe.

Python 2.7 wird auf einigen Maschinen leider noch benötigt. Aber zumindest Python 3.8 habe ich durch einen Eintrag in /etc/portage/package.mask deaktiviert. Mein "eselect python" sieht dann so aus:
Code:
eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python2.7

und auf einigen Maschinen auch so:
Code:
eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.7
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4693
Location: Germany

PostPosted: Sun Jun 14, 2020 6:23 pm    Post subject: Reply with quote

Hi,
mit
Code:
eselect python edit
kann man die Konfigurationsdatei mit dem default Editor öffnen -- dort ist auch ein wenig Dokumentation wie man die Konfiguration machen könnte.

Ansonsten, wild geraten, das gesuchte serial.py Modul gibt es vermutlich mit dem dev-embedded/platformio Paket.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2656
Location: Heidelberg - Germany

PostPosted: Mon Jun 15, 2020 7:02 am    Post subject: Reply with quote

Leider hat es dev-python/platformio auch nicht getan. Ich hatte es auch schon vorher mit pyserial versucht, das wird auch als Abhängigkeit für platformio installiert. Beides bringt keine Änderung :/
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2656
Location: Heidelberg - Germany

PostPosted: Mon Jun 15, 2020 7:11 am    Post subject: Reply with quote

Problem gelöst. Python 3.8 geht wohl nicht, wenn ich 3,7 als default setze, ist es OK. Die Reihenfolge läßt sich manipulieren, indem man einfach nacheinander den default auf entsprechende Werte setzt. Der Vorgänger rutscht immer nach unten. So kann man die List beliebig sortieren.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum