Skip to content

Embedded python issue during installation #15

Description

@Frisle

Installation tested on different version: 2025.3 and 2026.1

Both has its own issue with embedded python during installation

2025.3

Traceback (most recent call last):
#8 62.16 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 144, in init
#8 62.16 self._dbapi_connection = engine.raw_connection()
#8 62.16 ^^^^^^^^^^^^^^^^^^^^^^^
#8 62.16 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 3319, in raw_connection
#8 62.16 return self.pool.connect()
#8 62.16 ^^^^^^^^^^^^^^^^^^^
#8 62.16 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 448, in connect
#8 62.16 return _ConnectionFairy._checkout(self)
#8 62.16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#8 62.16 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 1272, in _checkout
#8 62.16 fairy = _ConnectionRecord.checkout(pool)
#8 62.16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#8 62.16 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 712, in checkout
#8 62.16 rec = pool._do_get()
#8 62.16 ^^^^^^^^^^^^^^
#8 62.16 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/pool/impl.py", line 178, in _do_get
#8 62.16 with util.safe_reraise():
#8 62.16 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/util/langhelpers.py", line 122, in exit
#8 62.16 raise exc_value.with_traceback(exc_tb)
#8 62.16 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/pool/impl.py", line 176, in _do_get
#8 62.16 return self._create_connection()
#8 62.16 ^^^^^^^^^^^^^^^^^^^^^^^^^
#8 62.16 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 389, in _create_connection
#8 62.16 return _ConnectionRecord(self)
#8 62.16 ^^^^^^^^^^^^^^^^^^^^^^^
#8 62.16 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 674, in init
#8 62.16 self.__connect()
#8 62.16 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 900, in __connect
#8 62.17 with util.safe_reraise():
#8 62.17 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/util/langhelpers.py", line 122, in exit
#8 62.17 raise exc_value.with_traceback(exc_tb)
#8 62.17 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 896, in __connect
#8 62.17 self.dbapi_connection = connection = pool._invoke_creator(self)
#8 62.17 ^^^^^^^^^^^^^^^^^^^^^^^^^^
#8 62.17 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/engine/create.py", line 667, in connect
#8 62.17 return dialect.connect(*cargs_tup, **cparams)
#8 62.17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#8 62.17 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 630, in connect
#8 62.17 return self.loaded_dbapi.connect(*cargs, **cparams) # type: ignore[no-any-return] # NOQA: E501
#8 62.17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#8 62.17 NameError: Cannot call an iris.package wrapper. If you were trying to call a method of an ObjectScript class, check that the name of the wrapper is correct. Given name was: dbapi.connect

During handling of the above exception, another exception occurred:
#8 62.17
#8 62.17 Traceback (most recent call last):
#8 62.17 File "/home/irisowner/dev/iris_script.py", line 30, in
#8 62.17 df.to_sql(table_name, engine, if_exists='replace', index=False, schema='dc_demo')
#8 62.17 File "/home/irisowner/.local/lib/python3.12/site-packages/pandas/core/generic.py", line 3052, in to_sql
#8 62.17 return sql.to_sql(
#8 62.17 ^^^^^^^^^^^
#8 62.17 File "/home/irisowner/.local/lib/python3.12/site-packages/pandas/io/sql.py", line 840, in to_sql
#8 62.17 with pandasSQL_builder(con, schema=schema, need_transaction=True) as pandas_sql:
#8 62.17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#8 62.17 File "/home/irisowner/.local/lib/python3.12/site-packages/pandas/io/sql.py", line 908, in pandasSQL_builder
#8 62.17 return SQLDatabase(con, schema, need_transaction)
#8 62.17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#8 62.17 File "/home/irisowner/.local/lib/python3.12/site-packages/pandas/io/sql.py", line 1649, in init
#8 62.17 con = self.exit_stack.enter_context(con.connect())
#8 62.17 ^^^^^^^^^^^^^
#8 62.17 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 3295, in connect
#8 62.17 return self._connection_cls(self)
#8 62.17 ^^^^^^^^^^^^^^^^^^^^^^^^^^
#8 62.17 File "/home/irisowner/.local/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 145, in init
#8 62.17 except dialect.loaded_dbapi.Error as err:
#8 62.17 TypeError: catching classes that do not inherit from BaseException is not allowed

2026.1

44.43 Traceback (most recent call last):
44.43 File "/home/irisowner/dev/iris_script.py", line 19, in
44.43 assert ipm('load /home/irisowner/dev -v')
44.43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44.43 NameError: Cannot call an iris.package wrapper. If you were trying to call a method of an ObjectScript class, check that the name of the wrapper is correct. Givenname was: ipm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions