You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix> using installer module
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
Looks like yfinance test suite is not ready for numpy 1.26.4.
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-yfinance-0.2.40-2.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-yfinance-0.2.40-2.fc37.x86_64/usr/lib/python3.10/site-packages+ /usr/bin/pytest -ra -m 'not network' tests/__init__.py tests/context.py tests/test_prices.py tests/test_ticker.py tests/test_utils.py==================================================================================== test session starts ====================================================================================platform linux -- Python 3.10.14, pytest-8.1.1, pluggy-1.4.0rootdir: /home/tkloczko/rpmbuild/BUILD/yfinance-0.2.40plugins: time-machine-2.14.1, typeguard-4.2.1, flaky-3.8.1, mock-3.14.0, requests-mock-1.12.1, rerunfailures-12.0collected 0 items / 4 errors========================================================================================== ERRORS ===========================================================================================_____________________________________________________________________________ ERROR collecting tests/context.py _____________________________________________________________________________ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/yfinance-0.2.40/tests/context.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)tests/context.py:7: in <module> import yfinanceyfinance/__init__.py:22: in <module> from .ticker import Tickeryfinance/ticker.py:25: in <module> import pandas as _pd/usr/lib64/python3.10/site-packages/pandas/__init__.py:19: in <module> raise ImportError(E ImportError: Unable to import required dependencies:E numpy: Error importing numpy: you should not try to import numpy fromE its source directory; please exit the numpy source tree, and relaunchE your python interpreter from there.___________________________________________________________________________ ERROR collecting tests/test_prices.py ___________________________________________________________________________ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/yfinance-0.2.40/tests/test_prices.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)tests/test_prices.py:1: in <module> from .context import yfinance as yftests/context.py:7: in <module> import yfinanceyfinance/__init__.py:22: in <module> from .ticker import Tickeryfinance/ticker.py:25: in <module> import pandas as _pd/usr/lib64/python3.10/site-packages/pandas/__init__.py:19: in <module> raise ImportError(E ImportError: Unable to import required dependencies:E numpy: cannot import name 'set_module' from 'numpy.core.overrides' (/usr/lib64/python3.10/site-packages/numpy/core/overrides.py)___________________________________________________________________________ ERROR collecting tests/test_ticker.py ___________________________________________________________________________ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/yfinance-0.2.40/tests/test_ticker.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)tests/test_ticker.py:11: in <module> import pandas as pd/usr/lib64/python3.10/site-packages/pandas/__init__.py:19: in <module> raise ImportError(E ImportError: Unable to import required dependencies:E numpy: cannot import name 'set_module' from 'numpy.core.overrides' (/usr/lib64/python3.10/site-packages/numpy/core/overrides.py)___________________________________________________________________________ ERROR collecting tests/test_utils.py ____________________________________________________________________________ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/yfinance-0.2.40/tests/test_utils.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:/usr/lib64/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level)tests/test_utils.py:16: in <module> from .context import yfinance as yftests/context.py:7: in <module> import yfinanceyfinance/__init__.py:22: in <module> from .ticker import Tickeryfinance/ticker.py:25: in <module> import pandas as _pd/usr/lib64/python3.10/site-packages/pandas/__init__.py:19: in <module> raise ImportError(E ImportError: Unable to import required dependencies:E numpy: cannot import name 'set_module' from 'numpy.core.overrides' (/usr/lib64/python3.10/site-packages/numpy/core/overrides.py)================================================================================== short test summary info ==================================================================================ERROR tests/context.pyERROR tests/test_prices.pyERROR tests/test_ticker.pyERROR tests/test_utils.py!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!===================================================================================== 4 errors in 0.30s =====================================================================================
Describe bug
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulesinstaller
modulecut off from access to the public network
(pytest is executed with-m "not network"
)Looks like
yfinance
test suite is not ready fornumpy
1.26.4.Here is pytest output:
List of installed modules in build env:
Simple code that reproduces your problem
N/A
Debug log
N/A
Bad data proof
No response
yfinance
version0.2.40
Python version
3.10.14
Operating system
Linux/x86_64
The text was updated successfully, but these errors were encountered: