-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Sorry, AREPL has ran into an error - probably macOS #387
Comments
I'm not able to reproduce on 3.9 w/ windows. Maybe it's a mac-specific bug? Can you try running the following in the terminal using python 3.9 please and let me know the output? from sys import version
print(version)
import asyncio
asyncio.set_event_loop(asyncio.new_event_loop()) Related error: eventlet/eventlet#670 I wonder if this is a internal python bug 🤔 |
Works fine:
|
What about from sys import version
print(version)
import asyncio
asyncio.set_event_loop(asyncio.new_event_loop())
asyncio.set_event_loop(asyncio.new_event_loop()) ? |
No issue/same output. |
I tried to reproduce this on mac el capitan and was unable too. Unfortunately I don't have a mojave-compatible computer so I'm not able to try it there. How did you run python in the terminal? Can you prefix that command with |
Oh also if you use a earlier version of python does it work with AREPL? |
I managed to get this working by changing https://github.com/Almenon/AREPL-backend/blob/master/python/arepl_python_evaluator.py#L234 from to My environment: |
Really? Very interesting... I'll look into this, thanks! While I was investigating I also ran into another error: Almenon/AREPL-backend#167 Looks like I have some work to do :| |
I've experienced the same bug whilst running a simple script using homebrew Python 3.9.5 Running your script above works fine on both 3.9.5 and 3.8.10 Mac OS 10.15.7 (Catalina) Sorry, AREPL has ran into an error Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Print Output: |
I'm able to reproduce this reliably using just an EnvironmentOS X 10.13.6 Steps to reproduce
arepl_keyerror.mp4If AREPL is restarted, it throws an error when new code is entered (but not when newlines are added). In my case, the KeyError usually mentions key 5, 8, or 11.
|
Finally got access to a Mac. I can reproduce the bug on 3.9, but the bug does not occur on 3.10. I suggest either using the fix workaround above, downgrading to 3.7, or upgrading to 3.10. The other interesting thing is that for me this only occurs in the third arepl run. |
Describe the bug
To Reproduce
Try typing a small program. Probably triggerable by any use of macOS and AREPL when typing a variable name that does not exist yet.
Screenshots
If applicable, add screenshots to help explain your problem.
Other Information (please complete the following information):
The text was updated successfully, but these errors were encountered: