Skip to content
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

Getting issues on first run with ./quick_start.sh #10

Open
OrrnobMahmud opened this issue Aug 31, 2021 · 6 comments
Open

Getting issues on first run with ./quick_start.sh #10

OrrnobMahmud opened this issue Aug 31, 2021 · 6 comments

Comments

@OrrnobMahmud
Copy link

`

usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear]
[--upgrade] [--without-pip] [--prompt PROMPT] [--upgrade-deps]
ENV_DIR [ENV_DIR ...]
venv: error: the following arguments are required: ENV_DIR
./quick_start.sh: line 11: venv/bin/activate: No such file or directory
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: SQLAlchemy==1.3.11 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 1)) (1.3.11)
Requirement already satisfied: sqlalchemy-migrate==0.13.0 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 2)) (0.13.0)
Requirement already satisfied: Telethon==1.23.0 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 3)) (1.23.0)
Requirement already satisfied: mysql-connector-python==8.0.18 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 4)) (8.0.18)
Requirement already satisfied: gspread==3.1.0 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 5)) (3.1.0)
Requirement already satisfied: oauth2client==4.1.3 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 6)) (4.1.3)
Requirement already satisfied: python-dotenv==0.19.0 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (0.19.0)
Requirement already satisfied: requests>=2.2.1 in /usr/lib/python3.9/site-packages (from gspread==3.1.0->-r requirements.txt (line 5)) (2.26.0)
Requirement already satisfied: protobuf>=3.0.0 in /home/mahmud/.local/lib/python3.9/site-packages (from mysql-connector-python==8.0.18->-r requirements.txt (line 4)) (3.17.3)
Requirement already satisfied: rsa>=3.1.4 in /home/mahmud/.local/lib/python3.9/site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (4.7.2)
Requirement already satisfied: pyasn1>=0.1.7 in /home/mahmud/.local/lib/python3.9/site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (0.4.8)
Requirement already satisfied: pyasn1-modules>=0.0.5 in /home/mahmud/.local/lib/python3.9/site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (0.2.8)
Requirement already satisfied: httplib2>=0.9.1 in /home/mahmud/.local/lib/python3.9/site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (0.19.1)
Requirement already satisfied: six>=1.6.1 in /usr/lib/python3.9/site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (1.16.0)
Requirement already satisfied: pbr>=1.8 in /home/mahmud/.local/lib/python3.9/site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (5.6.0)
Requirement already satisfied: Tempita>=0.4 in /home/mahmud/.local/lib/python3.9/site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (0.5.2)
Requirement already satisfied: sqlparse in /home/mahmud/.local/lib/python3.9/site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (0.4.1)
Requirement already satisfied: decorator in /home/mahmud/.local/lib/python3.9/site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (5.0.9)
Requirement already satisfied: pyaes in /home/mahmud/.local/lib/python3.9/site-packages (from Telethon==1.23.0->-r requirements.txt (line 3)) (1.6.1)
Requirement already satisfied: pyparsing<3,>=2.4.2 in /usr/lib/python3.9/site-packages (from httplib2>=0.9.1->oauth2client==4.1.3->-r requirements.txt (line 6)) (2.4.7)
Requirement already satisfied: chardet>=3.0.2 in /usr/lib/python3.9/site-packages (from requests>=2.2.1->gspread==3.1.0->-r requirements.txt (line 5)) (4.0.0)
Requirement already satisfied: idna>=2.5 in /usr/lib/python3.9/site-packages (from requests>=2.2.1->gspread==3.1.0->-r requirements.txt (line 5)) (3.2)
Requirement already satisfied: urllib3>=1.21.1 in /usr/lib/python3.9/site-packages (from requests>=2.2.1->gspread==3.1.0->-r requirements.txt (line 5)) (1.26.6)
INFO:root:env_file: informer.env
INFO:telethon.crypto.aes:libssl detected, it will be used for encryption
Traceback (most recent call last):
File "/home/mahmud/Downloads/informer-master/app/bot.py", line 33, in <module>
account_id = sys.argv[1]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mahmud/Downloads/informer-master/app/bot.py", line 35, in <module>
raise Exception('informer.py <account_id> - account_id is a required param')
Exception: informer.py <account_id> - account_id is a required param

`

@0xtwoface
Copy link

I’m facing with the same problem tried so many things but couldnt pass this error

@SrJok3s
Copy link

SrJok3s commented Oct 5, 2021

Same problem here @paulpierre

@benichmt1
Copy link

I believe the intention is you are supposed to alter that single line in quick_start.sh

#run the bot
python3 bot.py <your-id>

I'm still running into some docker networking issues. I believe the reference here docker.for.mac.localhost has been superceded.

@marbella-web
Copy link

Im getting these errors, are there maybe some set up required for mysql

$ ./quick_start.sh
./quick_start.sh: line 8: python3: command not found
./quick_start.sh: line 11: venv/bin/activate: No such file or directory
Requirement already satisfied: SQLAlchemy==1.3.11 in c:\python39\lib\site-packages (from -r requirements.txt (line 1)) (1.3.11)
Requirement already satisfied: sqlalchemy-migrate==0.13.0 in c:\python39\lib\site-packages (from -r requirements.txt (line 2)) (0.13.0)
Requirement already satisfied: Telethon==1.23.0 in c:\python39\lib\site-packages (from -r requirements.txt (line 3)) (1.23.0)
Collecting mysql-connector-python==8.0.18
Using cached mysql_connector_python-8.0.18-py2.py3-none-any.whl (346 kB)
Requirement already satisfied: gspread==3.1.0 in c:\python39\lib\site-packages (from -r requirements.txt (line 5)) (3.1.0)
Requirement already satisfied: oauth2client==4.1.3 in c:\python39\lib\site-packages (from -r requirements.txt (line 6)) (4.1.3)
Requirement already satisfied: python-dotenv==0.19.0 in c:\python39\lib\site-packages (from -r requirements.txt (line 7)) (0.19.0)
Requirement already satisfied: sqlparse in c:\python39\lib\site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (0.4.2)
Requirement already satisfied: six>=1.7.0 in c:\python39\lib\site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (1.16.0)
Requirement already satisfied: Tempita>=0.4 in c:\python39\lib\site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (0.5.2)
Requirement already satisfied: pbr>=1.8 in c:\python39\lib\site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (5.8.1)
Requirement already satisfied: decorator in c:\python39\lib\site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (5.1.1)
Requirement already satisfied: pyaes in c:\python39\lib\site-packages (from Telethon==1.23.0->-r requirements.txt (line 3)) (1.6.1)
Requirement already satisfied: rsa in c:\python39\lib\site-packages (from Telethon==1.23.0->-r requirements.txt (line 3)) (4.1)
Requirement already satisfied: protobuf>=3.0.0 in c:\python39\lib\site-packages (from mysql-connector-python==8.0.18->-r requirements.txt (line 4)) (3.19.4)
Requirement already satisfied: requests>=2.2.1 in c:\python39\lib\site-packages (from gspread==3.1.0->-r requirements.txt (line 5)) (2.27.1)
Requirement already satisfied: pyasn1-modules>=0.0.5 in c:\python39\lib\site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (0.2.8)
Requirement already satisfied: httplib2>=0.9.1 in c:\python39\lib\site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (0.20.4)
Requirement already satisfied: pyasn1>=0.1.7 in c:\python39\lib\site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (0.4.8)
Requirement already satisfied: pyparsing!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3,<4,>=2.4.2 in c:\python39\lib\site-packages (from httplib2>=0.9.1->oauth2client==4.1.3->-r requirements.txt (line 6)) (3.0.7)
Requirement already satisfied: idna<4,>=2.5 in c:\python39\lib\site-packages (from requests>=2.2.1->gspread==3.1.0->-r requirements.txt (line 5)) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\python39\lib\site-packages (from requests>=2.2.1->gspread==3.1.0->-r requirements.txt (line 5)) (1.26.8)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\python39\lib\site-packages (from requests>=2.2.1->gspread==3.1.0->-r requirements.txt (line 5)) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in c:\python39\lib\site-packages (from requests>=2.2.1->gspread==3.1.0->-r requirements.txt (line 5)) (2019.11.28)
Installing collected packages: mysql-connector-python
Attempting uninstall: mysql-connector-python
Found existing installation: mysql-connector-python 8.0.28
Uninstalling mysql-connector-python-8.0.28:
Successfully uninstalled mysql-connector-python-8.0.28
Successfully installed mysql-connector-python-8.0.18
./quick_start.sh: line 17: python3: command not found

@1j0ker
Copy link

1j0ker commented Feb 22, 2023

the same problem that i sloved by modify quick_start.sh in line8:
python3 -m venv venv

