Skip to content

Windows Installation and requirements

Azzivo edited this page Aug 7, 2016 · 12 revisions

In order to run the project, you will need Python, pip and the project dependencies. Version 2.7 is what we usually test against. You can use 3.x but no support will be given.

PokemonGo-Map: Windows Installation


Prerequisites for this guide


Known Issues

  • If you are having Issues with Step 7 and did not install Python on your C: drive, try uninstalling and reinstalling Python on C: before opening an issue (thanks @RicarFox).

  • If you are having issues with installing the Python dependencies in Step 7, you may need the Python Visual C++ Compiler


Step 1: Install Git for Windows

Download Git for Windows from the link above and install it. You will be fine with all recommended options during the setup.

Installing Git...

Step 2: Install Python

Note: If you already have another version of Python installed, you probably want to uninstall that version and install 2.7.1.2. I did not test this setup with any other version.

Download Python 2.7.1.2 either as the 64bit or the 32bit version from the link above. Make sure to add Python to PATH during the setup (see screenshot)!

Python

Step 3: Clone PokemonGo-Map

Navigate to the folder you want to download PokemonGo-Map to. For this guide we'll be using the Downloads folder. Rightclick inside the folder and select Git Bash Here from the context menu.

Git Bash Here

You can copy the following command and paste it with a rightclick into the shell window that has opened:

git clone https://github.com/PokemonGoMap/PokemonGo-Map.git

Clone

Now we have all PokemonGo-Map files inside our Downloads folder.

Step 4: Get your own Google Maps API Key

Go to this page to get your own Google Maps API Key.

Open the config.ini file inside the PokemonGo-Map\config folder. You can edit that file with Windows' built in text editor. Now put the key on the gmaps-key: line and remove the # from the start of that line.

Step 5: Fix Python Path

This step is not needed on every system, but it's probably good to check if everything is set up correctly.

First things first. Press WindowsKey + PAUSE on your keyboard and select Advanced System Settings from the left side menu. At the bottom of that windows click Environment Variables. In my case the Python value for the Path variable was set to C:\Python27\; which is wrong. You have to remove final backslash if that's the case for you too. If you're having issues with this feel free to open an Issue.

Variable issue

Step 6: Setup PokemonGo-Map

That was the hard part. Now navigate to the PokemonGo-Map folder and Git Bash Here, like in Step 3. Now paste this command:

pip install -r requirements.txt

Requirements

Develop branch only instructions

In order for the map to load on the develop branch, there are some additions requirements.

  1. Install node.js. That will install the npm command. -[Node.js 6.3.1] (https://nodejs.org/dist/v6.3.1/node-v6.3.1-x64.msi)
  2. Open an admin command prompt and type npm install -g babel-cli grunt-cli. This installs Grunt's & Babel command line interface (CLI) globally.
  3. Once grunt is installed, run it by typing npm install (from the PokemonGo-Map folder). This will automatically run the grunt build command.

Step 7: Start PokemonGo-Map

Now we are ready to start the map.

A full list of parameters you can use with the map and what they mean can be found here. This guide will only cover the important ones:

-a: Use either ptc or google for the login
-u: Your Username
-p: Your Password
-l: The location you want to scan for Pokémon. You can try something like La tour Eiffel, Paris, your street or exact coordinates in this format: 47.6062100 -122.3320700
-st: The amount of steps to take (5 steps is approximately a 1.2km (this information is outdated) -ar: Auto refresh interval (in seconds), so you don't have to refresh the map all the time

Note: It's recommended that you create a dummy account to use this Map with in order to prevent your real account from getting (soft)banned.

Note: If you use a Google account that has 2FA (two factor authentication) enabled, see "Can I sign in with Google?" in the FAQ

The final command should look like this:

python example.py -a ptc -u johndoe -p ilovemama -l "400 Broad St, Seattle, WA 98109, USA" -st 5 -ar 10

Final command

Hit enter and view your map in all it's glory at http://127.0.0.1:5000/. Done!

Map


Bonus: How to update PokemonGo-Map

Since PokemonGo-Map is under active development and gets a lot of updates, you probably want to get all the latest features and bug fixes. You can see the latest updates (called commits) here. To update your copy, Git Bash here from the PokemonGo-Map folder, paste this command and hit enter:

git pull origin master

Now repeat Step 7 to restart your map.

Ubuntu or Debian

You can install Python and Pip on Ubuntu by running the following command:

sudo apt-get install python python-pip

Credentials and Downloading

Create a Pokemon Club account [on their official website] to be used by the program to search for Pokemon. This generally shouldn't be the same as your main Trainer account you personally use. As of 7/21/2016 this page is unavailable most of the time, refresh the page every 5-10 minutes and it should allow signups eventually.

Then, download one of the following branches below:

The dev branch will have latest features from the development team, however it may be unstable at some times.

Extract this zip file to any location.

Install Dependencies

Now, open a Terminal/Command Line (Win+R and cmd on Windows) and cd to the folder you extracted the zip file to.

cd some/directory/

In Windows you can also right click within the folder and select "Open Command Window Here."

Then enter the following:

pip install -r requirements.txt

Running

To start the server, run the following command:

python example.py -a ptc -u [USERNAME] -p [PASSWORD] -l "[LOCATION]" -st 10

Replaing [USERNAME] and [PASSWORD] with the Pokemon Club credentials you created previously, and [LOCATION] with any location, for example Washington, D.C or latitude and longitude coordinates, such as 38.9072 77.0369.

Additionally, you can change the 10 after -st to any number. This number indicates the number of steps away from your location it should look, higher numbers being farther.

Accessing

Open your browser to http://localhost:5000 and keep refreshing as it loads more Pokemon (auto refresh is not implemented yet).

Clone this wiki locally