unable to read _version.py
Package:
pandas
30911

Exception Class:
NotThisMethod
Raise code
def versions_from_file(filename):
"""Try to determine the version from _version.py if present."""
try:
with open(filename) as f:
contents = f.read()
except OSError:
raise NotThisMethod("unable to read _version.py")
mo = re.search(
r"version_json = '''\n(.*)''' # END VERSION_JSON", contents, re.M | re.S
)
if not mo:
mo = re.search(
r"version_json = '''\r\n(.*)''' # END VERSION_JSON", contents, re.M | re.S
)
Links to the raise (1)
https://github.com/pandas-dev/pandas/blob/b3e335254f46a526ee3ce9bb757eac4011d9d1fe/versioneer.py#L1242See also in the other packages (5)
(❌️ No answer)
numpy/unable-to-read-version-py/
(❌️ No answer)
bokeh/unable-to-read-version-py/
(❌️ No answer)
dask/unable-to-read-version-py/
(❌️ No answer)
statsmodels/unable-to-read-version-py/
(❌️ No answer)
toolz/unable-to-read-version-py/
NO FIXES YET
Just press the button and we will add solution
to this exception as soon as possible
* As many users press the button, the faster we create a fix
Add a possible fix
Please authorize to post fix