veekun / pokedex

more than you ever wanted to know about Pokémon
MIT License
1.44k stars 637 forks source link

Need help to get the MySql database #200

Open gamillton opened 7 years ago

gamillton commented 7 years ago

hello guys, i am using Windows 10, if you need more information then tell me pls, so now i explain what i did: I loaded the last version Git 2.11.0 from https://git-scm.com/ and installed it. I loaded the last version Python 2.7.12 from https://www.python.org/downloads/ and installed it. the site "http://ww43.python-distribute.org/distribute_setup.py" is not excisting anymore or? I downloaded this file from "https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.py" an other site then! I used "C:\Python27\python C:\wherever\distribute_setup.py" and installed it! pip is already installed if you're using Python 2 >=2.7.9 or Python 3 >=3.4! But it is necessary to upgrade it: On Linux or macOS: pip install -U pip Windows: C:\Python27\python -m pip install -U pip I started the Git CMD and put "git clone git://github.com/veekun/pokedex.git" into it and a folder Pokédex was copied to C:\Users\myuser\ I downloaded for "3. Prep your database." the MySQL for Python Addon from "https://sourceforge.net/projects/mysql-python/" and installed it I used the "2A. The quick way" methodic and used C:\Python27\python C:\Users\myuser\pokedex\setup.py develop! So i got some files writing and to C:\Python27\Scripts\ the pokedex.exe I never used python before and what I did wrong? what I must do now to get a MYSQL database? If i use "C:\Python27\Scripts\pokedex load -e mssql+pyodbc://.\SQLEXPRESS/database?driver=SQL+Server+Native+Client+11.0" or the without the extra Option -e, I get an error: "ImportError: No module named pokedex.main" I normaly use Xampp for MySql and i can make a database for "3. Prep your database." but I don´t know how I should get your data into my database! I thought it would create a .sql file? So It would be really nice if someone could explain it in a better way for me, I am not the best^^ sorry for that Btw it would be also nice to upgrade your guide with the new informations^^ It was not so easy to make it so far without it^^

ghost commented 7 years ago

Hi,

I tried the simple method and got the same error. So I tried "the good way" and got it importing to SQLite. So not a mega-helpful piece of advice other than to try the alternative method offered. It's not that hard really: I'm not familiar with Python at all but managed to munge it together!