v1a0 / sqllex

The most pythonic ORM (for SQLite and PostgreSQL). Seriously, try it out!
https://v1a0.github.io/sqllex
GNU General Public License v3.0
92 stars 8 forks source link

BUG | SyntaxError: invalid syntax #58

Closed loss-and-quick closed 2 years ago

loss-and-quick commented 2 years ago

✅ THE BUG

I wrote the project and ran it on my main computer and everything works, but when I try to run this project on raspberrypi zero w I get an error (see below)

log:

File "/home/pi/.local/lib/python3.7/site-packages/sqllex/classes/__init__.py", line 5, in <module>
    from sqllex.core.entities.sqlite3x import *
  File "/home/pi/.local/lib/python3.7/site-packages/sqllex/core/entities/__init__.py", line 4, in <module>
    from sqllex.core.entities.sqlite3x import *
  File "/home/pi/.local/lib/python3.7/site-packages/sqllex/core/entities/sqlite3x/__init__.py", line 4, in <module>
    from sqllex.core.entities.sqlite3x.sqlite3x import *
  File "/home/pi/.local/lib/python3.7/site-packages/sqllex/core/entities/sqlite3x/sqlite3x.py", line 4, in <module>
    from sqllex.core.entities.abc import \
  File "/home/pi/.local/lib/python3.7/site-packages/sqllex/core/entities/abc/__init__.py", line 4, in <module>
    from sqllex.core.entities.abc.sql_database import AbstractDatabase, AbstractTable, AbstractColumn
...
File "<fstring>", line 1
    (SET=)

✅ CODE

from sqllex import *

⚠️ CONFIGURATIONS

OTHER

v1a0 commented 2 years ago

Hey, @minibox16! Thanks for your report.

Unfortunately, you have cut out a lot of information from the log, even the type of exception. So I can't pinpoint exactly what the problem was.

Found this on stackoverflow "invalid syntax file "", line 1", so guess you have to try another python version.

Please share your solution if you found it. Best regards, v1a0

loss-and-quick commented 2 years ago

Hey, @minibox16! Thanks for your report.

Unfortunately, you have cut out a lot of information from the log, even the type of exception. So I can't pinpoint exactly what the problem was.

Found this on stackoverflow "invalid syntax file "", line 1", so guess you have to try another python version.

Please share your solution if you found it. Best regards, v1a0

I found solution i just installed python 3.9 )