timwah / pokeslack

Get Slack messages posted to a #pokealert channel about rare Pokemon close to you
MIT License
38 stars 29 forks source link

Error code 1 during install #21

Open tdmalone opened 7 years ago

tdmalone commented 7 years ago

Firstly, thanks for the awesome work on this.

I've never used Python before and am struggling to get this installed. pip install -r requirements.txt ends with:

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-0kciQ6/pycryptodomex/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-t7ENnK-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-0kciQ6/pycryptodomex/

Searching around a bit online, I tried upgrading setuptools, which worked, but am still getting the same error. I also tried installing with easy_install (cat requirements.txt) (replace the brackets with backticks), and am receiving:

/usr/bin/ld: cannot find -lpython2.6 collect2: ld returned 1 exit status error: Setup script exited with error: command 'gcc' failed with exit status 1

I'm on CentOS 6.7 with Python 2.6.6.

I know this might be a simple resolution if I knew more about Python or installing packages on Linux; can anyone help?

timwah commented 7 years ago

Hm, unsure about your particular error, it's non-obvious to me. Have you tried upgrading your version of pip? Also this has only been tested on Python 2.7 as far as I know.