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

no module error pysetupdi #105

Open
h-enes-simsek opened this issue Mar 19, 2023 · 5 comments
Open

no module error pysetupdi #105

h-enes-simsek opened this issue Mar 19, 2023 · 5 comments
Labels
backend: WinRT Problem specific to WinRT bug Something isn't working

Comments

@h-enes-simsek
Copy link

h-enes-simsek commented Mar 19, 2023

The problem

I tried to run the server.py and got the following error:

(VENV) redacted>python server.py
Traceback (most recent call last):
  File "redacted\Desktop\bluetoothTest\server.py", line 12, in <module>
    from bless import (  # type: ignore
  File "redacted\Desktop\bluetoothTest\bless\VENV\lib\site-packages\bless\__init__.py", line 41, in <module>
    from bless.backends.winrt.server import (  # noqa: F401
  File "redacted\Desktop\bluetoothTest\bless\VENV\lib\site-packages\bless\backends\winrt\server.py", line 20, in <module>
    from bless.backends.winrt.ble import BLEAdapter
  File "redacted\Desktop\bluetoothTest\bless\VENV\lib\site-packages\bless\backends\winrt\ble\__init__.py", line 1, in <module>
    from .adapter import BLEAdapter
  File "redacted\Desktop\bluetoothTest\bless\VENV\lib\site-packages\bless\backends\winrt\ble\adapter.py", line 5, in <module>
    from pysetupdi import devices  # type: ignore

Reproduction

I created a new venv
pip install bleak
pip install bless
python server.py

Desktop (please complete the following information):
Win10

Additional context
There is no lib called pysetupdi in PYPI, did you install it manually?

@h-enes-simsek h-enes-simsek changed the title no mudule error pysetupdi no module error pysetupdi Mar 19, 2023
@aahmed7
Copy link

aahmed7 commented Mar 20, 2023

pysetupdi is not available on pypi and needs to be installed manually from https://github.com/gwangyi/pysetupdi

clone the repo and run the following command:

python .\setup.py install

@h-enes-simsek
Copy link
Author

h-enes-simsek commented Mar 20, 2023

Thank you for your reply. I think it would be helpful to have your answer in the readme file.

@kevincar
Copy link
Owner

Thanks for bringing this up. I'm going to keep this open for my records to remind me to update the code. As @h-enes-simsek pointed out, this should either be in the readme or ideally I'll update the setup.py to ensure this is installed during pip install on windows OS.

@kevincar kevincar reopened this Mar 20, 2023
@kevincar kevincar added bug Something isn't working backend: WinRT Problem specific to WinRT labels Mar 20, 2023
@NotLawson
Copy link

If you run pip install git+https://github.com/gwangyi/pysetupdi it clones and installs in one command.

@Chapoly1305
Copy link

If you run pip install git+https://github.com/gwangyi/pysetupdi it clones and installs in one command.

Thank you, this helped a lot. Should be included in README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: WinRT Problem specific to WinRT bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants