Annoying Error on every codes

I can’t do anything on 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/", 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 "", line 1, in <module>
    import asyncio
  File "/home/runner/LightPureCarrier/venv/lib/python3.10/site-packages/asyncio/", line 21, in <module>
    from .base_events import *
  File "/home/runner/LightPureCarrier/venv/lib/python3.10/site-packages/asyncio/", 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.


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


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 "", line 4, in <module>
    from twilio.twiml.messaging_response import MessagingResponse
ModuleNotFoundError: No module named 'twilio'


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.


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