Open elibroftw opened 2 years ago
Hi @elibroftw! i've fixed it by including:
<!-- Load eel.js from the port specified in the eel.start options -->
<script type="text/javascript" src="http://localhost:<your_python_host_port>/eel.js"></script>
in head
of your public/index.html
file.
Hope it helps!
Eel version Latest
Describe the bug A clear and concise description of what the bug is.
PS C:\Users\maste\Documents\GitHub\r2-t2> python .\eel.py Traceback (most recent call last): File "C:\Users\maste\Documents\GitHub\r2-t2\eel.py", line 8, in
import eel
File "C:\Users\maste\Documents\GitHub\r2-t2\eel.py", line 14, in
@eel.expose # Expose function to JavaScript
AttributeError: partially initialized module 'eel' has no attribute 'expose' (most likely due to a circular import)
To Reproduce Steps to reproduce the behavior:
pip install eel
https://github.com/ChrisKnott/Eel/blob/master/examples/07%20-%20CreateReactApp/eel_CRA.py
Expected behavior It should work
Desktop (please complete the following information):
Additional context Add any other context about the problem here.