Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SomeoneSerge/72a8be59e1489586dfbad40a42a973e9 to your computer and use it in GitHub Desktop.
Save SomeoneSerge/72a8be59e1489586dfbad40a42a973e9 to your computer and use it in GitHub Desktop.
nix log /nix/store/dxkcrkg6f9xdc01l6nhjzn782dffksa2-python3.10-pandas-stubs-1.5.3.230214.drv
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...
WARNING: 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.
Processing /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-7e44_v79/wheels/79/4b/9b/fc24941d75fdb959a71ee80195b2c89d6ae9389f9f0f80fb22
Successfully built pandas-stubs
Finished creating a wheel...
Finished executing pipBuildPhase
buildPhase completed in 31 seconds
@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/5cajki3sbdsrjab3qy9f89kxqqxxdk5n-python3.10-pandas-stubs-1.5.3.230214
checking for references to /build/ in /nix/store/5cajki3sbdsrjab3qy9f89kxqqxxdk5n-python3.10-pandas-stubs-1.5.3.230214...
patching script interpreter paths in /nix/store/5cajki3sbdsrjab3qy9f89kxqqxxdk5n-python3.10-pandas-stubs-1.5.3.230214
stripping (with command strip and flags -S) in /nix/store/5cajki3sbdsrjab3qy9f89kxqqxxdk5n-python3.10-pandas-stubs-1.5.3.230214/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/cvgdi63xnpas60ahm1frlcyy14za4asg-python3.10-pandas-stubs-1.5.3.230214-dist
checking for references to /build/ in /nix/store/cvgdi63xnpas60ahm1frlcyy14za4asg-python3.10-pandas-stubs-1.5.3.230214-dist...
patching script interpreter paths in /nix/store/cvgdi63xnpas60ahm1frlcyy14za4asg-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
============================= test session starts ==============================
platform linux -- Python 3.10.10, pytest-7.2.1, pluggy-1.0.0
rootdir: /build/source
collecting ...  collecting 42 items  collecting 240 items  collecting 271 items  collecting 332 items  collecting 360 items  collecting 415 items  collecting 444 items  collecting 553 items  collecting 625 items  collected 649 items / 45 deselected / 604 selected 
tests/test_api_types.py .......................................... [ 6%]
tests/test_config.py .. [ 7%]
tests/test_dtypes.py ........ [ 8%]
tests/test_errors.py ..................s [ 11%]
tests/test_frame.py .................................................... [ 20%]
..........................s............................................. [ 32%]
................... [ 35%]
tests/test_indexes.py ...................... [ 39%]
tests/test_interval.py .... [ 39%]
tests/test_interval_index.py .... [ 40%]
tests/test_io.py ............................................FF........ [ 49%]
tests/test_merge.py . [ 49%]
tests/test_pandas.py ......................... [ 53%]
tests/test_plotting.py ........................ [ 57%]
tests/test_resampler.py ............................. [ 62%]
tests/test_scalars.py ............................. [ 67%]
tests/test_series.py ................................................... [ 75%]
........................................................ [ 84%]
tests/test_styler.py ........................... [ 89%]
tests/test_testing.py .. [ 89%]
tests/test_timefuncs.py .......................................... [ 96%]
tests/test_utility.py . [ 96%]
tests/test_windowing.py ................... [100%]
=================================== FAILURES ===================================
___________________ test_read_sql_via_sqlalchemy_connection ____________________
self = <sqlalchemy.engine.base.Connection object at 0x7ffef7481e40>
statement = 'select * from test', parameters = None
def execute(
self,
statement: Executable,
parameters: Optional[_CoreAnyExecuteParams] = None,
*,
execution_options: Optional[CoreExecuteOptionsParameter] = None,
) -> CursorResult[Any]:
 r"""Executes a SQL statement construct and returns a
 :class:`_engine.CursorResult`.

 :param statement: The statement to be executed. This is always
 an object that is in both the :class:`_expression.ClauseElement` and
 :class:`_expression.Executable` hierarchies, including:

 * :class:`_expression.Select`
 * :class:`_expression.Insert`, :class:`_expression.Update`,
 :class:`_expression.Delete`
 * :class:`_expression.TextClause` and
 :class:`_expression.TextualSelect`
 * :class:`_schema.DDL` and objects which inherit from
 :class:`_schema.ExecutableDDLElement`

 :param parameters: parameters which will be bound into the statement.
 This may be either a dictionary of parameter names to values,
 or a mutable sequence (e.g. a list) of dictionaries. When a
 list of dictionaries is passed, the underlying statement execution
 will make use of the DBAPI ``cursor.executemany()`` method.
 When a single dictionary is passed, the DBAPI ``cursor.execute()``
 method will be used.

 :param execution_options: optional dictionary of execution options,
 which will be associated with the statement execution. This
 dictionary can provide a subset of the options that are accepted
 by :meth:`_engine.Connection.execution_options`.

 :return: a :class:`_engine.Result` object.

 """
