Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I came across an error #62

Open
gitjacky opened this issue May 13, 2019 · 1 comment
Open

I came across an error #62

gitjacky opened this issue May 13, 2019 · 1 comment

Comments

@gitjacky
Copy link

my py version is 2.6 and i installed SchemaSync,but ,when when i run it throw out an error like this below:

Traceback (most recent call last):
File "/usr/bin/schemasync", line 9, in
load_entry_point('SchemaSync==0.9.5', 'console_scripts', 'schemasync')()
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 550, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 2710, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 2370, in load
File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 2376, in resolve
File "/usr/lib/python2.6/site-packages/schemasync/schemasync.py", line 34, in
import schemaobject
File "/usr/lib/python2.6/site-packages/schemaobject/init.py", line 11, in
from schemaobject.schema import SchemaObject
File "/usr/lib/python2.6/site-packages/schemaobject/schema.py", line 1, in
from schemaobject.connection import DatabaseConnection
File "/usr/lib/python2.6/site-packages/schemaobject/connection.py", line 1, in
import pymysql
File "/usr/lib/python2.6/site-packages/pymysql/init.py", line 96, in
from . import connections as _orig_conn
File "/usr/lib/python2.6/site-packages/pymysql/connections.py", line 79
FIELD_TYPE.BIT,
^
SyntaxError: invalid syntax

This is the connections.py:
TEXT_TYPES = {
FIELD_TYPE.BIT,
FIELD_TYPE.BLOB,
FIELD_TYPE.LONG_BLOB,
FIELD_TYPE.MEDIUM_BLOB,
FIELD_TYPE.STRING,
FIELD_TYPE.TINY_BLOB,
FIELD_TYPE.VAR_STRING,
FIELD_TYPE.VARCHAR,
FIELD_TYPE.GEOMETRY,
}

this is not a dict but a list , Is Schemasync dependent on pymysql?

@mitsh
Copy link
Collaborator

mitsh commented May 29, 2019

i accept merge request about fixed this issue. please check it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants