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

Cannot import get_adapters on Windows due to fcntl module not available #101

Closed
jpwright opened this issue Dec 15, 2023 · 1 comment · Fixed by #102
Closed

Cannot import get_adapters on Windows due to fcntl module not available #101

jpwright opened this issue Dec 15, 2023 · 1 comment · Fixed by #102
Labels
bug Something isn't working

Comments

@jpwright
Copy link

Describe the bug
Cannot import get_adapters on Windows due to fcntl module not being available.

To Reproduce

Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct  2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.system()
'Windows'
>>> from bluetooth_adapters import get_adapters
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<masked>\venv\Lib\site-packages\bluetooth_adapters\__init__.py", line 45, in <module>
    from .systems.linux_hci import get_adapters_from_hci
  File "<masked>\venv\Lib\site-packages\bluetooth_adapters\systems\linux_hci.py", line 4, in <module>
    import fcntl
ModuleNotFoundError: No module named 'fcntl'

Additional context

@jpwright jpwright added the bug Something isn't working label Dec 15, 2023
bdraco added a commit that referenced this issue Dec 16, 2023
bdraco added a commit that referenced this issue Dec 16, 2023
bdraco added a commit that referenced this issue Dec 16, 2023
bdraco added a commit that referenced this issue Dec 16, 2023
bdraco added a commit that referenced this issue Dec 16, 2023
@jpwright
Copy link
Author

Thanks @bdraco!

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

Successfully merging a pull request may close this issue.

1 participant