magneticow installation on Mac OS X : Command python3.5 failed with error code 1
MacBook-Pro-3:~ joe$ pip3 install magneticow --user
Collecting magneticow
Downloading magneticow-0.2.0-py3-none-any.whl (789kB)
100% |████████████████████████████████| 798kB 16kB/s
Collecting flask>=0.12.1 (from magneticow)
Downloading Flask-0.12.1-py2.py3-none-any.whl (82kB)
100% |████████████████████████████████| 92kB 23kB/s
Requirement already satisfied: appdirs>=1.4.3 in ./Library/Python/3.5/lib/python/site-packages (from magneticow)
Collecting gevent>=1.2.1 (from magneticow)
Downloading gevent-1.2.1-cp35-cp35m-macosx_10_6_intel.whl (1.1MB)
100% |████████████████████████████████| 1.1MB 47kB/s
Collecting Werkzeug>=0.7 (from flask>=0.12.1->magneticow)
Downloading Werkzeug-0.12.1-py2.py3-none-any.whl (312kB)
100% |████████████████████████████████| 317kB 4.1kB/s
Collecting click>=2.0 (from flask>=0.12.1->magneticow)
Downloading click-6.7-py2.py3-none-any.whl (71kB)
100% |████████████████████████████████| 71kB 12kB/s
Collecting Jinja2>=2.4 (from flask>=0.12.1->magneticow)
Downloading Jinja2-2.9.6-py2.py3-none-any.whl (340kB)
100% |████████████████████████████████| 348kB 12kB/s
Collecting itsdangerous>=0.21 (from flask>=0.12.1->magneticow)
Downloading itsdangerous-0.24.tar.gz (46kB)
100% |████████████████████████████████| 51kB 23kB/s
Collecting greenlet>=0.4.10 (from gevent>=1.2.1->magneticow)
Downloading greenlet-0.4.12.tar.gz (57kB)
100% |████████████████████████████████| 61kB 31kB/s
Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask>=0.12.1->magneticow)
Downloading MarkupSafe-1.0.tar.gz
Installing collected packages: Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask, greenlet, gevent, magneticow
Running setup.py install for MarkupSafe ... done
Running setup.py install for itsdangerous ... done
Running setup.py install for greenlet ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/3p/t2015hrs5gjd27jdlkcbw4wh0000gp/T/pip-build-tzo0baot/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/3p/t2015hrs5gjd27jdlkcbw4wh0000gp/T/pip-2xulkivp-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.macosx-10.6-intel-3.5
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c greenlet.c -o build/temp.macosx-10.6-intel-3.5/greenlet.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/3p/t2015hrs5gjd27jdlkcbw4wh0000gp/T/pip-build-tzo0baot/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/3p/t2015hrs5gjd27jdlkcbw4wh0000gp/T/pip-2xulkivp-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /private/var/folders/3p/t2015hrs5gjd27jdlkcbw4wh0000gp/T/pip-build-tzo0baot/greenlet/
Running setup.py install for greenlet ... error
i've not seen it said anywhere but it also seems to need python3-setuptools and IIRC python3-dev Do you have those installed?
If it was not mentioned in the instructions, I probably don't have it installed.
This can be solved by installing XCode Command Line Tools via the following command:
xcode-select --install
After running the above command you should be good to go but if any other errors occur you can attempt to reset the Command Line Tools as a last ditch effort
xcode-select --reset
I had to delete xcode as it was consuming 10+GB that I did not have to spare. As soon as I figure out how to install it on another partition, I can try this out.