nchammas / flintrock

A command-line tool for launching Apache Spark clusters.
Apache License 2.0
636 stars 116 forks source link

Can't install flintrock in python 3.7 using pipenv #273

Closed pwsiegel closed 5 years ago

pwsiegel commented 5 years ago

Attempting to install flintrock in an empty pipenv project using pipenv install --skip-lock flintrock, the installation fails with a long error message culminating in:

Error:  An error occurred while installing flintrock!
  Failed building wheel for PyYAML
Command "/Users/paul/.local/share/virtualenvs/flintrock-Mcjce2Sz/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/gl/fq284z5n3td4wvn2tnsp35pw0000gn/T/pip-install-h8jchtzf/PyYAML/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/gl/fq284z5n3td4wvn2tnsp35pw0000gn/T/pip-record-rowyasiz/install-record.txt --single-version-externally-managed --compile --install-headers /Users/paul/.local/share/virtualenvs/flintrock-Mcjce2Sz/bin/../include/site/python3.7/PyYAML" failed with error code 1 in /private/var/folders/gl/fq284z5n3td4wvn2tnsp35pw0000gn/T/pip-install-h8jchtzf/PyYAML/

If in the Pipfile I change python_version from 3.7 to 3.6.5 and run the above command, flintrock installs with no error messages and works correctly.

nchammas commented 5 years ago

Known issue fixed in #268. Running Flintrock from master should fix your issue. Alternately, hang tight for a new Flintrock release.