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
Unfortunately, the actual version number is '999' which make the following pandas code to fail with:
Traceback (most recent call last):
File "test.py", line 4, in <module>
pd.DataFrame({'a': range(10)}).to_xarray()
File "pandas/core/generic.py", line 3243, in to_xarray
File "pandas/compat/_optional.py", line 161, in import_optional_dependency
ImportError: Pandas requires version '2022.03.0' or newer of 'xarray' (version '999' currently installed).
Uh oh!
There was an error while loading. Please reload this page.
What is your issue?
I'm trying to bundle some code using Xarray with PyInstaller.
As a MRE, consider the following file:
and the following command-line to build and run the Pyinstaller executable:
pyinstaller test.py && dist/test/test
Ideally, I would have expected the printed version to be
2023.8.0
(as when running the script without Pyinstaller).The fallback
9999
fromxarray/xarray/__init__.py
Line 55 in b08a9d8
Unfortunately, the actual version number is
'999'
which make the following pandas code to fail with:As a workaround, I added the line
in my
test.py
file...Versions
The text was updated successfully, but these errors were encountered: