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

'NoneType' object has no attribute 'group' #55

Open
harshtikuu opened this issue Jan 15, 2019 · 2 comments
Open

'NoneType' object has no attribute 'group' #55

harshtikuu opened this issue Jan 15, 2019 · 2 comments

Comments

@harshtikuu
Copy link

The following issue raises when I try to load the sql dump file.

if 'TABLE' in line:
111 table_name = re.search("(\w+)", line)
--> 112 table.name = table_name.group(1)
113 if self.thesaurus_object is not None:
114 table.equivalences = self.thesaurus_object.get_synonyms_of_a_word(table.name)

AttributeError: 'NoneType' object has no attribute 'group'

Kindly suggest a fix to this issue.

@abhijithneilabraham
Copy link

the SQL dump should be MySQL it seems? especially the syntax where the backticks are used to specify identifiers, show the dump should be MySQL and you might have used some online tool to create the dump.

@aitoehigie
Copy link

@harshtikuu I got the same traceback with my Postgres dump.
There is no fix for now. Switch to Mysql

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

3 participants