Closed awil5504 closed 5 months ago
I've never seen this error before. Would pip install --upgrade SQLAlchemy (or pip install --upgrade sqlalchemy) help? Then just try: import sqlalchemy print(sqlalchemy.version)
This solves it, thanks! Not sure what version my conda defaulted too but must have been out of date.
Hi,
I just built the full version on a new macine and am getting the following error when trying to run the GPTune-Demo experiment:
File "./demo.py", line 54, in
from callopentuner import OpenTuner
File "/data/eart-tmm/sedm6691/Full_GPTune/GPTune/GPTune/callopentuner.py", line 29, in
import opentuner
File "/home/sedm6691/.local/lib/python3.8/site-packages/opentuner/init.py", line 3, in
from opentuner.measurement import MeasurementInterface
File "/home/sedm6691/.local/lib/python3.8/site-packages/opentuner/measurement/init.py", line 3, in
from . import driver
File "/home/sedm6691/.local/lib/python3.8/site-packages/opentuner/measurement/driver.py", line 14, in
from sqlalchemy.exc import SQLAlchemyError
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/init.py", line 13, in
from .engine import AdaptedConnection as AdaptedConnection
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/engine/init.py", line 18, in
from . import events as events
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/engine/events.py", line 19, in
from .base import Connection
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 30, in
from .interfaces import BindTyping
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/engine/interfaces.py", line 36, in
from ..pool import Pool
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/pool/init.py", line 20, in
from . import events
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/pool/events.py", line 15, in
from .base import ConnectionPoolEntry
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 635, in
class _ConnectionRecord(ConnectionPoolEntry):
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 698, in _ConnectionRecord
def connection(self) -> Optional[DBAPIConnection]:
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/util/deprecations.py", line 141, in decorate
return _decorate_with_warning(
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/util/deprecations.py", line 396, in _decorate_with_warning
decorated = warned(func)
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 306, in decorate
_exec_code_in_env(code, env, fn.name),
File "/home/sedm6691/.local/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 340, in _exec_code_in_env
exec(code, env)
File "", line 1, in
NameError: name 'DBAPIConnection' is not defined
I'm wondering if this is a simple fix, some googling makes it seem like this error can come from problems with my environment variables, but really not sure how to test that. Was wondering if you have run into this before and how it was fixed.