Salz0 / telegram_flea

A open-source flea market bot, to be used in any Community
MIT License
9 stars 21 forks source link

Still missing imports or modules after installing #23

Closed profoundboy closed 10 months ago

profoundboy commented 10 months ago

Describe the bug On loading the repo to my IDE, i get bugs requesting I install missing modules even after rightly installing them.

To Reproduce Steps to reproduce the behavior:

  1. After loading project to my IDE
  2. I install modules 'aiogram' , python-dotenv, Path on my IDE terminal
  3. After which i encounter missing aiogram dependencies/imports errors on lines 5,6,8,9

Screenshots

Screenshot 2023-10-26 at 22 38 48
Salz0 commented 10 months ago

Hi, thank you for notifying about potential issues

Did you install everything via poetry?

$ pip install poetry
$ poetry install

If yes, could you show the runtime error? Or is this a IDE notification that doesn't interrupt on runtime?

profoundboy commented 10 months ago

No i tried installing via pip3, however i did try using $ poetry install to get all dependencies installed. but it still gives me the same missing module errors.

Screenshot 2023-10-27 at 19 42 12
Salz0 commented 10 months ago

No i tried installing via pip3, however i did try using $ poetry install to get all dependencies installed. but it still gives me the same missing module errors. Screenshot 2023-10-27 at 19 42 12

You are trying to run the app with your system environment, which is at /usr/local/bin/python3

Instead, you should either configure your VSCode to automatically run via the poetry environment, or simply type:

poetry run main.py