• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

Sign in to follow this  

i want to install this ide on MX :: the uPyCraft IDE

Recommended Posts

tarifa    0

Dear community,


i want to install this ide on MX - Linux. 


the uPyCraft IDE .. guess i can use this tutorial:

LINK. https://randomnerdtutorials.com/install-upycraft-ide-linux-ubuntu-instructions/

Downloading uPyCraft IDE for Linux Ubuntu 16.04


Click here to download uPyCraft IDE for Linux Ubuntu 16.04 or go to this

link https://randomnerdtutorials.com/uPyCraftLinux.


Open your Terminal window, navigate to your Downloads folder and list all the files:

$ cd Downloads
$ ls -l
  uPyCraft_linux_V1.X


You should have a similar file (uPyCraft_linux_V1.X) in your Downloads folder. You need to make that file executable with the following command:

$ chmod +x uPyCraft_linux_V1.X


Then, to open/run the uPyCraft IDE software, type the next command:

see the piece of code: 

$ ./uPyCraft_linux_V1.X

love to hear  from you

Share this post


Link to post
Share on other sites
Mindovermaster    2,365

Are you asking us something? I'm confused...

  • Haha 1

Share this post


Link to post
Share on other sites
tarifa    0

hello dear MindoverMaster, 

 

many thanks for the quick reply. Great to hear from you. 

 

I do not have Ubuntu here - but i have a MX-Linux here.  But as i want to install uPyCraft on the Mx-System i guess that i can use the above mentioned commands too. Since Ubuntu 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 Ubuntu 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: 

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
$ 

 

something goes wrong here.  i have to find out what goes on here. 

 

note: the system gives back the the data were not found.. 

 

any idea ?

 

look forward to hear from you 

 

regards tarifa ;)

 

 

 

Edited by tarifa

Share this post


Link to post
Share on other sites
Mindovermaster    2,365

MX is based off Debian, as is Ubuntu. So, MX has the same software as Ubuntu.

 

As for the code, I have no idea. As I do not speak or read German...

Share this post


Link to post
Share on other sites
tarifa    0
3 hours ago, Mindovermaster said:

MX is based off Debian, as is Ubuntu. So, MX has the same software as Ubuntu.

 

As for the code, I have no idea. As I do not speak or read German...

Hello dear Mindovermaster 

 

many thanks for the quick reply - great to hear from you. 

 

I am glad - as for the errors. -i try to digg into all that and will try to find out what happened. 

 

I will come back later the weekend and will report all the findings,.

 

best regards 

tarifa ;)

Share this post


Link to post
Share on other sites
tarifa    0

hi there finally installed the ide and now it is running 

 

downloaded the firmware for micropython from the micropython site. 

 

tried to flash it - bit this is not possible.  see the images that i have attached...

 

well  -  run on MX-Linux - but at the moment i have not glue what is going on here... 

 

love to hear from you 

micro_python_2.png

micro_python_.png

Share this post


Link to post
Share on other sites
tarifa    0

well probably i ve forgotten to do some environment-settings.

cf: https://randomnerdtutorials.com/install-upycraft-ide-linux-ubuntu-instructions/#comment-396915
 


    create a virtual env:
    1. CD to the location where you want to create your virtual environment
    [RUN]: python3 -m venv myVirtEnv

    2. To activate the environment

    [RUN]: source myVirtEnv/bin/activate

    2.a If you don’t create a virtual environment, the uPyCraft v1.0 will break a libz package that is old. Seems there is more risk in breaking your OS by downgrading that package.

    3. Follow the steps here:
    github.com/jiapei100/uPyCraft_PyQt5
    

i gonna give it a try  https://randomnerdtutorials.com/install-upycraft-ide-linux-ubuntu-instructions/#comment-396915


i come back and report all the findings.

Share this post


Link to post
Share on other sites
tarifa    0


update: if i go and do that  i get an errormessage 


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#

 

guess that there are some errors in the code and steps i do ..?

Share this post


Link to post
Share on other sites
DaveLegg    1,006

If you read the error message:

34 minutes ago, tarifa said:

you need to install the python3-venv package using the following command.

