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

global name 'pyodbc' is not defined #10

Closed
g-sunil opened this issue Mar 8, 2016 · 3 comments
Closed

global name 'pyodbc' is not defined #10

g-sunil opened this issue Mar 8, 2016 · 3 comments

Comments

@g-sunil
Copy link

g-sunil commented Mar 8, 2016

File "/home/user/.config/sublime-text-3/Packages/TSQLEasy/sqlodbccon.py", line 83, in dbconnect
except pyodbc.IntegrityError as e:
NameError: global name 'pyodbc' is not defined

TSQLEasy: PyODBC is not available: libodbc.so.1: cannot open shared object file: No such file or directory

But, pyodbc is available in the system.

System Python version 2.6.6.
ST3 (3103)
CentOS 6.7 Release

@tosher
Copy link
Owner

tosher commented Mar 9, 2016

This error exists after installation or after restart too?

P.S. Sublime text not using system python - own version of python, and pyodbc lib inside plugin instead of.

@g-sunil
Copy link
Author

g-sunil commented Mar 9, 2016

Hi,

Thank for your reply...

error occurs after installation and also after the restart.

@tosher
Copy link
Owner

tosher commented Mar 9, 2016

You can try to place pyodbc.cpython-33m.so from your system into plugin dir:

Packages\TSQLEasy\lib\st3_linux_x64\pyodbc.cpython-33m.so

If it will work, then the lib from plugin is incompatible with your OS.

@tosher tosher closed this as completed Jul 11, 2016
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