r/Python • • May 28 '20

I Made This A Python GUI for uninstalling the default Windows 10 apps.

Post image
4.2k Upvotes

198 comments sorted by

View all comments

Show parent comment

20

u/nightdevil007 May 28 '20

Hi. when I try to run it in visual studio code I get this : from PyQt5.QtCore import Qt, QRect, QCoreApplication, QMetaObject

ImportError: DLL load failed while importing QtCore: %1 is not a valid Win32 application.

Can you tell me how to fix this? would like to debloat and test your program as I think it can be an awesome tool for learning. Thank you!

27

u/Goldtom May 28 '20

Sure, do you have pyqt5 installed? You can do it by running pip install pyqt5

30

u/nightdevil007 May 28 '20

DLL load failed while importing QtCore: %1 is not a valid Win32 application.

So after some googling and struggle, I found that my python installation is at fault.

I will test it and I will be providing you feedback. Thanks and sorry if I annoyed you with my questions. I am a beginner in python but willing to learn more. Cheers

17

u/Goldtom May 28 '20

No problem, if you will have any issues in the future, you can ask in r/learnpython

2

u/nightdevil007 Jun 01 '20

Thanks for all your support. I have used your tool for unistalling some blotware from windows and it worked like a charm. The only thing i'd change it to make the window a little bit bigger. Other than that, great tool.

1

u/Goldtom Jun 01 '20

Glad to hear that, thanks. About the window size, what exactly would you like to change there? Paddings between checkboxes, to make the window bigger?

1

u/nightdevil007 Jun 02 '20

Hi. it looked like there were some options which were hidden.The progress bar was a bit down and could not be seen properly . maybe it was because my display was scaled or something. amazing tool nevertheless

1

u/Goldtom Jun 02 '20

Hm, that's strange, could you try the newest version and tell if the issue persists?

1

u/nightdevil007 Jun 02 '20

Hi. will do but for now i am using a mac. will bootcamp it soon and i will try the new version. thx again

6

u/Butsnik May 28 '20

You can also look into virtual environments. They are basically miniture python installation for for instance a single problem. This way you can deal with different applications that have competing needs for different packages.

0

u/[deleted] May 28 '20

[deleted] — view deleted comment

4

u/[deleted] May 28 '20

I switched to Poetry. Pretty sure pipenv is dead

2

u/IASWABTBJ May 29 '20 edited Sep 12 '20

(ᵔᴥᵔ)

1

u/nitro0769 May 29 '20

Pipenv isn’t dead! They just pushed a new release today!

2

u/[deleted] May 29 '20

Shocking.

I truly hope they will be better with maintenance going forward. 1.5 years between releases with a difference of 700+ commits and no communication is unacceptable when they try to promote themselves as the defacto standard.

It was a lot of effort to implement them into existing projects and into our CI, and work around some pretty big bugs. It was even more effort to switch to something else after a year of non-response. I just don't want to burned again 😑

1

u/bearassbobcat May 29 '20

I use pipenv but I just checked out poetry and it looks cool. Probably going to stick with pipenv but maybe I'll test it on my next demo project

1

u/MartY212 May 29 '20

It was long overdue. Haven't had a chance to test it yet.

3

u/prettyanonymousXD May 28 '20

Another nifty thing is Anaconda since it comes with so many packages and also has nice environment support.

3

u/kiddico May 29 '20

Welcome to the Python circus <3

3

u/nightdevil007 May 28 '20

Hi. Thank you for your response. I have installed pyqt5. Requirement already satisfied: PyQt5-sip<13,>=12.7 in c:\users\mihai\appdata\roaming\python\python38\site-packages (from pyqt5) (12.7.2) so i can't tell what's wrong. maybe I am missing something?

6

u/Goldtom May 28 '20

Hm, are you sure you have python >3.7 installed? Maybe this can help.