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
Calling version_query.predict_version_str() from within a wheel package that was submitted with a Spark job causes the following error:
Traceback (most recent call last):
File "/project/root/run/run.py", line 4, in <module>
print(f"Running version {some_module.get_version()}")
File "/project/root/dist/package-0.1.0.dev1+bfcaa08b-py3-none-any.whl/some_module.py", line 5, in get_version
File "/project/root/venv/lib/python3.7/site-packages/version_query/query.py", line 96, in predict_version_str
return predict_caller(2).to_str()
File "/project/root/venv/lib/python3.7/site-packages/version_query/query.py", line 81, in predict_caller
here = _caller_folder(stack_level + 1)
File "/project/root/venv/lib/python3.7/site-packages/version_query/query.py", line 22, in _caller_folder
assert here.is_file(), here
AssertionError: /project/root/dist/package-0.1.0.dev1+bfcaa08b-py3-none-any.whl/some_module.py
@mbdevpl I'd be happy to work on this myself, if there is a reasonable change that you are going to review, and merge a PR related to this issue. Any feedback from your side would be highly appreciated. Thanks!
Calling
version_query.predict_version_str()
from within a wheel package that was submitted with a Spark job causes the following error:I've created a minimal example to reproduce this bug: https://github.com/mlangc/reproduce-spark-related-version-query-issue
The text was updated successfully, but these errors were encountered: