Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

uPyCraft IDE on a debian based system: pyenv-issues

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
User avatar
say_hello
Posts: 36
Joined: 2019-10-13 09:58

uPyCraft IDE on a debian based system: pyenv-issues

#1 Post by say_hello »

Dear community,


i want to install this ide on MX - Linux. 

and then it goes like so: again - I run MX-Linux and since this is a Debian-based system i think this is the place to ask here
But as i want to install uPyCraft on the Mx-System i guess that i can use the above mentioned commands too.


see the tutorial here: https://randomnerdtutorials.com/install ... tructions/


Since Debian relies on Debian and MX does too. This is all the reason for this above mentioned thread!

i sometimes make sure myself in something while writing things down. And in this case i just wanted to ask you - if you can confirm the idea - that Since mx linux relies on Debian and MX does too - i would have no issues to install the above mentioned ide on the MX18.03
update : if i do so i stuck here:

see the following

Code: Select all

insgesamt 26620
-rw-r--r-- 1 martin martin 27256160 Sep 26 19:16 uPyCraft_linux_V1.0
martin@MartinsMX-Rechner:~/Downloads
$ ls -l
insgesamt 26620
-rw-r--r-- 1 martin martin 27256160 Sep 26 19:16 uPyCraft_linux_V1.0
martin@MartinsMX-Rechner:~/Downloads
$ ^C
martin@MartinsMX-Rechner:~/Downloads
$ chmod +x uPyCraft_linux_V1.X
chmod: Zugriff auf 'uPyCraft_linux_V1.X' nicht möglich: Datei oder Verzeichnis nicht gefunden
martin@MartinsMX-Rechner:~/Downloads
$ chmod +x uPyCraft_linux_V1.X
chmod: Zugriff auf 'uPyCraft_linux_V1.X' nicht möglich: Datei oder Verzeichnis nicht gefunden
martin@MartinsMX-Rechner:~/Downloads
$ chmod +x uPyCraft_linux_V1.0
martin@MartinsMX-Rechner:~/Downloads
$ chmod +x uPyCraft_linux_V1.0
martin@MartinsMX-Rechner:~/Downloads
$ ./uPyCraft_linux_V1.X
bash: ./uPyCraft_linux_V1.X: Datei oder Verzeichnis nicht gefunden
martin@MartinsMX-Rechner:~/Downloads
$ ls -l
insgesamt 26620
-rwxr-xr-x 1 martin martin 27256160 Sep 26 19:16 uPyCraft_linux_V1.0
martin@MartinsMX-Rechner:~/Downloads
$  
Click and drag to move




the uPyCraft IDE see the tutorial. https://randomnerdtutorials.com/install ... tructions/
and see this https://randomnerdtutorials.com/uPyCraftLinux.


Code: Select all

$ cd Downloads
$ ls -l
 

uPyCraft_linux_V1.X



and see this

Code: Select all


$ chmod +x uPyCraft_linux_V1.X


see the piece of code:

Code: Select all


$ ./uPyCraft_linux_V1.X
finally i got this here

Code: Select all


root@MartinsMX-Rechner:/home/martin# su
root@MartinsMX-Rechner:/home/martin# apt-get install python3-venv
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
The following additional packages will be installed:
  python3.5-venv
Die folgenden NEUEN Pakete werden installiert:
  python3-venv python3.5-venv
0 aktualisiert, 2 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen [ration werden 39,9 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://ftp.de.debian.org/debian stretch/main amd64 python3.5-venv amd64 3.5.3-1+deb9u1 [5.954 B]
Holen:2 http://ftp.de.debian.org/debian stretch/main amd64 python3-venv amd64 3.5.3-1 [1.066 B]
Es wurden 7.020 B in 0 s geholt (40,6 kB/s).
Vormals nicht ausgewähltes Paket python3.5-venv wird gewählt.
(Lese Datenbank ... 256952 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../python3.5-venv_3.5.3-1+deb9u1_amd64.deb ...
Entpacken von python3.5-venv (3.5.3-1+deb9u1) ...
Vormals nicht ausgewähltes Paket python3-venv wird gewählt.
Vorbereitung zum Entpacken von .../python3-venv_3.5.3-1_amd64.deb ...
Entpacken von python3-venv (3.5.3-1) ...
python3.5-venv (3.5.3-1+deb9u1) wird eingerichtet ...
Trigger für man-db (2.7.6.1-2) werden verarbeitet ...
python3-venv (3.5.3-1) wird eingerichtet ...
root@MartinsMX-Rechner:/home/martin

well something goes wrong here. i have to find out what goes on here.
note: the system gives back the the data were not found..


while trying to set up the environment i get an errormessage

Code: Select all

root@MartinsMX-Rechner:/home/martin# python3 -m venv myVirtEnv
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

apt-get install python3-venv

You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: [‘/home/martin/myVirtEnv/bin/python3’, ‘-Im’, ‘ensurepip’, ‘–upgrade’, ‘–default-pip’]
root@MartinsMX-Rechner:/home/martin#

Code: Select all


root@MartinsMX-Rechner:/home/martin# su
root@MartinsMX-Rechner:/home/martin# apt-get install python3-venv
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
The following additional packages will be installed:
  python3.5-venv
Die folgenden NEUEN Pakete werden installiert:
  python3-venv python3.5-venv
0 aktualisiert, 2 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen [ration werden 39,9 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://ftp.de.debian.org/debian stretch/main amd64 python3.5-venv amd64 3.5.3-1+deb9u1 [5.954 B]
Holen:2 http://ftp.de.debian.org/debian stretch/main amd64 python3-venv amd64 3.5.3-1 [1.066 B]
Es wurden 7.020 B in 0 s geholt (40,6 kB/s).
Vormals nicht ausgewähltes Paket python3.5-venv wird gewählt.
(Lese Datenbank ... 256952 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../python3.5-venv_3.5.3-1+deb9u1_amd64.deb ...
Entpacken von python3.5-venv (3.5.3-1+deb9u1) ...
Vormals nicht ausgewähltes Paket python3-venv wird gewählt.
Vorbereitung zum Entpacken von .../python3-venv_3.5.3-1_amd64.deb ...
Entpacken von python3-venv (3.5.3-1) ...
python3.5-venv (3.5.3-1+deb9u1) wird eingerichtet ...
Trigger für man-db (2.7.6.1-2) werden verarbeitet ...
python3-venv (3.5.3-1) wird eingerichtet ...
root@MartinsMX-Rechner:/home/martin

So i guess that now i ve installed the package that was missing, so now i have to go back
to the previous step that was failing and asking me to install it, and try that step again

any further idea ?

User avatar
say_hello
Posts: 36
Joined: 2019-10-13 09:58

Re: uPyCraft IDE on a debian based system: pyenv-issues

#2 Post by say_hello »

hello dear experts

i cannot see any port

cf the image
Image

millpond
Posts: 698
Joined: 2014-06-25 04:56

Re: uPyCraft IDE on a debian based system: pyenv-issues

#3 Post by millpond »

I dont think many folk here work with arduino type widgets, plus please translate screen messages from German.

The good news is that I believe the creator of MX is still about this forum.
The bad news is that MX is very much a *divergent* fork from Debian, with, if memory serves me right, a large amount of backports as well as no Systemd.
Though this should not matter to Python, it might matter to the software being used.

Pyenv can be a bit complex to set up and use. Basically a sandboxed python which you should be able to avoid when using a serial/USB port.
I am assuming it is being suggested because the software being used is probably written in Python 2.7, and most releaseses these days are Python 3.x

However, Debian releases typically contain BOTH 2.7 and 3.x (3.7 latest from Debian) so you might be able to get by with making sure the script headers include:
#!/usr/bin/python2 (should be a symlink).

lelabell
Posts: 1
Joined: 2019-10-29 06:02

Re: uPyCraft IDE on a debian based system: pyenv-issues

#4 Post by lelabell »

millpond wrote:I dont think many folk here work with arduino type widgets, plus please translate screen messages from German.

The good news is that I believe the creator of MX is still about this forum.
The bad news is that MX is very much a *divergent* fork from Debian, with, if memory serves me right, a large amount of backports as well as no Systemd.
Though this should not matter to Python, it might matter to the software being used. happy wheels

Pyenv can be a bit complex to set up and use. Basically a sandboxed python which you should be able to avoid when using a serial/USB port.
I am assuming it is being suggested because the software being used is probably written in Python 2.7, and most releaseses these days are Python 3.x

However, Debian releases typically contain BOTH 2.7 and 3.x (3.7 latest from Debian) so you might be able to get by with making sure the script headers include:
#!/usr/bin/python2 (should be a symlink).
That's good to know! Thank you!

Post Reply