ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.69k stars 1.47k forks source link

Add missing user_tags references #1437

Closed mastizada closed 4 years ago

mastizada commented 4 years ago

Add tags support for album uploading, it was deleted due to merge conflicts in previous PR (sorry).

TravisBuddy commented 4 years ago

Travis tests have failed

Hey @mastizada, 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.

2nd Build

View build log

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 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/f6/33/10fd30e91f5daf9b0712dff47031e7ba29537e104585aef2a3f4b59665ea/coverage-5.1-cp35-cp35m-manylinux1_x86_64.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 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 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: six in /home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages (from pre_commit) (1.12.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 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 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 Collecting pyyaml (from pre_commit) Collecting toml (from pre_commit) Using cached https://files.pythonhosted.org/packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl 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 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 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 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 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/e1/e5/df302e8017440f111c11cc41a6b432838672f5a70aa29227bf58149dc72f/urllib3-1.25.9-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.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.4; python_version < "3.8" (from importlib-resources; python_version < "3.7"->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) Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl 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: pyparsing, packaging, filelock, toml, zipp, importlib-metadata, pluggy, tox, tox-travis, urllib3, idna, chardet, requests, coverage, codecov, bumpversion, importlib-resources, nodeenv, identify, cfgv, pyyaml, aspy.yaml, 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.1 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.9 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.1,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.9,wcwidth==0.1.9,zipp==1.2.0 py35 run-test-pre: PYTHONHASHSEED='283661974' 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 248 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 248 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 248 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 248 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 248 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 248 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 248 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 248 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.12s =============================== 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/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/3596862d816965b0c8fa5f06da895dbdc75cbc44a9f3e31272d52b2f /home/travis/.cache/pip/http/3/8/6/0/e/3\n... changes detected, packing new archive uploading PR.1437/cache--linux-xenial-c0f72563eb5daa7b22f56108c00cdab8174f9d6e5232146b6a2871774a93e17f--python-3.5.tgz cache uploaded Done. Your build exited with 1. ```

5th Build

View build log

tox ``` DEPRECATION: A future version of pip will drop support for Python 2.7. 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 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) 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 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 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 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 pyyaml (from pre_commit) Requirement already satisfied: six in /home/travis/virtualenv/pypy2.7-7.1.1/site-packages (from pre_commit) (1.12.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 Requirement already satisfied: virtualenv>=15.2 in /home/travis/virtualenv/pypy2.7-7.1.1/site-packages (from pre_commit) (16.4.3) Collecting futures; python_version < "3.2" (from pre_commit) Using cached https://files.pythonhosted.org/packages/d8/a6/f46ae3f1da0cd4361c344888f59ec2f5785e69c872e175a748ef6071cdb5/futures-3.3.0-py2-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 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 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 Requirement already satisfied: py<2,>=1.4.17 in /home/travis/virtualenv/pypy2.7-7.1.1/site-packages (from tox>=2.0->tox-travis) (1.8.0) Collecting filelock<4,>=3.0.0 (from tox>=2.0->tox-travis) 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 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/e1/e5/df302e8017440f111c11cc41a6b432838672f5a70aa29227bf58149dc72f/urllib3-1.25.9-py2.py3-none-any.whl Requirement already satisfied: certifi>=2017.4.17 in /home/travis/virtualenv/pypy2.7-7.1.1/site-packages (from requests>=2.7.9->codecov) (2019.3.9) Requirement already satisfied: pathlib2; python_version < "3" in /home/travis/virtualenv/pypy2.7-7.1.1/site-packages (from importlib-resources; python_version < "3.7"->pre_commit) (2.3.3) Collecting contextlib2; python_version < "3" (from importlib-resources; python_version < "3.7"->pre_commit) Using cached https://files.pythonhosted.org/packages/85/60/370352f7ef6aa96c52fb001831622f50f923c1d575427d021b8ab3311236/contextlib2-0.6.0.post1-py2.py3-none-any.whl Collecting singledispatch; python_version < "3.4" (from importlib-resources; python_version < "3.7"->pre_commit) Using cached https://files.pythonhosted.org/packages/c5/10/369f50bcd4621b263927b0a1519987a04383d4a98fb10438042ad410cf88/singledispatch-3.4.0.3-py2.py3-none-any.whl Requirement already satisfied: typing; python_version < "3.5" in /home/travis/virtualenv/pypy2.7-7.1.1/site-packages (from importlib-resources; python_version < "3.7"->pre_commit) (3.6.6) Collecting zipp>=0.4; python_version < "3.8" (from importlib-resources; python_version < "3.7"->pre_commit) Using cached https://files.pythonhosted.org/packages/96/0a/67556e9b7782df7118c1f49bdc494da5e5e429c93aa77965f33e81287c8c/zipp-1.2.0-py2.py3-none-any.whl Collecting configparser>=3.5; python_version < "3" (from importlib-metadata; python_version < "3.8"->pre_commit) Using cached https://files.pythonhosted.org/packages/7a/2a/95ed0501cf5d8709490b1d3a3f9b5cf340da6c433f896bbe9ce08dbe6785/configparser-4.0.2-py2.py3-none-any.whl Collecting pyparsing>=2.0.2 (from packaging>=14->tox>=2.0->tox-travis) Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl Requirement already satisfied: scandir; python_version < "3.5" in /home/travis/virtualenv/pypy2.7-7.1.1/site-packages (from pathlib2; python_version < "3"->importlib-resources; python_version < "3.7"->pre_commit) (1.10.0) 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: pyparsing, packaging, contextlib2, zipp, configparser, importlib-metadata, pluggy, toml, filelock, tox, tox-travis, chardet, idna, urllib3, requests, coverage, codecov, bumpversion, pyyaml, aspy.yaml, cfgv, identify, nodeenv, futures, singledispatch, importlib-resources, pre-commit Found existing installation: pluggy 0.9.0 Uninstalling pluggy-0.9.0: Successfully uninstalled pluggy-0.9.0 Successfully installed aspy.yaml-1.3.0 bumpversion-0.5.3 cfgv-2.0.1 chardet-3.0.4 codecov-2.0.22 configparser-4.0.2 contextlib2-0.6.0.post1 coverage-5.1 filelock-3.0.12 futures-3.3.0 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 singledispatch-3.4.0.3 toml-0.10.0 tox-3.14.6 tox-travis-0.12 urllib3-1.25.9 zipp-1.2.0 $ tox GLOB sdist-make: /home/travis/build/instagrambot/instabot/setup.py pypy create: /home/travis/build/instagrambot/instabot/.tox/pypy pypy installdeps: pytest, pytest-mock pypy inst: /home/travis/build/instagrambot/instabot/.tox/.tmp/package/1/instabot-0.117.0.zip pypy installed: DEPRECATION: A future version of pip will drop support for Python 2.7.,atomicwrites==1.3.0,attrs==19.3.0,certifi==2020.4.5.1,cffi==1.12.3,chardet==3.0.4,configparser==4.0.2,contextlib2==0.6.0.post1,cookies==2.2.1,decorator==4.4.2,enum34==1.1.10,funcsigs==1.0.2,future==0.18.2,futures==3.3.0,greenlet==0.4.13,huepy==1.2.1,idna==2.9,imageio==2.4.1,importlib-metadata==1.6.0,instabot==0.117.0,mock==3.0.5,more-itertools==5.0.0,moviepy==1.0.2,numpy==1.16.6,packaging==20.3,pathlib2==2.3.5,Pillow==6.2.2,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==4.6.9,pytest-mock==2.0.0,pytz==2019.3,readline==6.2.4.1,requests==2.23.0,requests-toolbelt==0.9.1,responses==0.10.12,scandir==1.10.0,schedule==0.6.0,six==1.14.0,tqdm==4.45.0,urllib3==1.25.9,wcwidth==0.1.9,zipp==1.2.0 pypy run-test-pre: PYTHONHASHSEED='115705006' pypy run-test: commands[0] | py.test ============================= test session starts ============================== platform linux2 -- Python 2.7.13[pypy-7.1.1-final], pytest-4.6.9, py-1.8.1, pluggy-0.13.1 cachedir: .tox/pypy/.pytest_cache rootdir: /home/travis/build/instagrambot/instabot plugins: mock-2.0.0 collected 0 items / 8 errors ==================================== ERRORS ==================================== ______________________ ERROR collecting tests/test_bot.py ______________________ .tox/pypy/site-packages/_pytest/python.py:507: in _importtestmodule mod = self.fspath.pyimport(ensuresyspath=importmode) .tox/pypy/site-packages/py/_path/local.py:701: in pyimport __import__(modname) .tox/pypy/site-packages/_pytest/assertion/rewrite.py:304: in load_module exec(co, mod.__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 248 E return f"#PWD_INSTAGRAM:4:{time}:{base64_encoded_payload.decode()}" E ^ E SyntaxError: invalid syntax __________________ 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:1: in from . import utils E ImportError: cannot import name 'utils' __________________ 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:1: in from . import utils E ImportError: cannot import name 'utils' __________________ 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:1: in from . import utils E ImportError: cannot import name 'utils' ____________________ 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:1: in from . import utils E ImportError: cannot import name 'utils' ___________________ 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:1: in from . import utils E ImportError: cannot import name 'utils' __________________ 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:1: in from . import utils E ImportError: cannot import name 'utils' __________________ 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:1: in from . import utils E ImportError: cannot import name 'utils' !!!!!!!!!!!!!!!!!!! Interrupted: 8 errors during collection !!!!!!!!!!!!!!!!!!!! =========================== 8 error in 1.32 seconds ============================ ERROR: InvocationError for command /home/travis/build/instagrambot/instabot/.tox/pypy/bin/py.test (exited with code 2) ___________________________________ summary ____________________________________ ERROR: pypy: 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/0/1/6/d/0016de31c26ded33d8e56ac3e087423067f61cd2b48883ec4a6c64e7 /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/4/e/d/e/14ede581a6ca683ee2cab21d17000fefbeedcba1444c015468f2dfd1 /home/travis/.cache/pip/http/1/7/4/8/4/1748400537322d4b75b7b08349ebd15901d53c86035bdeebb09ebcd0 /home/travis/.cache/pip/http/2/7/6/a/f/276afb3562e1c876e38049575efab426f303a0e9e173678a91a4a53b /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/2\n... changes detected, packing new archive uploading PR.1437/cache--linux-xenial-c0f72563eb5daa7b22f56108c00cdab8174f9d6e5232146b6a2871774a93e17f--python-pypy.tgz cache uploaded Done. Your build exited with 1. ```

7th Build

View build log

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 coverage (from codecov) Using cached https://files.pythonhosted.org/packages/0d/85/b055f9c1a210f0c7e16e675b286ce4e16d80ba4c4e566de143e8d58dd7f2/coverage-5.1-cp37-cp37m-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 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 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 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 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 pyyaml>=5.1 (from pre_commit) 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 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 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 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 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 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/e1/e5/df302e8017440f111c11cc41a6b432838672f5a70aa29227bf58149dc72f/urllib3-1.25.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 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 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) Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl Installing collected packages: zipp, importlib-metadata, pluggy, six, filelock, pyparsing, packaging, toml, tox, tox-travis, coverage, urllib3, chardet, idna, requests, codecov, bumpversion, identify, cfgv, nodeenv, pyyaml, pre-commit Found existing installation: pluggy 0.8.0 Uninstalling pluggy-0.8.0: Successfully uninstalled pluggy-0.8.0 Found existing installation: six 1.11.0 Uninstalling six-1.11.0: Successfully uninstalled six-1.11.0 Successfully installed bumpversion-0.5.3 cfgv-3.1.0 chardet-3.0.4 codecov-2.0.22 coverage-5.1 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.9 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.1,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.9,wcwidth==0.1.9,zipp==3.1.0 py37 run-test-pre: PYTHONHASHSEED='4020530072' 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.87s =============================== 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....................................................................Failed - hook id: black - files were modified by this hook reformatted /home/travis/build/instagrambot/instabot/examples/photos/upload_photos.py reformatted /home/travis/build/instagrambot/instabot/instabot/api/api_photo.py reformatted /home/travis/build/instagrambot/instabot/instabot/api/devices.py reformatted /home/travis/build/instagrambot/instabot/instabot/bot/bot.py reformatted /home/travis/build/instagrambot/instabot/instabot/api/api.py reformatted /home/travis/build/instagrambot/instabot/instabot/bot/bot_photo.py All done! ✨ 🍰 ✨ 6 files reformatted, 107 files left unchanged. flake8...................................................................Failed - hook id: flake8 - exit code: 1 instabot/api/api_photo.py:9:1: F401 'random' imported but unused pyupgrade................................................................Passed pre-commit hook(s) made changes. If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. To run `pre-commit` as part of git workflow, use `pre-commit install`. All changes made by hooks: diff --git a/examples/photos/upload_photos.py b/examples/photos/upload_photos.py index 9aa63f8..7317858 100644 --- a/examples/photos/upload_photos.py +++ b/examples/photos/upload_photos.py @@ -18,7 +18,7 @@ parser.add_argument("-p", type=str, help="password") parser.add_argument("-proxy", type=str, help="proxy") parser.add_argument("-photo", type=str, help="photo name") parser.add_argument("-caption", type=str, help="caption for photo") -parser.add_argument('-tag', action='append', help='taged user id') +parser.add_argument("-tag", action="append", help="taged user id") args = parser.parse_args() @@ -81,12 +81,12 @@ try: ) # prepare tagged user_id - users_to_tag = [{'user_id': u, 'x': 0.5, 'y': 0.5} for u in args.tag] + users_to_tag = [{"user_id": u, "x": 0.5, "y": 0.5} for u in args.tag] if not bot.upload_photo( os.path.dirname(os.path.realpath(__file__)) + "/media/" + pic, caption=caption, - user_tags=users_to_tag + user_tags=users_to_tag, ): bot.logger.error("Something went wrong...") break diff --git a/instabot/api/api.py b/instabot/api/api.py index fd46ce3..8e824de 100644 --- a/instabot/api/api.py +++ b/instabot/api/api.py @@ -778,7 +778,7 @@ class API(object): force_resize=False, options={}, user_tags=None, - is_sidecar=False + is_sidecar=False, ): """Upload photo to Instagram @@ -803,7 +803,15 @@ class API(object): @return Boolean """ return upload_photo( - self, photo, caption, upload_id, from_video, force_resize, options, user_tags, is_sidecar + self, + photo, + caption, + upload_id, + from_video, + force_resize, + options, + user_tags, + is_sidecar, ) def upload_album( @@ -814,7 +822,7 @@ class API(object): from_video=False, force_resize=False, options={}, - user_tags=None + user_tags=None, ): """Upload album to Instagram @@ -835,13 +843,22 @@ class API(object): @return Boolean """ return upload_album( - self, photos, caption, upload_id, from_video, force_resize, options, user_tags + self, + photos, + caption, + upload_id, + from_video, + force_resize, + options, + user_tags, ) def download_photo(self, media_id, filename, media=False, folder="photos"): return download_photo(self, media_id, filename, media, folder) - def configure_photo(self, upload_id, photo, caption="", user_tags=None, is_sidecar=False): + def configure_photo( + self, upload_id, photo, caption="", user_tags=None, is_sidecar=False + ): return configure_photo(self, upload_id, photo, caption, user_tags, is_sidecar) # ====== STORY METHODS ====== # diff --git a/instabot/api/api_photo.py b/instabot/api/api_photo.py index 57588a2..d92e19d 100644 --- a/instabot/api/api_photo.py +++ b/instabot/api/api_photo.py @@ -78,23 +78,25 @@ def compatible_aspect_ratio(size): return min_ratio <= ratio <= max_ratio -def configure_photo(self, upload_id, photo, caption="", user_tags=None, is_sidecar=False): +def configure_photo( + self, upload_id, photo, caption="", user_tags=None, is_sidecar=False +): width, height = get_image_size(photo) data = { - "media_folder": "Instagram", - "source_type": 4, - "caption": caption, - "upload_id": upload_id, - "device": self.device_settings, - "edits": { - "crop_original_size": [width * 1.0, height * 1.0], - "crop_center": [0.0, 0.0], - "crop_zoom": 1.0, - }, - "extra": {"source_width": width, "source_height": height}, - } + "media_folder": "Instagram", + "source_type": 4, + "caption": caption, + "upload_id": upload_id, + "device": self.device_settings, + "edits": { + "crop_original_size": [width * 1.0, height * 1.0], + "crop_center": [0.0, 0.0], + "crop_zoom": 1.0, + }, + "extra": {"source_width": width, "source_height": height}, + } if user_tags: - data['usertags'] = user_tags + data["usertags"] = user_tags if is_sidecar: return data @@ -112,7 +114,7 @@ def upload_photo( force_resize=False, options={}, user_tags=None, - is_sidecar=False + is_sidecar=False, ): """Upload photo to Instagram @@ -139,8 +141,13 @@ def upload_photo( if user_tags is None: usertags = None else: - tags = {'in': [{'user_id': user['user_id'], 'position': [user['x'], user['y']]} for user in user_tags]} - usertags = json.dumps(tags, separators=(',', ':')) + tags = { + "in": [ + {"user_id": user["user_id"], "position": [user["x"], user["y"]]} + for user in user_tags + ] + } + usertags = json.dumps(tags, separators=(",", ":")) options = dict({"configure_timeout": 15, "rename": True}, **(options or {})) if upload_id is None: @@ -197,7 +204,7 @@ def upload_photo( ) return False # update the upload id - upload_id = int(response.json()['upload_id']) + upload_id = int(response.json()["upload_id"]) if from_video: # Not configure when from_video is True return True @@ -207,11 +214,15 @@ def upload_photo( if configure_timeout: time.sleep(configure_timeout) if is_sidecar: - configuration = self.configure_photo(upload_id, photo, caption, usertags, is_sidecar=True) + configuration = self.configure_photo( + upload_id, photo, caption, usertags, is_sidecar=True + ) if options.get("rename"): os.rename(photo, "{fname}.REMOVE_ME".format(fname=photo)) return configuration - elif self.configure_photo(upload_id, photo, caption, usertags, is_sidecar=False): + elif self.configure_photo( + upload_id, photo, caption, usertags, is_sidecar=False + ): media = self.last_json.get("media") self.expose() if options.get("rename"): @@ -228,7 +239,7 @@ def upload_album( from_video=False, force_resize=False, options={}, - user_tags=None + user_tags=None, ): """Upload album to Instagram @@ -252,18 +263,31 @@ def upload_album( return False photo_metas = [] for photo in photos: - result = self.upload_photo(photo, caption, None, from_video, force_resize, options, user_tags, is_sidecar=True) + result = self.upload_photo( + photo, + caption, + None, + from_video, + force_resize, + options, + user_tags, + is_sidecar=True, + ) if not result: - self.logger.error("Could not upload photo {photo} for the album!".format(photo=photo)) + self.logger.error( + "Could not upload photo {photo} for the album!".format(photo=photo) + ) return False photo_metas.append(result) if upload_id is None: upload_id = int(time.time() * 1000) - data = self.json_data({ - "caption": caption, - "client_sidecar_id": upload_id, - "children_metadata": photo_metas - }) + data = self.json_data( + { + "caption": caption, + "client_sidecar_id": upload_id, + "children_metadata": photo_metas, + } + ) return self.send_request("media/configure_sidecar/?", post=data) diff --git a/instabot/api/devices.py b/instabot/api/devices.py index c415262..09203ba 100644 --- a/instabot/api/devices.py +++ b/instabot/api/devices.py @@ -1,4 +1,5 @@ import random + APP_VERSION = "130.0.0.31.121" DEVICES = { "one_plus_7": { diff --git a/instabot/bot/bot.py b/instabot/bot/bot.py index 46071c2..458c74c 100644 --- a/instabot/bot/bot.py +++ b/instabot/bot/bot.py @@ -785,7 +785,15 @@ class Bot(object): return download_photos(self, medias, folder, save_description) def upload_photo( - self, photo, caption=None, upload_id=None, from_video=False, options={}, user_tags=None, is_sidecar=False): + self, + photo, + caption=None, + upload_id=None, + from_video=False, + options={}, + user_tags=None, + is_sidecar=False, + ): """Upload photo to Instagram @param photo Path to photo file (String) @param caption Media description (String) @@ -807,10 +815,18 @@ class Bot(object): @return Object with state of uploading to Instagram (or False) """ - return upload_photo(self, photo, caption, upload_id, from_video, options, user_tags, is_sidecar) + return upload_photo( + self, photo, caption, upload_id, from_video, options, user_tags, is_sidecar + ) def upload_album( - self, photos, caption=None, upload_id=None, from_video=False, options={}, user_tags=None + self, + photos, + caption=None, + upload_id=None, + from_video=False, + options={}, + user_tags=None, ): """Upload album to Instagram @param photos List of paths to photo files (List of strings) @@ -829,7 +845,9 @@ class Bot(object): @return Object with state of uploading to Instagram (or False) """ - return upload_album(self, photos, caption, upload_id, from_video, options, user_tags) + return upload_album( + self, photos, caption, upload_id, from_video, options, user_tags + ) # video def upload_video(self, video, caption="", thumbnail=None, options={}): diff --git a/instabot/bot/bot_photo.py b/instabot/bot/bot_photo.py index 8e59621..72e1d21 100644 --- a/instabot/bot/bot_photo.py +++ b/instabot/bot/bot_photo.py @@ -5,7 +5,14 @@ from tqdm import tqdm def upload_photo( - self, photo, caption=None, upload_id=None, from_video=False, options={}, user_tags=None, is_sidecar=False + self, + photo, + caption=None, + upload_id=None, + from_video=False, + options={}, + user_tags=None, + is_sidecar=False, ): """Upload photo to Instagram @@ -29,7 +36,13 @@ def upload_photo( """ self.small_delay() result = self.api.upload_photo( - photo, caption, upload_id, from_video, options=options, user_tags=user_tags, is_sidecar=is_sidecar + photo, + caption, + upload_id, + from_video, + options=options, + user_tags=user_tags, + is_sidecar=is_sidecar, ) if not result: self.logger.info("Photo '{}' is not uploaded.".format(photo)) @@ -39,7 +52,13 @@ def upload_photo( def upload_album( - self, photos, caption=None, upload_id=None, from_video=False, options={}, user_tags=None + self, + photos, + caption=None, + upload_id=None, + from_video=False, + options={}, + user_tags=None, ): """Upload album to Instagram ```

9th Build

View build log

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/5d/0a/61/61711b279bcfd8a6436c2e733904a8f5e163c7109cd4bad357/coverage-5.1-cp39-cp39-linux_x86_64.whl Collecting requests>=2.7.9 Using cached requests-2.23.0-py2.py3-none-any.whl (58 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) Processing /home/travis/.cache/pip/wheels/69/60/81/5cd74b8ee068fbe9e04ca0d53148f28f5c6e2c5b177d5dd622/PyYAML-5.3.1-cp39-cp39-linux_x86_64.whl Collecting cfgv>=2.0.0 Using cached cfgv-3.1.0-py2.py3-none-any.whl (7.3 kB) Collecting nodeenv>=0.11.1 Using cached nodeenv-1.3.5-py2.py3-none-any.whl (21 kB) Collecting identify>=1.0.0 Using cached identify-1.4.14-py2.py3-none-any.whl (97 kB) 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: 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: 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: 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: 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) 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 urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 Using cached urllib3-1.25.9-py2.py3-none-any.whl (126 kB) Collecting chardet<4,>=3.0.2 Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB) Collecting idna<3,>=2.5 Using cached idna-2.9-py2.py3-none-any.whl (58 kB) 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: 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: 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, pyyaml, cfgv, nodeenv, identify, pre-commit Successfully installed bumpversion-0.5.3 cfgv-3.1.0 chardet-3.0.4 codecov-2.0.22 coverage-5.1 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.9 $ 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.9,wcwidth==0.1.9 py39 run-test-pre: PYTHONHASHSEED='1430827744' 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.83s =============================== 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/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/3860e4de9ae53c79d2fd61419e9049df314ccc8b640782c02c6e2e2d /home/travis/.cache/pip/http/4/4/e/5/b/4\n... changes detected, packing new archive uploading PR.1437/cache--linux-xenial-c0f72563eb5daa7b22f56108c00cdab8174f9d6e5232146b6a2871774a93e17f--python-nightly.tgz cache uploaded Done. Your build exited with 1. ```
TravisBuddy Request Identifier: 4119a2b0-808b-11ea-a03b-f348d6d5339b
bruvv commented 4 years ago

do not pay mind the travis errors I will try and fix them soon. thanks again for your PR.