Google2Piwik icon indicating copy to clipboard operation
Google2Piwik copied to clipboard

FAILED-message after executing ./google2piwik.py -c

Open seorie opened this issue 13 years ago • 7 comments

When I execute ./google2piwik.py -c I receive this here:

Checking configuration file: [OK]

Checking Google Analytics
Attempting login: [OK]
Simple query on table: [OK]

Checking MySQL Access
Initialize database connection: [OK]
Checking tables: [FAILED]
Tables - piwik_1_log_action, piwik_1_log_visit, piwik_1_log_link_visit_action doesn't exist.
Checking site: [FAILED], site with idsite = 2 wasn't found

BUT: Site-ID is correct in config-file. Furthermore, my configuration defines table_prefix = piwik_1 It seems the table-names above have an additional '_' which might cause the problems with the tables.

Execution of ./google2piwik.py :

Traceback (most recent call last):
  File "./google2piwik.py", line 652, in <module>
    CURRENT_VERSION =         sql.get_version(config.MYSQL_CREDENTIALS["table_prefix"])
  File "/home/dirk/Desktop/piwik/Google2Piwik-master/sql.py", line 120, in get_version
    cursor.execute(select_version_sql)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1146, "Table 'usr_web229_16.piwik_1_option' doesn't exist")

===>>> I am running it on Ubuntu Version 12.04 (precise) (32-Bit); python 2.7<<<===

Thanks for your help! Dirk

seorie avatar Jan 18 '13 14:01 seorie

What version of Piwik are you currently using?

Checking site: [FAILED], site with idsite = 2 wasn't found

You should also check in your database (table site) if site with id = 2 is present.

clearcode avatar Jan 18 '13 15:01 clearcode

Site with id = 2 is present.

seorie avatar Jan 18 '13 15:01 seorie

  1. What's your table names for log_visit and log_action then?
  2. Are you using the latest version of Piwik?

clearcode avatar Jan 18 '13 15:01 clearcode

@ 1 : my tables are named e.g "piwik_1log_link_visit_action" (the error message described above shows that the script is searching for piwik_1_log_link_visit_action, so a '_' is inserted after the piwik_1 for some reason...) @ 2: Yes!

seorie avatar Jan 18 '13 16:01 seorie

In this case, you need to stay tuned for next release of Google2Piwik which will support newest version. We're currently working on it, so should be available within next week or two.

Thanks for you input!

clearcode avatar Jan 18 '13 16:01 clearcode

Great! I can wait some weeks. Thanks for the tool!

seorie avatar Jan 18 '13 16:01 seorie

New version of Google2Piwik is all ready! Let us know if your issue is still present.

clearcode avatar Feb 04 '13 11:02 clearcode