distilled_parameters = _distill_params_20(parameters)
try:
> meth = statement._execute_on_connection
E AttributeError: 'str' object has no attribute '_execute_on_connection'
/nix/store/i8316ag8a8bqcqb14c9pj7a02wss56ak-python3.10-SQLAlchemy-2.0.4/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1410: AttributeError
The above exception was the direct cause of the following exception:
def test_read_sql_via_sqlalchemy_connection():
with ensure_clean() as path:
db_uri = "sqlite:///" + path
engine = sqlalchemy.create_engine(db_uri)

with engine.connect() as conn:
check(assert_type(DF.to_sql("test", con=conn), Union[int, None]), int)
check(
> assert_type(read_sql("select * from test", con=conn), DataFrame),
DataFrame,
)
tests/test_io.py:807:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py:590: in read_sql
return pandas_sql.read_query(
/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py:1560: in read_query
result = self.execute(*args)
/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py:1405: in execute
return self.connectable.execution_options().execute(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sqlalchemy.engine.base.Connection object at 0x7ffef7481e40>
statement = 'select * from test', parameters = None
def execute(
self,
statement: Executable,
parameters: Optional[_CoreAnyExecuteParams] = None,
*,
execution_options: Optional[CoreExecuteOptionsParameter] = None,
) -> CursorResult[Any]:
 r"""Executes a SQL statement construct and returns a
 :class:`_engine.CursorResult`.

 :param statement: The statement to be executed. This is always
 an object that is in both the :class:`_expression.ClauseElement` and
 :class:`_expression.Executable` hierarchies, including:

 * :class:`_expression.Select`
 * :class:`_expression.Insert`, :class:`_expression.Update`,
 :class:`_expression.Delete`
 * :class:`_expression.TextClause` and
 :class:`_expression.TextualSelect`
 * :class:`_schema.DDL` and objects which inherit from
 :class:`_schema.ExecutableDDLElement`

 :param parameters: parameters which will be bound into the statement.
 This may be either a dictionary of parameter names to values,
 or a mutable sequence (e.g. a list) of dictionaries. When a
 list of dictionaries is passed, the underlying statement execution
 will make use of the DBAPI ``cursor.executemany()`` method.
 When a single dictionary is passed, the DBAPI ``cursor.execute()``
 method will be used.

 :param execution_options: optional dictionary of execution options,
 which will be associated with the statement execution. This
 dictionary can provide a subset of the options that are accepted
 by :meth:`_engine.Connection.execution_options`.

 :return: a :class:`_engine.Result` object.

 """
distilled_parameters = _distill_params_20(parameters)
try:
meth = statement._execute_on_connection
except AttributeError as err:
> raise exc.ObjectNotExecutableError(statement) from err
E sqlalchemy.exc.ObjectNotExecutableError: Not an executable object: 'select * from test'
/nix/store/i8316ag8a8bqcqb14c9pj7a02wss56ak-python3.10-SQLAlchemy-2.0.4/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1412: ObjectNotExecutableError
_____________________ test_read_sql_via_sqlalchemy_engine ______________________
def test_read_sql_via_sqlalchemy_engine():
with ensure_clean() as path:
db_uri = "sqlite:///" + path
engine = sqlalchemy.create_engine(db_uri)

check(assert_type(DF.to_sql("test", con=engine), Union[int, None]), int)
check(
> assert_type(read_sql("select * from test", con=engine), DataFrame),
DataFrame,
)
tests/test_io.py:819:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py:590: in read_sql
return pandas_sql.read_query(
/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py:1560: in read_query
result = self.execute(*args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pandas.io.sql.SQLDatabase object at 0x7ffeb60048e0>
args = ('select * from test',), kwargs = {}
def execute(self, *args, **kwargs):
 """Simple passthrough to SQLAlchemy connectable"""
> return self.connectable.execution_options().execute(*args, **kwargs)
E AttributeError: 'OptionEngine' object has no attribute 'execute'
/nix/store/pfqx9c3fxmz0sm232dvly8wrfpzxpmxv-python3.10-pandas-1.5.3/lib/python3.10/site-packages/pandas/io/sql.py:1405: AttributeError
=========================== short test summary info ============================
FAILED tests/test_io.py::test_read_sql_via_sqlalchemy_connection - sqlalchemy.exc.ObjectNotExecutableError: Not an executable object: 'select ...
FAILED tests/test_io.py::test_read_sql_via_sqlalchemy_engine - AttributeError: 'OptionEngine' object has no attribute 'execute'
===== 2 failed, 600 passed, 2 skipped, 45 deselected in 379.27s (0:06:19) ======
/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