please insure your python3 version >3.7

@1j0ker
Copy link

1j0ker commented Feb 22, 2023

`

usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear]

[--upgrade] [--without-pip] [--prompt PROMPT] [--upgrade-deps]

ENV_DIR [ENV_DIR ...]

venv: error: the following arguments are required: ENV_DIR

./quick_start.sh: line 11: venv/bin/activate: No such file or directory

Defaulting to user installation because normal site-packages is not writeable

Requirement already satisfied: SQLAlchemy==1.3.11 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 1)) (1.3.11)

Requirement already satisfied: sqlalchemy-migrate==0.13.0 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 2)) (0.13.0)

Requirement already satisfied: Telethon==1.23.0 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 3)) (1.23.0)

Requirement already satisfied: mysql-connector-python==8.0.18 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 4)) (8.0.18)

Requirement already satisfied: gspread==3.1.0 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 5)) (3.1.0)

Requirement already satisfied: oauth2client==4.1.3 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 6)) (4.1.3)

Requirement already satisfied: python-dotenv==0.19.0 in /home/mahmud/.local/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (0.19.0)

Requirement already satisfied: requests>=2.2.1 in /usr/lib/python3.9/site-packages (from gspread==3.1.0->-r requirements.txt (line 5)) (2.26.0)

Requirement already satisfied: protobuf>=3.0.0 in /home/mahmud/.local/lib/python3.9/site-packages (from mysql-connector-python==8.0.18->-r requirements.txt (line 4)) (3.17.3)

Requirement already satisfied: rsa>=3.1.4 in /home/mahmud/.local/lib/python3.9/site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (4.7.2)

Requirement already satisfied: pyasn1>=0.1.7 in /home/mahmud/.local/lib/python3.9/site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (0.4.8)

Requirement already satisfied: pyasn1-modules>=0.0.5 in /home/mahmud/.local/lib/python3.9/site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (0.2.8)

Requirement already satisfied: httplib2>=0.9.1 in /home/mahmud/.local/lib/python3.9/site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (0.19.1)

Requirement already satisfied: six>=1.6.1 in /usr/lib/python3.9/site-packages (from oauth2client==4.1.3->-r requirements.txt (line 6)) (1.16.0)

Requirement already satisfied: pbr>=1.8 in /home/mahmud/.local/lib/python3.9/site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (5.6.0)

Requirement already satisfied: Tempita>=0.4 in /home/mahmud/.local/lib/python3.9/site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (0.5.2)

Requirement already satisfied: sqlparse in /home/mahmud/.local/lib/python3.9/site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (0.4.1)

Requirement already satisfied: decorator in /home/mahmud/.local/lib/python3.9/site-packages (from sqlalchemy-migrate==0.13.0->-r requirements.txt (line 2)) (5.0.9)

Requirement already satisfied: pyaes in /home/mahmud/.local/lib/python3.9/site-packages (from Telethon==1.23.0->-r requirements.txt (line 3)) (1.6.1)

Requirement already satisfied: pyparsing<3,>=2.4.2 in /usr/lib/python3.9/site-packages (from httplib2>=0.9.1->oauth2client==4.1.3->-r requirements.txt (line 6)) (2.4.7)

Requirement already satisfied: chardet>=3.0.2 in /usr/lib/python3.9/site-packages (from requests>=2.2.1->gspread==3.1.0->-r requirements.txt (line 5)) (4.0.0)

Requirement already satisfied: idna>=2.5 in /usr/lib/python3.9/site-packages (from requests>=2.2.1->gspread==3.1.0->-r requirements.txt (line 5)) (3.2)

Requirement already satisfied: urllib3>=1.21.1 in /usr/lib/python3.9/site-packages (from requests>=2.2.1->gspread==3.1.0->-r requirements.txt (line 5)) (1.26.6)

INFO:root:env_file: informer.env

INFO:telethon.crypto.aes:libssl detected, it will be used for encryption

Traceback (most recent call last):

File "/home/mahmud/Downloads/informer-master/app/bot.py", line 33, in

account_id = sys.argv[1]

IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mahmud/Downloads/informer-master/app/bot.py", line 35, in
raise Exception('informer.py <account_id> - account_id is a required param')
Exception: informer.py <account_id> - account_id is a required param

`

the same problem that i sloved by modify quick_start.sh in line8:
python3 -m venv venv

please insure your python3 version >3.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants