PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

requirements.txt error

Open beauterham opened this issue 10 years ago • 12 comments

After downloading requirements.txt i get a big red command error After downloading this it ask to download the pgoapi but that never seems to work

https://puu.sh/qmtJV/13f0d4fc58.png

beauterham avatar Aug 02 '16 07:08 beauterham

that's because you can't install pgoapi directly from pip, it's not an actual package. you have to install it from requirements.txt which uses pip magic to turn the pgoapi github repo into a python package that pip can install.

reddivision avatar Aug 02 '16 07:08 reddivision

I'm not an expert on this, but it seems to me like pgoapi is not the problem here. The python script is complaining that it cannot find the module to load in pgoapi.

I suspect this is because your setup failed while installing requirements.txt and this might have messed up the imports.

dkim1000 avatar Aug 02 '16 07:08 dkim1000

@dkim1000, they issued the command sudo pip install pgoapi, which you just can't do. but you're right, they need to resolve whatever issues were happening when they run sudo pip install -r requirements.txt

reddivision avatar Aug 02 '16 07:08 reddivision

@reddivision @dkim1000

i tryed using sudo pip install -r requirements.txt but still the same error:

Command "/Users/Jonas/Desktop/pokemonGo/PokemonGo-Bot/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-cjFkvR/pycryptodomex/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-YkhnGJ-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/Jonas/Desktop/pokemonGo/PokemonGo-Bot/bin/../include/site/python2.7/pycryptodomex" failed with error code 1 in /private/tmp/pip-build-cjFkvR/pycryptodomex/

So there is notting what i can do to fix this? The owner have to fix it?

beauterham avatar Aug 02 '16 07:08 beauterham

do you have only python2 installed?

sgitkene avatar Aug 02 '16 11:08 sgitkene

i only have python 2.7 installed yes. Do i also need to have 3.5?

beauterham avatar Aug 02 '16 11:08 beauterham

no I was thinking maybe python3 was interfering because that happens if you have both installed.

sgitkene avatar Aug 02 '16 12:08 sgitkene

Try to run setup.py

maestroi avatar Aug 02 '16 13:08 maestroi

I have the same problem. Running sudo pip install -r requirements.txt don't work well. I installed some of the requirements with pip install name but that dont work with the pgoapi. http://imgur.com/a/2yQyv (Screenshot when the installing fails. I use python 2.7 and linux). I hope someone can help.

bel90 avatar Aug 02 '16 18:08 bel90

sudo pip install --upgrade -r requirements.txt

maestroi avatar Aug 03 '16 19:08 maestroi

sudo apt-get install python-dev pip install -r requirements.txt

dreanmer avatar Aug 04 '16 13:08 dreanmer

@Dreanmer dont do this in your os, do this in virtualenv

maestroi avatar Aug 04 '16 17:08 maestroi