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

Dependency Problem #5

Open
Nackenschelle opened this issue Jan 28, 2018 · 8 comments
Open

Dependency Problem #5

Nackenschelle opened this issue Jan 28, 2018 · 8 comments

Comments

@Nackenschelle
Copy link

Hey. I cannot install all Dependencys.
webbrowser, win32gui, win32con & win32process are not able to install

Error Code:
Could not find a version that satisfies the requirement webbrowser (from versions: )
No matching distribution found for webbrowser

any solution for me?

@xulusjb
Copy link
Owner

xulusjb commented Jan 28, 2018

Seems like you can not install webbrowser via PIP, right?
If so, you can try to install this library by using its wheel.
You may cheek this link for more information:
https://stackoverflow.com/questions/27885397/how-do-i-install-a-python-package-with-a-whl-file

@Nackenschelle
Copy link
Author

ok i test to install the files by .whl file
on install i got following error code:
win32gui-221.6-cp35-cp35m-win32.whl is not a supported wheel on this platform.

can you tell me what python version i need and maybe link all the Dependencys files please?

@hiroto-takatoshi
Copy link
Collaborator

You need to check out which specific python version you are on. We are using python 3.6 64 bit on Anaconda on Windows. So we would choose to download files with "cp36" "amd64" "win64" substrings. If you are using Anaconda it's a lot easier, for most packages you just type instructions like "conda install xxx".

If you simply want to use this tool just feel free to use the pre-compiled version, since Bluehole won't even care. Or if you have some special demands on some features you can just reply here, and we will see what we can do.

@Nackenschelle
Copy link
Author

i want to learn how all this works but this seems to complicated for me :/

@xulusjb
Copy link
Owner

xulusjb commented Feb 1, 2018

The error code:
win32gui-221.6-cp35-cp35m-win32.whl is not a supported wheel on this platform.
Highly possible because you use the wrong version of the wheel.
You need to check your python version and Windows version to get the right version of wheel

@hiroto-takatoshi
Copy link
Collaborator

@gokhyildiz
I retried the setup. Here's how I did it.
First download this repo:
https://github.com/Answeror/pyhook_py3k
Extract it and then download this tool:
http://www.swig.org/download.html
The windows version is a compressed file. Extract everything of the file in the root folder to the pyhook repo folder.
Then in the command line, switch to the pyhook folder and run "python setup.py install".
This would have the pyHook package installed.
Last is to do something similar, download the pyuserinput repo from here:
https://github.com/PyUserInput/PyUserInput
Run "python setup.py install" in that folder as well. It would automatically get the pywin32 package installed from the web, and finish the process.
See if this works for you.

@simplerick-simplefun
Copy link

simplerick-simplefun commented Mar 15, 2018

in python 3 you donot need to install webbrowser.
others can be installed by pip:

pip install PyUserInput
pip install psutil
pip install pywin32

if you need PyHook
go to https://www.lfd.uci.edu/~gohlke/pythonlibs/ and find a version suitable.

@xulusjb xulusjb closed this as completed Mar 28, 2018
@xulusjb xulusjb reopened this Mar 28, 2018
@linehammer
Copy link

webbrowser is part of the python standard library, you don't have to install a separate package to use it because it comes bundled with your python installation. If you want to get recognized browsers on your system:

import webbrowser
print webbrowser._browsers

If you directly use webbrowser.open() - it will always open the link in the default browser. What you can do is to register the any other browser and then launch a new tab. Something like this:

webbrowser.register(name, constructor, instance=None)

Once a python browser type is registered, the get() function can return a controller for that browser type. You can run open, open_new and open_new_tab on the controller object. This will ensure the commands are executed on the same browser instance you opened.

import webbrowser    
url='https://www.google.com'
chrome_path="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
webbrowser.register('chrome', None,webbrowser.BackgroundBrowser(chrome_path),1)
webbrowser.get('chrome').open_new_tab(url)

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

5 participants