GramAddict / bot

Completely free and open-source human-like Instagram bot. Powered by UIAutomator2 and compatible with basically any Android device 5.0+ that can run Instagram - real or emulated.
https://docs.gramaddict.org
MIT License
1.14k stars 180 forks source link

it doesn't create config file #204

Closed slim-python closed 3 years ago

slim-python commented 3 years ago

What happened: when i run python3 -m gitdir https://github.com/GramAddict/bot/tree/master/config-examples i don't get any config file, how do i run this with a config file? image

What you expected to happen: i though it would create a config file for me where i would enter my details and run it

How to reproduce it (as minimally and precisely as possible): after running run.py in virtual env, i get this information [06/19 04:37:03] INFO | Do you want to update/create your config-examples folder in local? Do the following: pip3 install --user gitdir (only the first time) python3 -m gitdir https://github.com/GramAddict/bot/tree/master/config-examples (python on Windows)

but when i run the gitdir file i get error saying C:\Users\heyya\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe: No module named gitdir

` Anything else we need to know?:

Environment:

Relevant Logs:




*Note: if you have a crash log, please do not attach the archive here as this is not a secure place to upload the sensitive data inside. Please open a ticket in Discord in #lobby and provide the ticket ID here.

mastrolube commented 3 years ago

Hello, I wrote that as an easy solution for lazy people. You can still download the folder from the github page as usual.

By the way if I look at your traceback I can see that the python you called for using gitdir is not the one inside the venv. Install the package outside the venv then or find out how to use the one inside the venv, which has the gitdir package.

slim-python commented 3 years ago

which folder do i have to download exactly? there is no mention of any folder in the docs also gitdir is installed in my local machine

slim-python commented 3 years ago

@mastrolube by the way i have installed gramaddict both locally and in virtualenv but still i'm getting this error image

mastrolube commented 3 years ago

follow this:

C:\Users\dedil\Desktop>python -m venv .venv

C:\Users\dedil\Desktop>cd .venv/Scripts

C:\Users\dedil\Desktop\.venv\Scripts>activate.bat

(.venv) C:\Users\dedil\Desktop\.venv\Scripts>cd..

(.venv) C:\Users\dedil\Desktop\.venv>cd..

(.venv) C:\Users\dedil\Desktop>mkdir gramaddict

(.venv) C:\Users\dedil\Desktop>cd gramaddict

(.venv) C:\Users\dedil\Desktop\gramaddict>pip install gramaddict gitdir

when done:

(.venv) C:\Users\dedil\Desktop\gramaddict>python -m gitdir https://github.com/GramAddict/bot/tree/master/config-examples
Downloaded: all-parameters.yml
Downloaded: blacklist.txt
Downloaded: comments_list.txt
Downloaded: filters.yml
Downloaded: pm_list.txt
Downloaded: telegram.yml
Downloaded: whitelist.txt
✔ Download complete

as you can see with tree /f all the files are there now:

(.venv) C:\Users\dedil\Desktop\gramaddict>tree /f

C:.
└───config-examples
        all-parameters.yml
        blacklist.txt
        comments_list.txt
        filters.yml
        pm_list.txt
        telegram.yml
        whitelist.txt

now..

(.venv) C:\Users\dedil\Desktop\gramaddict>mkdir accounts\yourusernamehere
(.venv) C:\Users\dedil\Desktop\gramaddict>xcopy config-examples accounts\yourusernamehere
config-examples\all-parameters.yml
config-examples\blacklist.txt
config-examples\comments_list.txt
config-examples\filters.yml
config-examples\pm_list.txt
config-examples\telegram.yml
config-examples\whitelist.txt
7 File copiati
(.venv) C:\Users\dedil\Desktop\gramaddict>python -m gitdir https://github.com/GramAddict/bot/tree/master/run.py
Downloaded: run.py
✔ Download complete
(.venv) C:\Users\dedil\Desktop\gramaddict>cd accounts/yourusernamehere

(.venv) C:\Users\dedil\Desktop\gramaddict\accounts\yourusernamehere>ren all-parameters.yml config.yml

EDIT THE CONFIG.YML CORRECTLY AS YOU CAN SEE IN DOCS.

(.venv) C:\Users\dedil\Desktop\gramaddict\accounts\yourusernamehere>cd..

(.venv) C:\Users\dedil\Desktop\gramaddict\accounts>cd..

THIS IS THE SITUATION AT THIS POINT.

(.venv) C:\Users\dedil\Desktop\gramaddict>tree /f
C:.
│   run.py
│
├───accounts
│   └───yourusernamehere
│           blacklist.txt
│           comments_list.txt
│           config.yml
│           filters.yml
│           pm_list.txt
│           telegram.yml
│           whitelist.txt
│
└───config-examples
        all-parameters.yml
        blacklist.txt
        comments_list.txt
        filters.yml
        pm_list.txt
        telegram.yml
        whitelist.txt

Now you can run the bot.

(.venv) C:\Users\dedil\Desktop\gramaddict>python -m run --config accounts/yourusernamehere/config.yml