uPyCraft - Issues on Windows 10

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
GryKyo
Posts: 10
Joined: Sat Dec 15, 2018 12:43 am

uPyCraft - Issues on Windows 10

Post by GryKyo » Thu Jan 10, 2019 12:06 am

Seeking any good/bad experiences from people who have tried to run uPyCraft on Windows 10 64 bit and failed, had error messages etc?

I have been using uPyCraft on a windows 8 laptop and it is great, robust and very easy to edit code on the fly, I like it. I have so far failed to get it to start on my Windows 10 laptop. I have put a few days into this so far and have raised an issue on the uPyCraft GitHub in the hope somebody has solved this!
Initially I had a Windows error message "The application was unable to start correctly (0xc000007b). Click OK to close the application." which seemed to point towards wrong or missing dependencies or .dll files in Windows.

Suggestions are like:
1. Replace these files. mfc100.dll, mfc100u.dll, msvcr100.dll, msvcp100.dll and msvcr100_clr0400.dll

They can be found at w w w.microsoft.com/en-us/download/details.aspx?id=5555

Please save these files to any location on your PC;

2. Please reboot your computer in Safe Mode
[How to restart in SAFE MODE]
- Restart the computer;
- Press the "F8" key (several times before Microsoft Windows begins to load; you need to press "F8" until you will be displayed a text menu;
- Select "SAFE MODE";
Note: for Windows 8, you can hold the Shift key while going to Power Off and clicking on Restart option
3. Access C:\Windows\System32;
4. Locate the 5 files you have downloaded and extracted;
5. Next, copy all those files to C:\Windows\System32 replacing the current ones;
6. Reboot in normal mode
This is a brand new PC which I don't wish to upset by changing dll's etc.

Any experiences to share?

TIA, G

stijn
Posts: 362
Joined: Thu Apr 24, 2014 9:13 am

Re: uPyCraft - Issues on Windows 10

Post by stijn » Thu Jan 10, 2019 10:03 am

Replace these files.
Yeah, don't do that unless you want more problems in the future.
What you should do is first figure out the actual problem: download dependencywalker from http://dependencywalker.com/ and figure out which are the missing dependencies, then install them (in case of missing Visual Studio runtime, download and install the appropriate vcredist.exe).

Anyway I cannot reproduce this. I downloaded upycraft_v1.1.exe, installed SourceCodePro font as asked, and it just runs without errors.

Peter
Posts: 2
Joined: Tue Dec 04, 2018 7:33 pm

Re: uPyCraft - Issues on Windows 10

Post by Peter » Wed Jan 16, 2019 5:57 pm

I use it on Win10 and 8.1 and it seems to work as advertised in both cases. It's a little weird on how it handles stored files in the workspace but apart from that, it seems to be a competent little IDE. You might try turning off your security shields .. maybe that is the problem. Also make sure you have valid firmware. I found that you need to download your own firmware for the ESP board and use that in preference to the one that uPyCraft finds.
P

GryKyo
Posts: 10
Joined: Sat Dec 15, 2018 12:43 am

Re: uPyCraft - Issues on Windows 10

Post by GryKyo » Wed Jan 16, 2019 9:53 pm

I have not been able to fix this and I am not alone. I have come across somebody else having similar problems which are all related to run time environment, dependencies and processor architecture. Being a new PC I don't want to do anything crazy. The uPyCraft application won't even start on the Win10 pc. I use it on my Windows 8 pc and it is very easy, intuitive and so convenient to build and debug code.

I don't have the time to deep dive into this nor the inclination to hack at a new windows installation to make this application work. Looks like development will stay on the old machine!

Thanks for the help!

G

FeK9
Posts: 1
Joined: Sun Jan 20, 2019 8:19 am

Re: uPyCraft - Issues on Windows 10

Post by FeK9 » Sun Jan 20, 2019 4:35 pm

Hi

I used this Tutorial to get uPyCraft installed on a Win10 Dell laptop, did you also install Python 3.7.X ?

Regards
John

https://randomnerdtutorials.com/install ... tructions/

olzeke51
Posts: 1
Joined: Sun Apr 07, 2019 1:56 am

Re: uPyCraft - Issues on Windows 10

Post by olzeke51 » Sun Apr 07, 2019 2:06 am

uPyCraft v1.0 reported a missing msvcr100.dll. (windows 10 - 64bit)
I downloaded several of the Microsoft files but this is the one that solved the issue:
Microsoft Visual C++ 2010 Redistributable Package (x86)
https://www.microsoft.com/en-us/downloa ... px?id=5555
HTH some others

User avatar
apollodriver
Posts: 29
Joined: Tue Jan 29, 2019 8:54 am

Re: uPyCraft - Issues on Windows 10

Post by apollodriver » Mon Oct 14, 2019 3:28 pm

hello dear experts

i ve installed it on Win seven - and get back this

Code: Select all


not open port 'None': FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden.', None, 2)
current version only open py txt json ini file.
could not open port 'None': FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden.', None, 2)
serial not open
could not open port 'COM3': OSError(22, 'Falscher Parameter.', None, 87)
serial not open
could not open port 'None': FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden.', None, 2)
and besides this - i installed it on MX-Linux

i want to install this ide on MX - Linux.

the uPyCraft IDE .. guess i can use this tutorial:
LINK. https://randomnerdtutorials.com/install ... tructions/




link https://randomnerdtutorials.com/uPyCraftLinux.

Code: Select all

$ cd Downloads
$ ls -l
  uPyCraft_linux_V1.X
and this

Code: Select all

$ chmod +x uPyCraft_linux_V1.X



see the piece of code:

Code: Select all

$ ./uPyCraft_linux_V1.X



and then it goes like so:

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



Code: Select all

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
$ 







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..


any idea ?



update:

finally got there :


i followed the instructions:
https://randomnerdtutorials.com/install ... tructions/


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
  • 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


see the myVirtEnv AND where it is located...`?!

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
  • 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 1:28 Videos
    drwxr-xr-x 2 martin martin 4096 Sep 24 21:28 Vorlagen
    (myVirtEnv) root@MartinsMX-Rechner:/home/martin#
look forward to hear from you

love to hear from you
Attachments
_mypcraft__cant_open_serial_.png
_mypcraft__cant_open_serial_.png (72.03 KiB) Viewed 79 times

GryKyo
Posts: 10
Joined: Sat Dec 15, 2018 12:43 am

Re: uPyCraft - Issues on Windows 10

Post by GryKyo » Mon Oct 14, 2019 11:34 pm

olzeke51 wrote:
Sun Apr 07, 2019 2:06 am
uPyCraft v1.0 reported a missing msvcr100.dll. (windows 10 - 64bit)
I downloaded several of the Microsoft files but this is the one that solved the issue:
Microsoft Visual C++ 2010 Redistributable Package (x86)
https://www.microsoft.com/en-us/downloa ... px?id=5555
HTH some others
Legend, thanks it works on my Windows 10 machine now!

Post Reply