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

Installing on windows error #141

Closed
RYucel opened this issue Feb 21, 2017 · 32 comments
Closed

Installing on windows error #141

RYucel opened this issue Feb 21, 2017 · 32 comments
Assignees

Comments

@RYucel
Copy link

RYucel commented Feb 21, 2017

On windows 7 (Ultimate 64 bit), with python 3.5 (32 bit) I can not install urh via command `

python -m pip install urh

I am receiving error
ImportError: No module named src.urh.version
What should I do to run it on windows

@jopohl
Copy link
Owner

jopohl commented Feb 21, 2017

Could you try uninstalling Python 3.5 (32 bit) and install Python 3.5 (64 bit) or Python 3.6 (64 bit) instead? Furthermore you can:

  • Try it again (I just published a new version) 😉
  • Try invoking pip directly: pip install urh this ensures, that pip is set up correctly and in your path
  • Upgrade pip: pip install --upgrade pip

@jopohl jopohl self-assigned this Feb 21, 2017
@jopohl jopohl added the bug label Feb 21, 2017
@RYucel
Copy link
Author

RYucel commented Feb 21, 2017

Same problem still
image

@jopohl
Copy link
Owner

jopohl commented Feb 21, 2017

I can see from your screenshot, that you are using python 2.7. URH requires atleast python 3.4.

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017 via email

@jopohl
Copy link
Owner

jopohl commented Feb 21, 2017

You're welcome. :)

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017

Now it installed but dont knwo how to run because >urh command in cmd not working. Any help? :)
image

@jopohl
Copy link
Owner

jopohl commented Feb 21, 2017

It should be found in c:\users\rustu\appdata\local\programs\python36\lib\site-packages . If it is there, you may add this directory to your Windows Path.

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017 via email

@jopohl
Copy link
Owner

jopohl commented Feb 21, 2017

Did you find urh.exe in this path? If so, you should add the full path c:\users\rustu\appdata\local\programs\python36\lib\site-packages to your PATH variable.

Unfortunately, I currently have no Windows for testing available right now. In some subfolder of c:\users\rustu\appdata\local\programs\python36 a urh.exe should be placed. Can you search for it?

I will have access to my WindowsVM this evening if it still not works for you till then.

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017 via email

@jopohl
Copy link
Owner

jopohl commented Feb 21, 2017

I can not see your image. 😉

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017

windows qt plugin error

image

@jopohl
Copy link
Owner

jopohl commented Feb 21, 2017

That looks bad. Can you run:

python -c "from PyQt5 import QtWidgets"

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017 via email

@jopohl
Copy link
Owner

jopohl commented Feb 21, 2017

I just want to verify, that your PyQt Installation is alright. Does this command give you an error:

python -c "from PyQt5.QtWidgets import QApplication; import sys; app = QApplication(sys.argv); app.exec_()"

You can close the terminal if no error occurs to end it.

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017

If that was the code, here is result and still have problem
image

@jopohl
Copy link
Owner

jopohl commented Feb 21, 2017

Yes...seems your PyQt5 installation itself is kind of broken. Can you try:

pip install pyqt5

instead

python -m pip install pyqt5

just to verify, pip is in your PATH.

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017

image

@jopohl
Copy link
Owner

jopohl commented Feb 21, 2017

Seems PyQt5 itself is broken here. I guess a .dll is missing or something like that. I found this stackeroverflow thread suggesting to set the enviroment variable

QT_QPA_PLATFORM_PLUGIN_PATH=%QTDIR%\plugins\platforms\ 

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017 via email

@andynoack
Copy link
Collaborator

There is a small tutorial on how to set environment variables under different Windows versions: http://www.computerhope.com/issues/ch000549.htm
Have you tried something similar with the line suggested by Johannes yet?

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017 via email

@andynoack
Copy link
Collaborator

Maybe you can try the following with all the necessary libraries in the current path:
urh.exe -platformpluginpath .

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017 via email

@andynoack
Copy link
Collaborator

The -platformpluginpath . parameter should make urh to look for the necessary libraries in the current path. If something, e.g. libEGL.dll, cannot be found otherwise, this might help out.
However, your problem seems to be a QT5 problem. Which QT5 version do you use?

@jopohl
Copy link
Owner

jopohl commented Feb 21, 2017

I just fired up a fresh Windows 7 VM and could install and run URH like a charm. @stevevaius77 maybe try to run urh from an admin terminal?

@RYucel
Copy link
Author

RYucel commented Feb 21, 2017 via email

@wgaylord
Copy link

I am able to run it. Easiest way to launch is python -m urh.main

@RYucel
Copy link
Author

RYucel commented Feb 22, 2017 via email

@wgaylord
Copy link

Do you have pip updated and also the C++ thingy installed.

@andynoack
Copy link
Collaborator

Hey @stevevaius77, does it work now? Can we close here?

@RYucel
Copy link
Author

RYucel commented Feb 23, 2017 via email

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

No branches or pull requests

4 participants