Open HamzaGbada opened 1 week ago
Workaround (Outdated)
Fortunately, bottle-websocket
can be used and should work similarly. I got mine working with Python 3.12.
You just need to change an import in __init__.py
in the Eel module.
Find this line:
import bottle.ext.websocket as wbs
and replace it with:
import bottle_websocket as wbs
Make sure to update the required packages:
pip install --upgrade bottle-websocket setuptools
(Note: your answer is generated using chatgpt :) )
I just formated here is the original: https://stackoverflow.com/questions/77232001/python-eel-module-unable-to-use-import-bottle-ext-websocket-as-wbs-modulenotfoun
its fixed now
I don't think so: Here is an update if current issue:
Traceback (most recent call last):
File "/home/bobmarley/PycharmProjects/Language-directory-finder/venv/lib/python3.12/site-packages/eel/__init__.py", line 319, in _process_message
return_val = _exposed_functions[message['name']](*message['args'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bobmarley/PycharmProjects/Language-directory-finder/main.py", line 53, in list_directories
directories = scan_directories(drive, language)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bobmarley/PycharmProjects/Language-directory-finder/main.py", line 38, in scan_directories
with os.scandir(drive) as entries:
^^^^^^^^^^^^^^^^^
NotADirectoryError: [Errno 20] Not a directory: '/dev/nvme0n1p3'
I think, it does not recognize my nvme
drive.
I just followed the instructioon from
README.md
, however it does not work and throw the following error:General information
Python 3.12.3
IDEA: Pycharm 2024.1.2 Steps to reproduce