Closed Drambuie closed 8 years ago
Same problem here. Following
As above. I tried updating, here is a dump when I try and run the program.
Traceback (most recent call last):
File "C:\Users\Keith\Desktop\PokeBot\PokemonGo-Bot\pokecli.py", line 38, in <m
odule>
from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottl
ingException, ServerBusyOrOfflineException
File "c:\users\keith\desktop\pokebot\pokemongo-bot\src\pgoapi\pgoapi\__init__.
py", line 50, in <module>
from pgoapi.pgoapi import PGoApi
File "c:\users\keith\desktop\pokebot\pokemongo-bot\src\pgoapi\pgoapi\pgoapi.py
", line 34, in <module>
from pgoapi.rpc_api import RpcApi
File "c:\users\keith\desktop\pokebot\pokemongo-bot\src\pgoapi\pgoapi\rpc_api.p
y", line 47, in <module>
from pgoapi.utilities import to_camel_case, get_time, get_format_time_diff,
Rand48, long_to_bytes, generateLocation1, generateLocation2, generateRequestHash
, f2i
File "c:\users\keith\desktop\pokebot\pokemongo-bot\src\pgoapi\pgoapi\utilities
.py", line 30, in <module>
import xxhash
ImportError: No module named xxhash
C:\Users\Keith\Desktop\PokeBot\PokemonGo-Bot>
Thanks.
Try installing package python-dev with sudo apt-get install python-dev
. I had the same error (python.h) for another dependency a week ago, fixed by installing python-dev. Created a issue to help other people encountering this problem but the issue was closed after no activity for like a week.
Will check later fer, thanks!
Resolved.....Thanks
How did you resolve this? I still get the same error:
Traceback (most recent call last):
File "pokecli.py", line 38, in
Thanks :)
System: MAC OS
@Sijmenjeromkok The module is still not installed, you need to install requirements again after installing python-dev to now successfully build the xxhash module.
Thank you Ferbeb, will try!
pip install xxhash
also, I think you need raven
as well.
pip install raven
Traceback (most recent call last):
File "pokecli.py", line 38, in
Hey all,
had the same issue
Just install Microsoft Visual C++ Compiler for Python 2.7
https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
-- I don't know witch one is, so feel free to identify it.
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev
@TGM
Like I already posted, it's python-dev
Expected Behavior
expect xxhash to install
Actual Behavior
recieving the following error
.replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-XCevGC-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_ext building 'xxhash' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/xxhash x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DVERSION=0.6.1 -I/usr/include/python2.7 -c python-xxhash.c -o build/temp.linux-x86_64-2.7/python-xxhash.o -std=c99 -O3 -Wall -W -Wundef -Wno-error=declaration-after-statement python-xxhash.c:31:20: fatal error: Python.h: No such file or directory
include
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-khdMHg/xxhash/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-XCevGC-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-khdMHg/xxhash/
Steps to Reproduce
sudo pip install -r requirements.txt
Other Information
OS: UBUNTU Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here) Python Version: (run 'python -V' and paste it here)