Annoying Error on every codes

I can’t do anything on Repl.it. I always face several errors. The latest and most annoying one currently happening is this error:

Replit: Updating package configuration

--> python3 -m poetry add twilio
Traceback (most recent call last):
  File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/runpy
Traceback (most recent call last):
  File "main.py", line 1, in <module>
    import asyncio
  File "/home/runner/LightPureCarrier/venv/lib/python3.10/site-packages/asyncio/__init__.py", line 21, in <module>
    from .base_events import *
  File "/home/runner/LightPureCarrier/venv/lib/python3.10/site-packages/asyncio/base_events.py", line 296
    future = tasks.async(future, loop=self)
                   ^^^^^
SyntaxError: invalid syntax

Try disabling upm’s package guessing functionality in .replit, then using the shell to install packages yourself.

3 Likes

As @9pfs said, turn guessImports to false in .replit.

2 Likes

Done. Now I’m facing another error: I already installed twilio, but it says that it is not finding its module.

Traceback (most recent call last):
  File "main.py", line 4, in <module>
    from twilio.twiml.messaging_response import MessagingResponse
ModuleNotFoundError: No module named 'twilio'

:man_facepalming:

Try pip install twilio

I had already done that. That’s why it was being so irritating. I deleted everything and made a new file, disabled guessImports and installed the packages manually. Now everything appears to be working. Thanks a lot for the help. I’m new here.

1 Like

This is with your code, not Replit itself. Post in the code help category next time.

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.