It tells you what the problem is, and how to fix it

Share this post


Link to post
Share on other sites
tarifa    0
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

 

hello dear David - many many thanks for the reply. I am very glad that you have mailed and replied. That is just great.  Well see the above mentioned hints. 

currently i try to figure out what goes on here on 

Share this post


Link to post
Share on other sites
DaveLegg    1,006

So you've now installed the package that was missing, so go back to the previous step that was failing and asking you to install it, and try that step again

Share this post


Link to post
Share on other sites
tarifa    0

hello dear Dave

 

finally got there :

 

 

i followed the instructions:

https://randomnerdtutorials.com/install-upycraft-ide-linux-ubuntu-instructions/

 

 

Once i have activated the virtual environment,  i  should be able to list out packages using pip list and verify version using python --version.

 

that said - i continued: 

 

python3 -m venv myVirtEnv

root@MartinsMX-Rechner:/home/martin# python3 -m venv myVirtEnv

root@MartinsMX-Rechner:/home/martin# source myVirtEnv/bin/activate

(myVirtEnv) root@MartinsMX-Rechner:/home/martin# python --version

Python 3.5.3

(myVirtEnv) root@MartinsMX-Rechner:/home/martin# pip list

DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.

pip (9.0.1)

pkg-resources (0.0.0)

setuptools (33.1.1)

(myVirtEnv) root@MartinsMX-Rechner:/home/martin#

 

well i guess that i now can proceed with the futher steps

 

 

Share this post


Link to post
Share on other sites
tarifa    0
(myVirtEnv) root@MartinsMX-Rechner:/home/martin# python --version
Python 3.5.3
(myVirtEnv) root@MartinsMX-Rechner:/home/martin# pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
pip (9.0.1)
pkg-resources (0.0.0)
setuptools (33.1.1)
(myVirtEnv) root@MartinsMX-Rechner:/home/martin# ./uPyCraft_linux_V1.0
bash: ./uPyCraft_linux_V1.0: Datei oder Verzeichnis nicht gefunden
(myVirtEnv) root@MartinsMX-Rechner:/home/martin# ls -l
insgesamt 48
-rw-r--r-- 1 martin martin    0 Okt 14 10:09 2019_10_14___10__uhr+#
drwxr-xr-x 3 martin martin 4096 Sep 30 11:05 AppData
drwxr-xr-x 2 martin martin 4096 Sep 30 11:10 Bilder
drwxr-xr-x 2 martin martin 4096 Okt  7 14:08 cp210x
drwxr-xr-x 2 martin martin 4096 Sep 24 20:49 Desktop
drwxr-xr-x 2 martin martin 4096 Sep 24 21:28 Dokumente
drwxr-xr-x 3 martin martin 4096 Okt  7 14:26 Downloads
drwxr-xr-x 2 martin martin 4096 Sep 24 21:28 Musik
drwxr-xr-x 6 martin martin 4096 Okt 14 10:19 myVirtEnv
drwxr-xr-x 2 martin martin 4096 Sep 24 21:28 Öffentlich
drwxr-xr-x 3 martin martin 4096 Sep 30 09:17 PycharmProjects
drwxr-xr-x 2 martin martin 4096 Sep 24 21:28 Videos
drwxr-xr-x 2 martin martin 4096 Sep 24 21:28 Vorlagen
(myVirtEnv) root@MartinsMX-Rechner:/home/martin#

 

Share this post


Link to post
Share on other sites
tarifa    0

well if i start the upycraft - then i see the following

 

image.thumb.png.1fe7cecdedc6c1dd100717392882f723.pngimage.thumb.png.9244294154acec2654de0552b0980357.png

Share this post


Link to post
Share on other sites
tarifa    0

 

hi there, 

 

it is just funny i -  could not open serial port - btw. i do not see a com port either

 

 

image.thumb.png.ed6855d3b30fa2ca88128e1377237af3.pngimage.thumb.png.f7652f00317adb6fb93bbebd765e022b.pngimage.thumb.png.ed6855d3b30fa2ca88128e1377237af3.png

 

 

how can i test the full setup!?

are here any further tests - eg. on terminal !? 

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.