CI: Builds failing in ``pandas.show_versions()``
See original GitHub issueFailing on all platofrms. E.g. https://github.com/pandas-dev/pandas/runs/4581277621
Run python -c "import pandas; pandas.show_versions();"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/runner/work/pandas/pandas/pandas/util/_print_versions.py", line 109, in show_versions
deps = _get_dependency_info()
File "/home/runner/work/pandas/pandas/pandas/util/_print_versions.py", line 88, in _get_dependency_info
mod = import_optional_dependency(modname, errors="ignore")
File "/home/runner/work/pandas/pandas/pandas/compat/_optional.py", line 115, in import_optional_dependency
module = importlib.import_module(name)
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 945, in _find_spec
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 83, in find_spec
return method()
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 104, in spec_for_pip
if self.pip_imported_during_build():
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 115, in pip_imported_during_build
return any(
File "/opt/hostedtoolcache/Python/3.10.1/x64/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 116, in <genexpr>
frame.f_globals['__file__'].endswith('setup.py')
KeyError: '__file__'
Error: Process completed with exit code 1.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
Contributing to pandas — pandas 1.2.2 documentation
import pandas as pd >>> pd.show_versions() ... To test out code changes, you'll need to build pandas from source, which requires a C/C++...
Read more >Contributing to pandas — pandas 0.24.1 documentation
Include the full version string of pandas and its dependencies. You can use the built in function: >>> import pandas as pd >>>...
Read more >Contributing to pandas — pandas 0.19.0 documentation - PyData |
from pandas.util.print_versions import show_versions >>> show_versions() ... Generating any warnings will cause the build to fail; thus these are part of ...
Read more >Contributing to pandas — pandas 0.23.1 documentation
Include the full version string of pandas and its dependencies. You can use the built in function: >>> import pandas as pd >>>...
Read more >Contributing to pandas — pandas 0.21.1 documentation
import pandas as pd >>> pd.show_versions() ... the build dependencies python -m pip install -r ci/requirements_dev.txt # Build and install pandas python ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Probably fine to just remove
pip
from the list of packages to print the version of then?60.0.3 did not fix all problems for us unfortunately. When running this locally I get
It looks like it tries to distutils from stdlib, but if running
it is pulling the distutils from
Not sure what is different when doing this via pandas.show_versions()