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.71k stars 1.47k forks source link

error install on mac #1178

Closed lgwjames closed 4 years ago

lgwjames commented 4 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python -V here:

Python 2.7.16

Code:

# Example code that will produce the error reported
from instabot import Bot

bot = Bot()
bot.login(username="user", password="pass")
followers = bot.get_user_followers(bot.user_id)

Error/Debug Log:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero

Describe your issue

looking to reuse the code and get this when installing

Collecting funcsigs>=1; python_version < "3.3" Downloading https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl Installing collected packages: pytz, requests, six, pysocks, funcsigs, mock, cookies, responses, instabot Found existing installation: pytz 2013.7 Uninstalling pytz-2013.7: ERROR: Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system: '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pytz/zoneinfo/Indian/Mauritius'

scretr commented 4 years ago

Ig maybe try sudo? How are u installing instabot

lgwjames commented 4 years ago

already tried sudo installing as per guide as well as manually

sudo pip install -U instabot this works but says on a old

You are using pip version 9.0.1, however version 19.3.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.

then when i run

Quad-Core$ sudo git clone https://github.com/instagrambot/instabot --recursive

dyld: Symbol not found: _OBJCIVAR$_NSFont._fFlags Referenced from: /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/../../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit in /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/../../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly! git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch

scretr commented 4 years ago

So do pip install --upgrade pip

lgwjames commented 4 years ago

sudo pip install --upgrade pip Traceback (most recent call last): File "/usr/local/bin/pip", line 11, in load_entry_point('pip==9.0.1', 'console_scripts', 'pip')() File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 572, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 2769, in load_entry_point return ep.load() File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 2422, in load return self.resolve() File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 2432, in resolve raise ImportError(str(exc)) ImportError: 'module' object has no attribute 'main'

bruvv commented 4 years ago

unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly So you have to run: xcode-select --install

lgwjames commented 4 years ago

still getting ERROR: Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system: '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pytz/zoneinfo/Indian/Mauritius'

bruvv commented 4 years ago

It's a read only try moving it to another hdd or reinstall python