Created
March 22, 2023 13:28
-
-
Save SomeoneSerge/ce4b9d19578dc8b42ddbcecc395d7dfe to your computer and use it in GitHub Desktop.
nix log /nix/store/35g82r5bj3f3g9f67mhrxw50qszd8j2y-python3.10-pandas-stubs-1.5.3.230214.drv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sourcing python-remove-tests-dir-hook | |
Sourcing python-catch-conflicts-hook.sh | |
Sourcing python-remove-bin-bytecode-hook.sh | |
Sourcing pip-build-hook | |
Using pipBuildPhase | |
Using pipShellHook | |
Sourcing pip-install-hook | |
Using pipInstallPhase | |
Sourcing python-imports-check-hook.sh | |
Using pythonImportsCheckPhase | |
Sourcing python-namespaces-hook | |
Sourcing python-catch-conflicts-hook.sh | |
Sourcing pytest-check-hook | |
Using pytestCheckPhase | |
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking sources | |
unpacking source archive /nix/store/rb5zfdy3gsf1i73ivavxqx6jbxckm3nd-source | |
source root is source | |
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tests/test_windowing.py | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
patching sources | |
@nix { "action": "setPhase", "phase": "configurePhase" } | |
configuring | |
no configure script, doing nothing | |
@nix { "action": "setPhase", "phase": "buildPhase" } | |
building | |
Executing pipBuildPhase | |
Creating a wheel... | |
[33mWARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.[0m[33m | |
[0mProcessing /build/source | |
Running command Preparing metadata (pyproject.toml) | |
Preparing metadata (pyproject.toml) ... [?25l[?25hdone | |
Building wheels for collected packages: pandas-stubs | |
Running command Building wheel for pandas-stubs (pyproject.toml) | |
Building wheel for pandas-stubs (pyproject.toml) ... [?25l[?25hdone | |
Created wheel for pandas-stubs: filename=pandas_stubs-1.5.3.230214-py3-none-any.whl size=147489 sha256=877472081ce299d1d518c4780b0077ef8163f922ece7317d3a02dba5ce66465b | |
Stored in directory: /build/pip-ephem-wheel-cache-wqua0cyf/wheels/79/4b/9b/fc24941d75fdb959a71ee80195b2c89d6ae9389f9f0f80fb22 | |
Successfully built pandas-stubs | |
Finished creating a wheel... | |
Finished executing pipBuildPhase | |
@nix { "action": "setPhase", "phase": "installPhase" } | |
installing | |
Executing pipInstallPhase | |
/build/source/dist /build/source | |
Processing ./pandas_stubs-1.5.3.230214-py3-none-any.whl | |
Requirement already satisfied: types-pytz>=2022.1.1 in /nix/store/xzx1cvpb20j19s2hwmmk046dgrz50y11-python3.10-types-pytz-2022.7.1.2/lib/python3.10/site-packages (from pandas-stubs==1.5.3.230214) (2022.7.1.2) | |
Installing collected packages: pandas-stubs | |
Successfully installed pandas-stubs-1.5.3.230214 | |
/build/source | |
Finished executing pipInstallPhase | |
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" } | |
pythonOutputDistPhase | |
Executing pythonOutputDistPhase | |
Finished executing pythonOutputDistPhase | |
@nix { "action": "setPhase", "phase": "fixupPhase" } | |
post-installation fixup | |
shrinking RPATHs of ELF executables and libraries in /nix/store/vizg4m228h12bwwjhfclc0jyxn2li78l-python3.10-pandas-stubs-1.5.3.230214 | |
checking for references to /build/ in /nix/store/vizg4m228h12bwwjhfclc0jyxn2li78l-python3.10-pandas-stubs-1.5.3.230214... | |
patching script interpreter paths in /nix/store/vizg4m228h12bwwjhfclc0jyxn2li78l-python3.10-pandas-stubs-1.5.3.230214 | |
stripping (with command strip and flags -S) in /nix/store/vizg4m228h12bwwjhfclc0jyxn2li78l-python3.10-pandas-stubs-1.5.3.230214/lib | |
shrinking RPATHs of ELF executables and libraries in /nix/store/3rl630zsvcf3kfqk73jbs3m2f4njj8v7-python3.10-pandas-stubs-1.5.3.230214-dist | |
checking for references to /build/ in /nix/store/3rl630zsvcf3kfqk73jbs3m2f4njj8v7-python3.10-pandas-stubs-1.5.3.230214-dist... | |
patching script interpreter paths in /nix/store/3rl630zsvcf3kfqk73jbs3m2f4njj8v7-python3.10-pandas-stubs-1.5.3.230214-dist | |
Executing pythonRemoveTestsDir | |
Finished executing pythonRemoveTestsDir | |
@nix { "action": "setPhase", "phase": "installCheckPhase" } | |
running install tests | |
no Makefile or custom installCheckPhase, doing nothing | |
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" } | |
pythonCatchConflictsPhase | |
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" } | |
pythonRemoveBinBytecodePhase | |
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" } | |
pythonImportsCheckPhase | |
Executing pythonImportsCheckPhase | |
Check whether the following modules can be imported: pandas | |
@nix { "action": "setPhase", "phase": "pytestCheckPhase" } | |
pytestCheckPhase | |
Executing pytestCheckPhase | |
[1m============================= test session starts ==============================[0m | |
platform linux -- Python 3.10.10, pytest-7.2.1, pluggy-1.0.0 | |
rootdir: /build/source | |
[1mcollecting ... [0m[1m collecting 42 items [0m[1m collecting 240 items [0m[1m collecting 332 items [0m[1m collecting 444 items [0m[1m collecting 580 items [0m[1m collected 649 items / 45 deselected / 604 selected [0m | |
tests/test_api_types.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m [ 6%][0m | |
tests/test_config.py [32m.[0m[32m.[0m[32m [ 7%][0m | |
tests/test_dtypes.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m [ 8%][0m | |
tests/test_errors.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[33ms[0m[32m [ 11%][0m | |
tests/test_frame.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m [ 20%] | |
[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[33ms[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m [ 32%] | |
[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m [ 35%][0m | |
tests/test_indexes.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m [ 39%][0m | |
tests/test_interval.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m [ 39%][0m | |
tests/test_interval_index.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m [ 40%][0m | |
tests/test_io.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31mF[0m[31mF[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31m [ 49%][0m | |
tests/test_merge.py [32m.[0m[31m [ 49%][0m | |
tests/test_pandas.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31m [ 53%][0m | |
tests/test_plotting.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31m [ 57%][0m | |
tests/test_resampler.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31m [ 62%][0m | |
tests/test_scalars.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31m [ 67%][0m | |
tests/test_series.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31m [ 75%] | |
[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31m [ 84%][0m | |
tests/test_styler.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31m [ 89%][0m | |
tests/test_testing.py [32m.[0m[32m.[0m[31m [ 89%][0m | |
tests/test_timefuncs.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31m [ 96%][0m | |
tests/test_utility.py [32m.[0m[31m [ 96%][0m | |
tests/test_windowing.py [32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31m [100%][0m | |
=================================== FAILURES =================================== | |
[31m[1m___________________ test_read_sql_via_sqlalchemy_connection ____________________[0m | |
self = <sqlalchemy.engine.base.Connection object at 0x7fff0c951e40> | |
statement = 'select * from test', parameters = None | |
[94mdef[39;49;00m [92mexecute[39;49;00m([90m[39;49;00m | |
[96mself[39;49;00m,[90m[39;49;00m | |
statement: Executable,[90m[39;49;00m | |
parameters: Optional[_CoreAnyExecuteParams] = [94mNone[39;49;00m,[90m[39;49;00m | |
*,[90m[39;49;00m | |
execution_options: Optional[CoreExecuteOptionsParameter] = [94mNone[39;49;00m,[90m[39;49;00m | |
) -> CursorResult[Any]:[90m[39;49;00m | |
[90m [39;49;00m[33mr[39;49;00m[33m"""Executes a SQL statement construct and returns a[39;49;00m | |
[33m :class:`_engine.CursorResult`.[39;49;00m | |
[33m[39;49;00m | |
[33m :param statement: The statement to be executed. This is always[39;49;00m | |
[33m an object that is in both the :class:`_expression.ClauseElement` and[39;49;00m | |
[33m :class:`_expression.Executable` hierarchies, including:[39;49;00m | |
[33m[39;49;00m | |
[33m * :class:`_expression.Select`[39;49;00m | |
[33m * :class:`_expression.Insert`, :class:`_expression.Update`,[39;49;00m | |
[33m :class:`_expression.Delete`[39;49;00m | |
[33m * :class:`_expression.TextClause` and[39;49;00m | |
[33m :class:`_expression.TextualSelect`[39;49;00m | |
[33m * :class:`_schema.DDL` and objects which inherit from[39;49;00m | |
[33m :class:`_schema.ExecutableDDLElement`[39;49;00m | |
[33m[39;49;00m | |
[33m :param parameters: parameters which will be bound into the statement.[39;49;00m | |
[33m This may be either a dictionary of parameter names to values,[39;49;00m | |
[33m or a mutable sequence (e.g. a list) of dictionaries. When a[39;49;00m | |
[33m list of dictionaries is passed, the underlying statement execution[39;49;00m | |
[33m will make use of the DBAPI ``cursor.executemany()`` method.[39;49;00m | |
[33m When a single dictionary is passed, the DBAPI ``cursor.execute()``[39;49;00m | |
[33m method will be used.[39;49;00m | |
[33m[39;49;00m | |
[33m :param execution_options: optional dictionary of execution options,[39;49;00m | |
[33m which will be associated with the statement execution. This[39;49;00m | |
[33m dictionary can provide a subset of the options that are accepted[39;49;00m | |
[33m by :meth:`_engine.Connection.execution_options`.[39;49;00m | |
[33m[39;49;00m | |
[33m :return: a :class:`_engine.Result` object.[39;49;00m | |
[33m[39;49;00m | |
[33m """[39;49;00m[90m[39;49;00m | |
distilled_parameters = _distill_params_20(parameters)[90m[39;49;00m | |
[94mtry[39;49;00m:[90m[39;49;00m | |
> meth = statement._execute_on_connection[90m[39;49;00m | |
[1m[31mE AttributeError: 'str' object has no attribute '_execute_on_connection'[0m | |
[1m[31m/nix/store/i8316ag8a8bqcqb14c9pj7a02wss56ak-python3.10-SQLAlchemy-2.0.4/lib/python3.10/site-packages/sqlalchemy/engine/base.py[0m:1410: AttributeError | |
[33mThe above exception was the direct cause of the following exception:[0m | |
[94mdef[39;49;00m [92mtest_read_sql_via_sqlalchemy_connection[39;49;00m():[90m[39;49;00m | |
[94mwith[39;49;00m ensure_clean() [94mas[39;49;00m path:[90m[39;49;00m | |
db_uri = [33m"[39;49;00m[33msqlite:///[39;49;00m[33m"[39;49;00m + path[90m[39;49;00m | |
engine = sqlalchemy.create_engine(db_uri)[90m[39;49;00m | |
[90m[39;49;00m | |
[94mwith[39;49;00m engine.connect() [94mas[39;49;00m conn:[90m[39;49;00m | |
check(assert_type(DF.to_sql([33m"[39;49;00m[33mtest[39;49;00m[33m"[39;49;00m, con=conn), Union[[96mint[39;49;00m, [94mNone[39;49;00m]), [96mint[39;49;00m)[90m[39;49;00m | |
check([90m[39;49;00m | |
> assert_type(read_sql([33m"[39;49;00m[33mselect * from test[39;49;00m[33m"[39;49;00m, con=conn), DataFrame),[90m[39;49;00m | |
DataFrame,[90m[39;49;00m | |
)[90m[39;49;00m | |
[1m[31mtests/test_io.py[0m:807: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
[1m[31m/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py[0m:590: in read_sql | |
[94mreturn[39;49;00m pandas_sql.read_query([90m[39;49;00m | |
[1m[31m/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py[0m:1560: in read_query | |
result = [96mself[39;49;00m.execute(*args)[90m[39;49;00m | |
[1m[31m/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py[0m:1405: in execute | |
[94mreturn[39;49;00m [96mself[39;49;00m.connectable.execution_options().execute(*args, **kwargs)[90m[39;49;00m | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <sqlalchemy.engine.base.Connection object at 0x7fff0c951e40> | |
statement = 'select * from test', parameters = None | |
[94mdef[39;49;00m [92mexecute[39;49;00m([90m[39;49;00m | |
[96mself[39;49;00m,[90m[39;49;00m | |
statement: Executable,[90m[39;49;00m | |
parameters: Optional[_CoreAnyExecuteParams] = [94mNone[39;49;00m,[90m[39;49;00m | |
*,[90m[39;49;00m | |
execution_options: Optional[CoreExecuteOptionsParameter] = [94mNone[39;49;00m,[90m[39;49;00m | |
) -> CursorResult[Any]:[90m[39;49;00m | |
[90m [39;49;00m[33mr[39;49;00m[33m"""Executes a SQL statement construct and returns a[39;49;00m | |
[33m :class:`_engine.CursorResult`.[39;49;00m | |
[33m[39;49;00m | |
[33m :param statement: The statement to be executed. This is always[39;49;00m | |
[33m an object that is in both the :class:`_expression.ClauseElement` and[39;49;00m | |
[33m :class:`_expression.Executable` hierarchies, including:[39;49;00m | |
[33m[39;49;00m | |
[33m * :class:`_expression.Select`[39;49;00m | |
[33m * :class:`_expression.Insert`, :class:`_expression.Update`,[39;49;00m | |
[33m :class:`_expression.Delete`[39;49;00m | |
[33m * :class:`_expression.TextClause` and[39;49;00m | |
[33m :class:`_expression.TextualSelect`[39;49;00m | |
[33m * :class:`_schema.DDL` and objects which inherit from[39;49;00m | |
[33m :class:`_schema.ExecutableDDLElement`[39;49;00m | |
[33m[39;49;00m | |
[33m :param parameters: parameters which will be bound into the statement.[39;49;00m | |
[33m This may be either a dictionary of parameter names to values,[39;49;00m | |
[33m or a mutable sequence (e.g. a list) of dictionaries. When a[39;49;00m | |
[33m list of dictionaries is passed, the underlying statement execution[39;49;00m | |
[33m will make use of the DBAPI ``cursor.executemany()`` method.[39;49;00m | |
[33m When a single dictionary is passed, the DBAPI ``cursor.execute()``[39;49;00m | |
[33m method will be used.[39;49;00m | |
[33m[39;49;00m | |
[33m :param execution_options: optional dictionary of execution options,[39;49;00m | |
[33m which will be associated with the statement execution. This[39;49;00m | |
[33m dictionary can provide a subset of the options that are accepted[39;49;00m | |
[33m by :meth:`_engine.Connection.execution_options`.[39;49;00m | |
[33m[39;49;00m | |
[33m :return: a :class:`_engine.Result` object.[39;49;00m | |
[33m[39;49;00m | |
[33m """[39;49;00m[90m[39;49;00m | |
distilled_parameters = _distill_params_20(parameters)[90m[39;49;00m | |
[94mtry[39;49;00m:[90m[39;49;00m | |
meth = statement._execute_on_connection[90m[39;49;00m | |
[94mexcept[39;49;00m [96mAttributeError[39;49;00m [94mas[39;49;00m err:[90m[39;49;00m | |
> [94mraise[39;49;00m exc.ObjectNotExecutableError(statement) [94mfrom[39;49;00m [04m[96merr[39;49;00m[90m[39;49;00m | |
[1m[31mE sqlalchemy.exc.ObjectNotExecutableError: Not an executable object: 'select * from test'[0m | |
[1m[31m/nix/store/i8316ag8a8bqcqb14c9pj7a02wss56ak-python3.10-SQLAlchemy-2.0.4/lib/python3.10/site-packages/sqlalchemy/engine/base.py[0m:1412: ObjectNotExecutableError | |
[31m[1m_____________________ test_read_sql_via_sqlalchemy_engine ______________________[0m | |
[94mdef[39;49;00m [92mtest_read_sql_via_sqlalchemy_engine[39;49;00m():[90m[39;49;00m | |
[94mwith[39;49;00m ensure_clean() [94mas[39;49;00m path:[90m[39;49;00m | |
db_uri = [33m"[39;49;00m[33msqlite:///[39;49;00m[33m"[39;49;00m + path[90m[39;49;00m | |
engine = sqlalchemy.create_engine(db_uri)[90m[39;49;00m | |
[90m[39;49;00m | |
check(assert_type(DF.to_sql([33m"[39;49;00m[33mtest[39;49;00m[33m"[39;49;00m, con=engine), Union[[96mint[39;49;00m, [94mNone[39;49;00m]), [96mint[39;49;00m)[90m[39;49;00m | |
check([90m[39;49;00m | |
> assert_type(read_sql([33m"[39;49;00m[33mselect * from test[39;49;00m[33m"[39;49;00m, con=engine), DataFrame),[90m[39;49;00m | |
DataFrame,[90m[39;49;00m | |
)[90m[39;49;00m | |
[1m[31mtests/test_io.py[0m:819: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
[1m[31m/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py[0m:590: in read_sql | |
[94mreturn[39;49;00m pandas_sql.read_query([90m[39;49;00m | |
[1m[31m/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py[0m:1560: in read_query | |
result = [96mself[39;49;00m.execute(*args)[90m[39;49;00m | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <pandas.io.sql.SQLDatabase object at 0x7ffef44008e0> | |
args = ('select * from test',), kwargs = {} | |
[94mdef[39;49;00m [92mexecute[39;49;00m([96mself[39;49;00m, *args, **kwargs):[90m[39;49;00m | |
[90m [39;49;00m[33m"""Simple passthrough to SQLAlchemy connectable"""[39;49;00m[90m[39;49;00m | |
> [94mreturn[39;49;00m [96mself[39;49;00m.connectable.execution_options().execute(*args, **kwargs)[90m[39;49;00m | |
[1m[31mE AttributeError: 'OptionEngine' object has no attribute 'execute'[0m | |
[1m[31m/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py[0m:1405: AttributeError | |
[36m[1m=========================== short test summary info ============================[0m | |
[31mFAILED[0m tests/test_io.py::[1mtest_read_sql_via_sqlalchemy_connection[0m - sqlalchemy.exc.ObjectNotExecutableError: Not an executable object: 'select ... | |
[31mFAILED[0m tests/test_io.py::[1mtest_read_sql_via_sqlalchemy_engine[0m - AttributeError: 'OptionEngine' object has no attribute 'execute' | |
[31m====== [31m[1m2 failed[0m, [32m600 passed[0m, [33m2 skipped[0m, [33m45 deselected[0m[31m in 93.42s (0:01:33)[0m[31m ======[0m | |
/nix/store/pw17yc3mwmsci4jygwalj8ppg0drz31v-stdenv-linux/setup: line 1593: pop_var_context: head of shell_variables not a function context |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment