Closed Almopt closed 3 years ago
@Almopt provide uname -a
, i need to understand what architecture you have
And send full traceback
This problem is reproducible only for you, meanwhile tests with python 3.9 passed https://github.com/adw0rd/instagrapi/runs/3597098271?check_suite_focus=true
ERROR: Command errored out with exit status 1: /Users/alexmorg/PycharmProjects/InstagramBot/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/tt/k52495ks139gd2kkb5gl5t680000gn/T/pip-install-l9cd9oe9/pycryptodomex_aa7fd7c7314c4ea0989ab7ebe2ca695c/setup.py'"'"'; file='"'"'/private/var/folders/tt/k52495ks139gd2kkb5gl5t680000gn/T/pip-install-l9cd9oe9/pycryptodomex_aa7fd7c7314c4ea0989ab7ebe2ca695c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/tt/k52495ks139gd2kkb5gl5t680000gn/T/pip-record-e9n3chhk/install-record.txt --single-version-externally-managed --compile --install-headers /Users/alexmorg/PycharmProjects/InstagramBot/venv/include/site/python3.9/pycryptodomex Check the logs for full command output.
send
Darwin MBPdeAlexandre.Home 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64
@Almopt show clang and gcc versions
Apple clang version 11.0.0 (clang-1100.0.33.16)
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 11.0.0 (clang-1100.0.33.16) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
@Almopt cannot reproduce:
% uname -a
Darwin MacBook-Pro-adw0rd.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Nov 10 00:07:31 PST 2020; root:xnu-4903.278.51~1/RELEASE_X86_64 x86_64
% gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
% pip install instagrapi
Collecting instagrapi
Downloading instagrapi-1.13.3.tar.gz (72 kB)
|████████████████████████████████| 72 kB 938 kB/s
Collecting requests<3.0,>=2.25.1
Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting PySocks==1.7.1
Using cached PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting pydantic==1.8.2
Downloading pydantic-1.8.2-cp39-cp39-macosx_10_9_x86_64.whl (2.7 MB)
|████████████████████████████████| 2.7 MB 7.7 MB/s
Collecting pycryptodomex==3.9.9
Downloading pycryptodomex-3.9.9.tar.gz (15.5 MB)
|████████████████████████████████| 15.5 MB 4.5 MB/s
Collecting typing-extensions>=3.7.4.3
Using cached typing_extensions-3.10.0.2-py3-none-any.whl (26 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
Collecting charset-normalizer~=2.0.0
Using cached charset_normalizer-2.0.4-py3-none-any.whl (36 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
Collecting idna<4,>=2.5
Using cached idna-3.2-py3-none-any.whl (59 kB)
Building wheels for collected packages: instagrapi, pycryptodomex
Building wheel for instagrapi (setup.py) ... done
Created wheel for instagrapi: filename=instagrapi-1.13.3-py3-none-any.whl size=83570 sha256=004038874f71c44f0cb08618568a415e2bb5f590290d2fbd680ee6716a6baeb8
Stored in directory: /Users/adw0rd/Library/Caches/pip/wheels/c5/7f/7e/e38c77986fbc13fc6ac248bea9a7bdb7b28b4c81cc60a89aba
Building wheel for pycryptodomex (setup.py) ... done
Created wheel for pycryptodomex: filename=pycryptodomex-3.9.9-cp39-cp39-macosx_10_14_x86_64.whl size=13328947 sha256=2f2cd9042427f8522539cfeb4f0822d7cce950ca8491d1c0be7e8ba36e4b40ec
Stored in directory: /Users/adw0rd/Library/Caches/pip/wheels/5c/32/e1/57bb63b8af45375248987d6d84fb5d1fc0922929a8661697f9
Successfully built instagrapi pycryptodomex
Installing collected packages: urllib3, typing-extensions, idna, charset-normalizer, certifi, requests, PySocks, pydantic, pycryptodomex, instagrapi
Successfully installed PySocks-1.7.1 certifi-2021.5.30 charset-normalizer-2.0.4 idna-3.2 instagrapi-1.13.3 pycryptodomex-3.9.9 pydantic-1.8.2 requests-2.26.0 typing-extensions-3.10.0.2 urllib3-1.26.6
% python
Python 3.9.1 (default, Sep 14 2021, 13:38:32)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from instagrapi import Client
>>> Client
<class 'instagrapi.Client'>
You can use the same versions of the libraries as mine, maybe this will help you
Going through this error currently on my Mac as well. @Almopt did you find any fix by any chance
Compensate with donations ($20 and more) for the time I spent to fix problems or send me your Pull Request with fixes
Describe the bug Running the command python -m pip install instagrapi
To Reproduce Provide a piece of code to reproduce the problem.
Traceback /usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/Users/alexmorg/PycharmProjects/InstagramBot/venv/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/MD2.c -o build/temp.macosx-11-x86_64-3.9/src/MD2.o clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11' error: command '/usr/bin/clang' failed with exit code 1
Expected behavior I should expect the installation be ok.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.