yufeikang / raycast_api_proxy

265 stars 39 forks source link

Step 5 not working #8

Closed y-u-s-u-f closed 10 months ago

y-u-s-u-f commented 10 months ago
yusuf@Yusufs-iMac raycast_api_proxy % python3 /Users/yusuf/raycast_api_proxy/app/main.py
Traceback (most recent call last):
  File "/Users/yusuf/raycast_api_proxy/app/main.py", line 11, in <module>
    from app.utils import ProxyRequest, pass_through_request
ModuleNotFoundError: No module named 'app'
yufeikang commented 10 months ago

Hi Yusuf,

It seems you're facing a ModuleNotFoundError. To resolve this, I recommend using either of the following methods to launch the application:

  1. Using Uvicorn: If it's an ASGI application, you can use Uvicorn, a lightning-fast ASGI server, to launch it. Navigate to the project's root directory and run:

  2. Using Python -m: Alternatively, you can launch the application with Python's -m option to ensure proper handling of the module path:

Both methods should correctly locate the 'app' module. Please try these and let me know if you have any further issues.