What this PR does / why we need it:
The base_path option doesn't do what is expected, all writes should be done in the passed base_path.
Which issue(s) this PR fixes:
Fixes #833, #1035, #1289
This lets this bot be used in systems where the writes to the FS are limited, and you need all writes go in 1 place.
Special notes for your reviewer:
I'm new to Python so I wasn't able to test this or try it in my project to make sure it 100% works and/or all cases are covered (I did run all pre-commit and tox commands). If the maintainer wants to discard this to give a similar/better solution, it's fine with me.
Hey @tomasAlabes,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
tox
```
Collecting tox-travis
Using cached https://files.pythonhosted.org/packages/b9/62/940f7fdb0d207a90ebf8389b59679ed4c3b4b36357054a30dda6274ee6d0/tox_travis-0.12-py2.py3-none-any.whl
Collecting codecov
Using cached https://files.pythonhosted.org/packages/4d/86/7135a1db448c3bd478a7bbd817bfe3d80200eec7a89d320d574644879528/codecov-2.0.22-py2.py3-none-any.whl
Collecting bumpversion
Using cached https://files.pythonhosted.org/packages/ad/34/49c914829066558ebd405a56647d3ee26856282b8b8c4cd2c0c8de40ff8e/bumpversion-0.5.3-py2.py3-none-any.whl
Collecting pre_commit
Using cached https://files.pythonhosted.org/packages/df/30/22425aa6680370ba06de107e82eb3fc6159f462619b941241e96dd6bd79b/pre_commit-1.21.0-py2.py3-none-any.whl
Collecting tox>=2.0 (from tox-travis)
Using cached https://files.pythonhosted.org/packages/7b/4b/a90a0a89db60fc39fc92e31e7da436177a12c06038973c8b7199f47b47c0/tox-3.14.6-py2.py3-none-any.whl
Collecting coverage (from codecov)
Using cached https://files.pythonhosted.org/packages/89/6f/8ec875c995e26950dcf15f870ef2a79fc6ec227661873e5e408e821d1c85/coverage-5.0.4-cp35-cp35m-manylinux1_x86_64.whl
Collecting requests>=2.7.9 (from codecov)
Using cached https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl
Collecting nodeenv>=0.11.1 (from pre_commit)
Using cached https://files.pythonhosted.org/packages/08/43/86ff33286c83f7b5e8903c32db01fe122c5e8a9d8dc1067dcaa9be54a033/nodeenv-1.3.5-py2.py3-none-any.whl
Collecting aspy.yaml (from pre_commit)
Using cached https://files.pythonhosted.org/packages/99/ce/78be097b00817ccf02deaf481eb7a603eecee6fa216e82fa7848cd265449/aspy.yaml-1.3.0-py2.py3-none-any.whl
Requirement already satisfied: six in /home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages (from pre_commit) (1.12.0)
Collecting cfgv>=2.0.0 (from pre_commit)
Using cached https://files.pythonhosted.org/packages/6e/ff/2e6bcaff26058200717c469a0910da96c89bb00e9cc31b68aa0bfc9b1b0d/cfgv-2.0.1-py2.py3-none-any.whl
Collecting importlib-metadata; python_version < "3.8" (from pre_commit)
Using cached https://files.pythonhosted.org/packages/ad/e4/891bfcaf868ccabc619942f27940c77a8a4b45fd8367098955bb7e152fb1/importlib_metadata-1.6.0-py2.py3-none-any.whl
Collecting pyyaml (from pre_commit)
Requirement already satisfied: virtualenv>=15.2 in /home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages (from pre_commit) (16.2.0)
Collecting toml (from pre_commit)
Using cached https://files.pythonhosted.org/packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl
Collecting importlib-resources; python_version < "3.7" (from pre_commit)
Using cached https://files.pythonhosted.org/packages/8f/36/e678bc02cad98e566fbd7e6711ab2f389fc9adfb1edbb9f553eae41f9f97/importlib_resources-1.4.0-py2.py3-none-any.whl
Collecting identify>=1.0.0 (from pre_commit)
Using cached https://files.pythonhosted.org/packages/e8/3a/3dd6052f9bd0111f8666324b7498d9bbee56bdbbf202e83faa3bf107961d/identify-1.4.14-py2.py3-none-any.whl
Requirement already satisfied: py<2,>=1.4.17 in /home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages (from tox>=2.0->tox-travis) (1.7.0)
Collecting packaging>=14 (from tox>=2.0->tox-travis)
Using cached https://files.pythonhosted.org/packages/62/0a/34641d2bf5c917c96db0ded85ae4da25b6cd922d6b794648d4e7e07c88e5/packaging-20.3-py2.py3-none-any.whl
Collecting pluggy<1,>=0.12.0 (from tox>=2.0->tox-travis)
Using cached https://files.pythonhosted.org/packages/a0/28/85c7aa31b80d150b772fbe4a229487bc6644da9ccb7e427dd8cc60cb8a62/pluggy-0.13.1-py2.py3-none-any.whl
Collecting filelock<4,>=3.0.0 (from tox>=2.0->tox-travis)
Using cached https://files.pythonhosted.org/packages/93/83/71a2ee6158bb9f39a90c0dea1637f81d5eef866e188e1971a1b1ab01a35a/filelock-3.0.12-py3-none-any.whl
Collecting idna<3,>=2.5 (from requests>=2.7.9->codecov)
Using cached https://files.pythonhosted.org/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests>=2.7.9->codecov)
Using cached https://files.pythonhosted.org/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl
Requirement already satisfied: certifi>=2017.4.17 in /home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages (from requests>=2.7.9->codecov) (2018.11.29)
Collecting chardet<4,>=3.0.2 (from requests>=2.7.9->codecov)
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata; python_version < "3.8"->pre_commit)
Using cached https://files.pythonhosted.org/packages/96/0a/67556e9b7782df7118c1f49bdc494da5e5e429c93aa77965f33e81287c8c/zipp-1.2.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=18.0.0 in /home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages (from virtualenv>=15.2->pre_commit) (40.6.3)
Collecting pyparsing>=2.0.2 (from packaging>=14->tox>=2.0->tox-travis)
Downloading https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB)
tox 3.14.6 has requirement six<2,>=1.14.0, but you'll have six 1.12.0 which is incompatible.
Installing collected packages: toml, pyparsing, packaging, zipp, importlib-metadata, pluggy, filelock, tox, tox-travis, coverage, idna, urllib3, chardet, requests, codecov, bumpversion, nodeenv, pyyaml, aspy.yaml, cfgv, importlib-resources, identify, pre-commit
Found existing installation: pluggy 0.8.0
Uninstalling pluggy-0.8.0:
Successfully uninstalled pluggy-0.8.0
Successfully installed aspy.yaml-1.3.0 bumpversion-0.5.3 cfgv-2.0.1 chardet-3.0.4 codecov-2.0.22 coverage-5.0.4 filelock-3.0.12 identify-1.4.14 idna-2.9 importlib-metadata-1.6.0 importlib-resources-1.4.0 nodeenv-1.3.5 packaging-20.3 pluggy-0.13.1 pre-commit-1.21.0 pyparsing-2.4.7 pyyaml-5.3.1 requests-2.23.0 toml-0.10.0 tox-3.14.6 tox-travis-0.12 urllib3-1.25.8 zipp-1.2.0
$ tox
GLOB sdist-make: /home/travis/build/instagrambot/instabot/setup.py
py35 create: /home/travis/build/instagrambot/instabot/.tox/py35
py35 installdeps: pytest, pytest-mock, coverage_pth
py35 inst: /home/travis/build/instagrambot/instabot/.tox/.tmp/package/1/instabot-0.117.0.zip
py35 installed: attrs==19.3.0,certifi==2020.4.5.1,chardet==3.0.4,coverage==5.0.4,coverage-pth==0.0.2,decorator==4.4.2,future==0.18.2,huepy==1.2.1,idna==2.9,imageio==2.8.0,imageio-ffmpeg==0.4.1,importlib-metadata==1.6.0,instabot==0.117.0,mock==3.0.5,more-itertools==8.2.0,moviepy==1.0.2,numpy==1.18.2,packaging==20.3,pathlib2==2.3.5,Pillow==7.1.1,pluggy==0.13.1,proglog==0.1.9,py==1.8.1,pycryptodome==3.9.7,pyparsing==2.4.7,PySocks==1.7.1,pytest==5.4.1,pytest-mock==3.0.0,pytz==2019.3,requests==2.23.0,requests-toolbelt==0.9.1,responses==0.10.12,schedule==0.6.0,six==1.14.0,tqdm==4.45.0,urllib3==1.25.8,wcwidth==0.1.9,zipp==1.2.0
py35 run-test-pre: PYTHONHASHSEED='2198283570'
py35 run-test: commands[0] | py.test
============================= test session starts ==============================
platform linux -- Python 3.5.6, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
cachedir: .tox/py35/.pytest_cache
rootdir: /home/travis/build/instagrambot/instabot
plugins: mock-3.0.0
collected 0 items / 8 errors
==================================== ERRORS ====================================
______________________ ERROR collecting tests/test_bot.py ______________________
.tox/py35/lib/python3.5/site-packages/_pytest/python.py:513: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
.tox/py35/lib/python3.5/site-packages/py/_path/local.py:701: in pyimport
__import__(modname)
:968: in _find_and_load
???
:957: in _find_and_load_unlocked
???
:673: in _load_unlocked
???
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:152: in exec_module
exec(co, module.__dict__)
tests/test_bot.py:5: in
from instabot import Bot
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
E File "/home/travis/build/instagrambot/instabot/instabot/api/api.py", line 236
E return f"#PWD_INSTAGRAM:4:{time}:{base64_encoded_payload.decode()}"
E ^
E SyntaxError: invalid syntax
__________________ ERROR collecting tests/test_bot_comment.py __________________
.tox/py35/lib/python3.5/site-packages/_pytest/python.py:513: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
.tox/py35/lib/python3.5/site-packages/py/_path/local.py:701: in pyimport
__import__(modname)
:968: in _find_and_load
???
:957: in _find_and_load_unlocked
???
:673: in _load_unlocked
???
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:152: in exec_module
exec(co, module.__dict__)
tests/test_bot_comment.py:4: in
from instabot.api.config import API_URL
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
E File "/home/travis/build/instagrambot/instabot/instabot/api/api.py", line 236
E return f"#PWD_INSTAGRAM:4:{time}:{base64_encoded_payload.decode()}"
E ^
E SyntaxError: invalid syntax
__________________ ERROR collecting tests/test_bot_filter.py ___________________
.tox/py35/lib/python3.5/site-packages/_pytest/python.py:513: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
.tox/py35/lib/python3.5/site-packages/py/_path/local.py:701: in pyimport
__import__(modname)
:968: in _find_and_load
???
:957: in _find_and_load_unlocked
???
:673: in _load_unlocked
???
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:152: in exec_module
exec(co, module.__dict__)
tests/test_bot_filter.py:4: in
from instabot.api.config import API_URL
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
E File "/home/travis/build/instagrambot/instabot/instabot/api/api.py", line 236
E return f"#PWD_INSTAGRAM:4:{time}:{base64_encoded_payload.decode()}"
E ^
E SyntaxError: invalid syntax
__________________ ERROR collecting tests/test_bot_follow.py ___________________
.tox/py35/lib/python3.5/site-packages/_pytest/python.py:513: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
.tox/py35/lib/python3.5/site-packages/py/_path/local.py:701: in pyimport
__import__(modname)
:968: in _find_and_load
???
:957: in _find_and_load_unlocked
???
:673: in _load_unlocked
???
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:152: in exec_module
exec(co, module.__dict__)
tests/test_bot_follow.py:4: in
from instabot.api.config import API_URL, SIG_KEY_VERSION
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
E File "/home/travis/build/instagrambot/instabot/instabot/api/api.py", line 236
E return f"#PWD_INSTAGRAM:4:{time}:{base64_encoded_payload.decode()}"
E ^
E SyntaxError: invalid syntax
____________________ ERROR collecting tests/test_bot_get.py ____________________
.tox/py35/lib/python3.5/site-packages/_pytest/python.py:513: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
.tox/py35/lib/python3.5/site-packages/py/_path/local.py:701: in pyimport
__import__(modname)
:968: in _find_and_load
???
:957: in _find_and_load_unlocked
???
:673: in _load_unlocked
???
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:152: in exec_module
exec(co, module.__dict__)
tests/test_bot_get.py:6: in
from instabot import utils
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
E File "/home/travis/build/instagrambot/instabot/instabot/api/api.py", line 236
E return f"#PWD_INSTAGRAM:4:{time}:{base64_encoded_payload.decode()}"
E ^
E SyntaxError: invalid syntax
___________________ ERROR collecting tests/test_bot_like.py ____________________
.tox/py35/lib/python3.5/site-packages/_pytest/python.py:513: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
.tox/py35/lib/python3.5/site-packages/py/_path/local.py:701: in pyimport
__import__(modname)
:968: in _find_and_load
???
:957: in _find_and_load_unlocked
???
:673: in _load_unlocked
???
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:152: in exec_module
exec(co, module.__dict__)
tests/test_bot_like.py:4: in
from instabot.api.config import API_URL, SIG_KEY_VERSION
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
E File "/home/travis/build/instagrambot/instabot/instabot/api/api.py", line 236
E return f"#PWD_INSTAGRAM:4:{time}:{base64_encoded_payload.decode()}"
E ^
E SyntaxError: invalid syntax
__________________ ERROR collecting tests/test_bot_support.py __________________
.tox/py35/lib/python3.5/site-packages/_pytest/python.py:513: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
.tox/py35/lib/python3.5/site-packages/py/_path/local.py:701: in pyimport
__import__(modname)
:968: in _find_and_load
???
:957: in _find_and_load_unlocked
???
:673: in _load_unlocked
???
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:152: in exec_module
exec(co, module.__dict__)
tests/test_bot_support.py:9: in
from .test_bot import TestBot
:968: in _find_and_load
???
:957: in _find_and_load_unlocked
???
:673: in _load_unlocked
???
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:152: in exec_module
exec(co, module.__dict__)
tests/test_bot.py:5: in
from instabot import Bot
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
E File "/home/travis/build/instagrambot/instabot/instabot/api/api.py", line 236
E return f"#PWD_INSTAGRAM:4:{time}:{base64_encoded_payload.decode()}"
E ^
E SyntaxError: invalid syntax
__________________ ERROR collecting tests/test_bot_unlike.py ___________________
.tox/py35/lib/python3.5/site-packages/_pytest/python.py:513: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
.tox/py35/lib/python3.5/site-packages/py/_path/local.py:701: in pyimport
__import__(modname)
:968: in _find_and_load
???
:957: in _find_and_load_unlocked
???
:673: in _load_unlocked
???
.tox/py35/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:152: in exec_module
exec(co, module.__dict__)
tests/test_bot_unlike.py:4: in
from instabot.api.config import API_URL
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
E File "/home/travis/build/instagrambot/instabot/instabot/api/api.py", line 236
E return f"#PWD_INSTAGRAM:4:{time}:{base64_encoded_payload.decode()}"
E ^
E SyntaxError: invalid syntax
=========================== short test summary info ============================
ERROR tests/test_bot.py
ERROR tests/test_bot_comment.py
ERROR tests/test_bot_filter.py
ERROR tests/test_bot_follow.py
ERROR tests/test_bot_get.py
ERROR tests/test_bot_like.py
ERROR tests/test_bot_support.py
ERROR tests/test_bot_unlike.py
!!!!!!!!!!!!!!!!!!! Interrupted: 8 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 8 errors in 1.07s ===============================
ERROR: InvocationError for command /home/travis/build/instagrambot/instabot/.tox/py35/bin/py.test (exited with code 2)
___________________________________ summary ____________________________________
ERROR: py35: commands failed
```
$PRE_COMMIT_CMD
```
The command "$PRE_COMMIT_CMD" exited with 0.
store build cache
changes detected (content changed, file is created, or file is deleted):\n/home/travis/.cache/pip/http/0/1/a/b/3/01ab38ac63d82e82f212dd86d62de883eb0d7de6be8db88f70d14a62
/home/travis/.cache/pip/http/0/6/f/1/e/06f1ef0a7b7e31e90ac863c89f28b0d9efa84f8d7f3b92d1a20afde7
/home/travis/.cache/pip/http/0/b/1/a/2/0b1a295ddb2933f2945084b7d5c87edffc1a6474e567036176acaefd
/home/travis/.cache/pip/http/0/c/2/1/8/0c218d526767991766d9b365a4f3e4449ce3579fd8b0f96a707d5a52
/home/travis/.cache/pip/http/1/1/7/8/5/11785635af4cad9fac431ff54359b146289e2d9ca11827135525732e
/home/travis/.cache/pip/http/1/7/4/8/4/1748400537322d4b75b7b08349ebd15901d53c86035bdeebb09ebcd0
/home/travis/.cache/pip/http/2/d/b/3/c/2db3ca0aac189d864edaa74ee6b1ae0ba1b31b6368bee6fd352c97fb
/home/travis/.cache/pip/http/2/d/c/1/a/2dc1a454abdf8e974808c7a069c7e3eabb865ef213a583b64124e598
/home/travis/.cache/pip/http/2/e/5/b/6/2e5b6ced06806dcc8a76919087cfc0d76c4240a8acb8d34511ad15d6
/home/travis/.cache/pip/http/3/3/9/7/4/33974f84394d9a943f68359da08431dab4af9f86c33962982ea21b5f
/home/travis/.cache/pip/http/3/5/9/6/8/3\n...
changes detected, packing new archive
uploading PR.1424/cache--linux-xenial-c0f72563eb5daa7b22f56108c00cdab8174f9d6e5232146b6a2871774a93e17f--python-3.5.tgz
cache uploaded
Done. Your build exited with 1.
```
tox
```
Collecting tox-travis
Using cached https://files.pythonhosted.org/packages/b9/62/940f7fdb0d207a90ebf8389b59679ed4c3b4b36357054a30dda6274ee6d0/tox_travis-0.12-py2.py3-none-any.whl
Collecting codecov
Using cached https://files.pythonhosted.org/packages/4d/86/7135a1db448c3bd478a7bbd817bfe3d80200eec7a89d320d574644879528/codecov-2.0.22-py2.py3-none-any.whl
Collecting bumpversion
Using cached https://files.pythonhosted.org/packages/ad/34/49c914829066558ebd405a56647d3ee26856282b8b8c4cd2c0c8de40ff8e/bumpversion-0.5.3-py2.py3-none-any.whl
Collecting pre_commit
Using cached https://files.pythonhosted.org/packages/2a/8e/eb48c7a21ddebd7883833b9826d1d19c9843ec074830671b9ccd45f31b0d/pre_commit-2.2.0-py2.py3-none-any.whl
Collecting tox>=2.0 (from tox-travis)
Using cached https://files.pythonhosted.org/packages/7b/4b/a90a0a89db60fc39fc92e31e7da436177a12c06038973c8b7199f47b47c0/tox-3.14.6-py2.py3-none-any.whl
Collecting requests>=2.7.9 (from codecov)
Using cached https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl
Collecting coverage (from codecov)
Using cached https://files.pythonhosted.org/packages/28/dd/0cfaaf04aba427ad5e784a3a5887d3ba7e2fc97f96d49e2f328d705732e7/coverage-5.0.4-cp37-cp37m-manylinux1_x86_64.whl
Collecting nodeenv>=0.11.1 (from pre_commit)
Using cached https://files.pythonhosted.org/packages/08/43/86ff33286c83f7b5e8903c32db01fe122c5e8a9d8dc1067dcaa9be54a033/nodeenv-1.3.5-py2.py3-none-any.whl
Collecting cfgv>=2.0.0 (from pre_commit)
Using cached https://files.pythonhosted.org/packages/6d/82/49913e721128ff16d6b7cf304f513de7bba698583b045dfb9c4b3bb2f467/cfgv-3.1.0-py2.py3-none-any.whl
Collecting pyyaml>=5.1 (from pre_commit)
Collecting importlib-metadata; python_version < "3.8" (from pre_commit)
Using cached https://files.pythonhosted.org/packages/ad/e4/891bfcaf868ccabc619942f27940c77a8a4b45fd8367098955bb7e152fb1/importlib_metadata-1.6.0-py2.py3-none-any.whl
Requirement already satisfied: virtualenv>=15.2 in /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages (from pre_commit) (16.1.0)
Collecting identify>=1.0.0 (from pre_commit)
Using cached https://files.pythonhosted.org/packages/e8/3a/3dd6052f9bd0111f8666324b7498d9bbee56bdbbf202e83faa3bf107961d/identify-1.4.14-py2.py3-none-any.whl
Collecting toml (from pre_commit)
Using cached https://files.pythonhosted.org/packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl
Collecting packaging>=14 (from tox>=2.0->tox-travis)
Using cached https://files.pythonhosted.org/packages/62/0a/34641d2bf5c917c96db0ded85ae4da25b6cd922d6b794648d4e7e07c88e5/packaging-20.3-py2.py3-none-any.whl
Collecting filelock<4,>=3.0.0 (from tox>=2.0->tox-travis)
Using cached https://files.pythonhosted.org/packages/93/83/71a2ee6158bb9f39a90c0dea1637f81d5eef866e188e1971a1b1ab01a35a/filelock-3.0.12-py3-none-any.whl
Collecting six<2,>=1.14.0 (from tox>=2.0->tox-travis)
Using cached https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting pluggy<1,>=0.12.0 (from tox>=2.0->tox-travis)
Using cached https://files.pythonhosted.org/packages/a0/28/85c7aa31b80d150b772fbe4a229487bc6644da9ccb7e427dd8cc60cb8a62/pluggy-0.13.1-py2.py3-none-any.whl
Requirement already satisfied: py<2,>=1.4.17 in /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages (from tox>=2.0->tox-travis) (1.7.0)
Collecting chardet<4,>=3.0.2 (from requests>=2.7.9->codecov)
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting idna<3,>=2.5 (from requests>=2.7.9->codecov)
Using cached https://files.pythonhosted.org/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl
Requirement already satisfied: certifi>=2017.4.17 in /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages (from requests>=2.7.9->codecov) (2018.11.29)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests>=2.7.9->codecov)
Using cached https://files.pythonhosted.org/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata; python_version < "3.8"->pre_commit)
Using cached https://files.pythonhosted.org/packages/b2/34/bfcb43cc0ba81f527bc4f40ef41ba2ff4080e047acb0586b56b3d017ace4/zipp-3.1.0-py3-none-any.whl
Collecting pyparsing>=2.0.2 (from packaging>=14->tox>=2.0->tox-travis)
Downloading https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB)
Installing collected packages: zipp, importlib-metadata, six, pyparsing, packaging, filelock, toml, pluggy, tox, tox-travis, chardet, idna, urllib3, requests, coverage, codecov, bumpversion, nodeenv, cfgv, pyyaml, identify, pre-commit
Found existing installation: six 1.11.0
Uninstalling six-1.11.0:
Successfully uninstalled six-1.11.0
Found existing installation: pluggy 0.8.0
Uninstalling pluggy-0.8.0:
Successfully uninstalled pluggy-0.8.0
Successfully installed bumpversion-0.5.3 cfgv-3.1.0 chardet-3.0.4 codecov-2.0.22 coverage-5.0.4 filelock-3.0.12 identify-1.4.14 idna-2.9 importlib-metadata-1.6.0 nodeenv-1.3.5 packaging-20.3 pluggy-0.13.1 pre-commit-2.2.0 pyparsing-2.4.7 pyyaml-5.3.1 requests-2.23.0 six-1.14.0 toml-0.10.0 tox-3.14.6 tox-travis-0.12 urllib3-1.25.8 zipp-3.1.0
$ tox
GLOB sdist-make: /home/travis/build/instagrambot/instabot/setup.py
py37 create: /home/travis/build/instagrambot/instabot/.tox/py37
py37 installdeps: pytest, pytest-mock, coverage_pth
py37 inst: /home/travis/build/instagrambot/instabot/.tox/.tmp/package/1/instabot-0.117.0.zip
py37 installed: attrs==19.3.0,certifi==2020.4.5.1,chardet==3.0.4,coverage==5.0.4,coverage-pth==0.0.2,decorator==4.4.2,future==0.18.2,huepy==1.2.1,idna==2.9,imageio==2.8.0,imageio-ffmpeg==0.4.1,importlib-metadata==1.6.0,instabot==0.117.0,mock==4.0.2,more-itertools==8.2.0,moviepy==1.0.2,numpy==1.18.2,packaging==20.3,Pillow==7.1.1,pluggy==0.13.1,proglog==0.1.9,py==1.8.1,pycryptodome==3.9.7,pyparsing==2.4.7,PySocks==1.7.1,pytest==5.4.1,pytest-mock==3.0.0,pytz==2019.3,requests==2.23.0,requests-toolbelt==0.9.1,responses==0.10.12,schedule==0.6.0,six==1.14.0,tqdm==4.45.0,urllib3==1.25.8,wcwidth==0.1.9,zipp==3.1.0
py37 run-test-pre: PYTHONHASHSEED='504864487'
py37 run-test: commands[0] | py.test
============================= test session starts ==============================
platform linux -- Python 3.7.1, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
cachedir: .tox/py37/.pytest_cache
rootdir: /home/travis/build/instagrambot/instabot
plugins: mock-3.0.0
collected 0 items / 8 errors
==================================== ERRORS ====================================
______________________ ERROR collecting tests/test_bot.py ______________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot.py:5: in
from instabot import Bot
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
__________________ ERROR collecting tests/test_bot_comment.py __________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_comment.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_comment.py:4: in
from instabot.api.config import API_URL
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
__________________ ERROR collecting tests/test_bot_filter.py ___________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_filter.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_filter.py:4: in
from instabot.api.config import API_URL
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
__________________ ERROR collecting tests/test_bot_follow.py ___________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_follow.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_follow.py:4: in
from instabot.api.config import API_URL, SIG_KEY_VERSION
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
____________________ ERROR collecting tests/test_bot_get.py ____________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_get.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_get.py:6: in
from instabot import utils
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
___________________ ERROR collecting tests/test_bot_like.py ____________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_like.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_like.py:4: in
from instabot.api.config import API_URL, SIG_KEY_VERSION
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
__________________ ERROR collecting tests/test_bot_support.py __________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_support.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_support.py:9: in
from .test_bot import TestBot
tests/test_bot.py:5: in
from instabot import Bot
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
__________________ ERROR collecting tests/test_bot_unlike.py ___________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_unlike.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_unlike.py:4: in
from instabot.api.config import API_URL
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
=========================== short test summary info ============================
ERROR tests/test_bot.py
ERROR tests/test_bot_comment.py
ERROR tests/test_bot_filter.py
ERROR tests/test_bot_follow.py
ERROR tests/test_bot_get.py
ERROR tests/test_bot_like.py
ERROR tests/test_bot_support.py
ERROR tests/test_bot_unlike.py
!!!!!!!!!!!!!!!!!!! Interrupted: 8 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 8 errors in 0.86s ===============================
ERROR: InvocationError for command /home/travis/build/instagrambot/instabot/.tox/py37/bin/py.test (exited with code 2)
___________________________________ summary ____________________________________
ERROR: py37: commands failed
```
$PRE_COMMIT_CMD
```
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/psf/black.
[INFO] Initializing environment for https://gitlab.com/pycqa/flake8.
[INFO] Initializing environment for https://github.com/asottile/pyupgrade.
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/psf/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://gitlab.com/pycqa/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/pyupgrade.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
Fix End of Files.........................................................Passed
Trim Trailing Whitespace.................................................Passed
Check docstring is first.................................................Passed
Check Yaml...............................................................Passed
Debug Statements (Python)................................................Passed
Check python ast.........................................................Passed
black....................................................................Passed
flake8...................................................................Passed
pyupgrade................................................................Passed
```
tox
```
Collecting tox-travis
Using cached tox_travis-0.12-py2.py3-none-any.whl (10 kB)
Collecting codecov
Using cached codecov-2.0.22-py2.py3-none-any.whl (15 kB)
Collecting bumpversion
Using cached bumpversion-0.5.3-py2.py3-none-any.whl (22 kB)
Collecting pre_commit
Using cached pre_commit-2.2.0-py2.py3-none-any.whl (170 kB)
Collecting tox>=2.0
Using cached tox-3.14.6-py2.py3-none-any.whl (81 kB)
Processing /home/travis/.cache/pip/wheels/67/1a/73/9aa6f083d334bc9109f68d506592a7bded66b8823c0f6ae296/coverage-5.0.4-cp39-cp39-linux_x86_64.whl
Collecting requests>=2.7.9
Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
Collecting identify>=1.0.0
Using cached identify-1.4.14-py2.py3-none-any.whl (97 kB)
Collecting nodeenv>=0.11.1
Using cached nodeenv-1.3.5-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: virtualenv>=15.2 in /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages (from pre_commit) (20.0.17)
Collecting toml
Using cached toml-0.10.0-py2.py3-none-any.whl (25 kB)
Collecting cfgv>=2.0.0
Using cached cfgv-3.1.0-py2.py3-none-any.whl (7.3 kB)
Processing /home/travis/.cache/pip/wheels/69/60/81/5cd74b8ee068fbe9e04ca0d53148f28f5c6e2c5b177d5dd622/PyYAML-5.3.1-cp39-cp39-linux_x86_64.whl
Requirement already satisfied: filelock<4,>=3.0.0 in /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages (from tox>=2.0->tox-travis) (3.0.12)
Requirement already satisfied: pluggy<1,>=0.12.0 in /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages (from tox>=2.0->tox-travis) (0.13.1)
Requirement already satisfied: packaging>=14 in /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages (from tox>=2.0->tox-travis) (20.3)
Requirement already satisfied: py<2,>=1.4.17 in /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages (from tox>=2.0->tox-travis) (1.8.1)
Requirement already satisfied: six<2,>=1.14.0 in /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages (from tox>=2.0->tox-travis) (1.14.0)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Using cached urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
Collecting chardet<4,>=3.0.2
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Requirement already satisfied: certifi>=2017.4.17 in /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages (from requests>=2.7.9->codecov) (2020.4.5.1)
Collecting idna<3,>=2.5
Using cached idna-2.9-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: appdirs<2,>=1.4.3 in /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages (from virtualenv>=15.2->pre_commit) (1.4.3)
Requirement already satisfied: distlib<1,>=0.3.0 in /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages (from virtualenv>=15.2->pre_commit) (0.3.0)
Requirement already satisfied: pyparsing>=2.0.2 in /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages (from packaging>=14->tox>=2.0->tox-travis) (2.4.7)
Installing collected packages: toml, tox, tox-travis, coverage, urllib3, chardet, idna, requests, codecov, bumpversion, identify, nodeenv, cfgv, pyyaml, pre-commit
Successfully installed bumpversion-0.5.3 cfgv-3.1.0 chardet-3.0.4 codecov-2.0.22 coverage-5.0.4 identify-1.4.14 idna-2.9 nodeenv-1.3.5 pre-commit-2.2.0 pyyaml-5.3.1 requests-2.23.0 toml-0.10.0 tox-3.14.6 tox-travis-0.12 urllib3-1.25.8
$ tox
Matching undeclared envs is deprecated. Be sure all the envs that Tox should run are declared in the tox config.
GLOB sdist-make: /home/travis/build/instagrambot/instabot/setup.py
py39 create: /home/travis/build/instagrambot/instabot/.tox/py39
py39 installdeps: pytest, pytest-mock
py39 inst: /home/travis/build/instagrambot/instabot/.tox/.tmp/package/1/instabot-0.117.0.zip
py39 installed: attrs==19.3.0,certifi==2020.4.5.1,chardet==3.0.4,decorator==4.4.2,future==0.18.2,huepy==1.2.1,idna==2.9,imageio==2.8.0,imageio-ffmpeg==0.4.1,instabot==0.117.0,mock==4.0.2,more-itertools==8.2.0,moviepy==1.0.2,numpy==1.18.2,packaging==20.3,Pillow==7.1.1,pluggy==0.13.1,proglog==0.1.9,py==1.8.1,pycryptodome==3.9.7,pyparsing==2.4.7,PySocks==1.7.1,pytest==5.4.1,pytest-mock==3.0.0,pytz==2019.3,requests==2.23.0,requests-toolbelt==0.9.1,responses==0.10.12,schedule==0.6.0,six==1.14.0,tqdm==4.45.0,urllib3==1.25.8,wcwidth==0.1.9
py39 run-test-pre: PYTHONHASHSEED='1348652265'
py39 run-test: commands[0] | py.test
============================= test session starts ==============================
platform linux -- Python 3.9.0a5+, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
cachedir: .tox/py39/.pytest_cache
rootdir: /home/travis/build/instagrambot/instabot
plugins: mock-3.0.0
collected 0 items / 8 errors
==================================== ERRORS ====================================
______________________ ERROR collecting tests/test_bot.py ______________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot.py:5: in
from instabot import Bot
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
__________________ ERROR collecting tests/test_bot_comment.py __________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_comment.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_comment.py:4: in
from instabot.api.config import API_URL
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
__________________ ERROR collecting tests/test_bot_filter.py ___________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_filter.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_filter.py:4: in
from instabot.api.config import API_URL
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
__________________ ERROR collecting tests/test_bot_follow.py ___________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_follow.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_follow.py:4: in
from instabot.api.config import API_URL, SIG_KEY_VERSION
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
____________________ ERROR collecting tests/test_bot_get.py ____________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_get.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_get.py:6: in
from instabot import utils
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
___________________ ERROR collecting tests/test_bot_like.py ____________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_like.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_like.py:4: in
from instabot.api.config import API_URL, SIG_KEY_VERSION
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
__________________ ERROR collecting tests/test_bot_support.py __________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_support.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_support.py:9: in
from .test_bot import TestBot
tests/test_bot.py:5: in
from instabot import Bot
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
__________________ ERROR collecting tests/test_bot_unlike.py ___________________
ImportError while importing test module '/home/travis/build/instagrambot/instabot/tests/test_bot_unlike.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_bot_unlike.py:4: in
from instabot.api.config import API_URL
instabot/__init__.py:2: in
from .bot import Bot
instabot/bot/__init__.py:1: in
from .bot import Bot
instabot/bot/bot.py:13: in
from ..api import API
instabot/api/__init__.py:1: in
from .api import API
instabot/api/api.py:21: in
import rsa
E ModuleNotFoundError: No module named 'rsa'
=========================== short test summary info ============================
ERROR tests/test_bot.py
ERROR tests/test_bot_comment.py
ERROR tests/test_bot_filter.py
ERROR tests/test_bot_follow.py
ERROR tests/test_bot_get.py
ERROR tests/test_bot_like.py
ERROR tests/test_bot_support.py
ERROR tests/test_bot_unlike.py
!!!!!!!!!!!!!!!!!!! Interrupted: 8 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 8 errors in 0.90s ===============================
ERROR: InvocationError for command /home/travis/build/instagrambot/instabot/.tox/py39/bin/py.test (exited with code 2)
___________________________________ summary ____________________________________
ERROR: py39: commands failed
```
$PRE_COMMIT_CMD
```
The command "$PRE_COMMIT_CMD" exited with 0.
store build cache
changes detected (content changed, file is created, or file is deleted):\n/home/travis/.cache/pip/http/0/1/a/b/3/01ab38ac63d82e82f212dd86d62de883eb0d7de6be8db88f70d14a62
/home/travis/.cache/pip/http/0/6/f/1/e/06f1ef0a7b7e31e90ac863c89f28b0d9efa84f8d7f3b92d1a20afde7
/home/travis/.cache/pip/http/0/b/1/a/2/0b1a295ddb2933f2945084b7d5c87edffc1a6474e567036176acaefd
/home/travis/.cache/pip/http/0/c/2/1/8/0c218d526767991766d9b365a4f3e4449ce3579fd8b0f96a707d5a52
/home/travis/.cache/pip/http/1/1/7/8/5/11785635af4cad9fac431ff54359b146289e2d9ca11827135525732e
/home/travis/.cache/pip/http/1/7/4/8/4/1748400537322d4b75b7b08349ebd15901d53c86035bdeebb09ebcd0
/home/travis/.cache/pip/http/2/d/b/3/c/2db3ca0aac189d864edaa74ee6b1ae0ba1b31b6368bee6fd352c97fb
/home/travis/.cache/pip/http/2/d/c/1/a/2dc1a454abdf8e974808c7a069c7e3eabb865ef213a583b64124e598
/home/travis/.cache/pip/http/3/3/9/7/4/33974f84394d9a943f68359da08431dab4af9f86c33962982ea21b5f
/home/travis/.cache/pip/http/3/5/9/6/8/3596862d816965b0c8fa5f06da895dbdc75cbc44a9f3e31272d52b2f
/home/travis/.cache/pip/http/3/8/6/0/e/3\n...
changes detected, packing new archive
uploading PR.1424/cache--linux-xenial-c0f72563eb5daa7b22f56108c00cdab8174f9d6e5232146b6a2871774a93e17f--python-nightly.tgz
cache uploaded
Done. Your build exited with 1.
```
What this PR does / why we need it: The
base_path
option doesn't do what is expected, all writes should be done in the passedbase_path
.Which issue(s) this PR fixes:
Fixes #833, #1035, #1289
This lets this bot be used in systems where the writes to the FS are limited, and you need all writes go in 1 place.
Special notes for your reviewer: I'm new to Python so I wasn't able to test this or try it in my project to make sure it 100% works and/or all cases are covered (I did run all
pre-commit
andtox
commands). If the maintainer wants to discard this to give a similar/better solution, it's fine with me.Does this PR introduce a user-facing change?:
Additional documentation e.g. usage docs, etc.: