Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msvcp140.dll is missing #46

Closed
amryounis opened this issue Apr 30, 2020 · 9 comments
Closed

msvcp140.dll is missing #46

amryounis opened this issue Apr 30, 2020 · 9 comments

Comments

@amryounis
Copy link

environment:

pycharm ce 2020
python 3.82
pyqt5 5,14

@altendky
Copy link
Owner

Thanks for the feedback. I'll try to get that straightened out. Do you have a full traceback to share in case it is any extra help to me?

@altendky
Copy link
Owner

Also, what were you running? And what version of Windows?

@amryounis
Copy link
Author

amryounis commented May 2, 2020

Hi, thank you for the reply.

I installed MS VC++ redist for Windows which solved this issue (this requirement was not mentioned anywhere)

after that if I try to launch designer.exe as advised by many online tutorials (C:...\PycharmProjects...\venv\Lib\site-packages\pyqt5_tools\Qt\bin) I receive an error message that "the application failed to start because no Qt plugin could be initialized"

After some search I came to know that I have to start pyqt5designer.exe from (C:...\PycharmProjects...\venv\Scripts). also this was not mentioned anywhere

@altendky
Copy link
Owner

altendky commented May 2, 2020

At present it is supposed to get the redist from the PyQt5 installation. Can you link the tutorials that say to run from Qt/bin? That's really old. The readme does refer to Scripts/pyqt5designer.exe, but sure, it could be more explicit and refer to the other programs too. It also needs to be updated to describe Linux (and macOS) directories which annoyingly Python makes different on different platforms.

@amryounis
Copy link
Author

thank you...

I am referring to this tutorial: https://morioh.com/p/7fd512fef7d7
but googling the subject will lead you to similar ones as well.

I consulted project web page: https://pypi.org/project/pyqt5-tools/. The page says nothing about MSVC++ redist. also it directs me to launch Scripts\designer.exe.

I again consulted https://github.com/altendky/pyqt5-tools, with the same.

for fairness, I later found that the same two pages mentioned that I need to launch Scripts\pyqt5designer.exe, but this comes later on which meant I needed to go through the pages to the end.

@altendky
Copy link
Owner

altendky commented May 2, 2020

As mentioned, you should not need to install the redist. The previous builds included it themselves. The new builds use the pyqt5 provided redist files. If you launch correctly...

Yes, the readme ought to be improved. Yes, you do have to read it instead of running random files down in site-libs. :]

I'll keep this open until I improve the readme or create other explicit tickets for those steps. If you would be willing to dig up the other links to outdated tutorials I can write up a message and contact all the authors.

@amryounis
Copy link
Author

thank you for your keen follow up. Surely I can try to update this issue with any similar encounters

@stonebig
Copy link

stonebig commented Oct 11, 2020

maybe could you use Cgohlke wheel as a dependency on Windows ?

https://www.lfd.uci.edu/~gohlke/pythonlibs/#msvc_runtime

or

https://pypi.org/project/msvc-runtime/

@altendky
Copy link
Owner

Just cleaning up old issues here. If there is still a similar issue on the latest releases from today, please open a new issue with details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants