gkunter / coquery

Coquery is a free corpus query tool for linguists, lexicographers, translators, and anybody who wishes to search and analyse a text corpus.
GNU General Public License v3.0
18 stars 4 forks source link

Program crashes at startup if a MySQL connection is selected in the configuration but pymysql is not available #293

Open gkunter opened 6 years ago

gkunter commented 6 years ago

If a MySQL connection is selected but the pymysql module is unavailable, the program crashes at startup:

ModuleNotFoundError No module named 'pymysql'
Trace 
Function main() in coquery/coquery.py, line 181:  
  Function __init__() in coquery/session.py, line 624:
    Function __init__() in coquery/session.py, line 69:
      Function get_engine() in coquery/connections.py, line 128:
        > return sqlalchemy.create_engine(self.url(database))

This issue is related to issue #294.