Closed EBGlom closed 9 months ago
Thanks for reporting! Two quick questions:
Edit: The reported bug is not likely related to the second item above. Will look into this. A temporary workaround is to drop the files onto qats gui instead of opening the "Import from file" dialogue -- if possible.
poetry install
in a cloned repo?poetry install
And you have installed the poetry-dynamic-version-plugin as described in README.md?
poetry self add "poetry-dynamic-versioning[plugin]"
If yes, could you also check the poetry-core version? I believe poetry-core >= 1.0.0
is required.
By the way, how did you extract the qats version?
Long story short; qats --version
(or in an interactive python session: qats.__version__
) will currently always return the string "0.0.0" when in an editable install (e.g., from poetry install
). This is due to how the dynamic versioning plugin works. On the other hand; if installed from a built distribution (e.g., from PyPi), it should always return the expected version string.
Edit: the original comment that stated that Help > About dialogue should show the correct version string is not correct (when in an editable install).
If dynamic versioning plugin works, the following python code should render the correct version string:
>>> from importlib import metadata
>>> print(metadata.version("qats"))
Ehm.. no :) But running that command crashed poetry on my computer.... I might have have old versions of poetry and poetry-core.
I used qats --version, but the GUI also returned version 0.0.0 But all of this is without poetry-dynamic-versioning
But all of this is without poetry-dynamic-versioning
The metadata.version("qats") will only work if poetry-dynamic-versioning is installed at the time when poetry install
is executed
@EBGlom PR #121 fixes a proper version string, even after poetry install
. Provided that the dynamic versioning plugin is properly installed, that is. Will be merged to master very soon.
Just a final update: It took until now to re-install poetry and PyCharm(!) to get poetry working in PyCharm again. Maybe the readme should be update with a warning to ensure that poetry is up to date before installing the dynamic versioning plugin.
With the plugin, the version is no longer 0.0.0, btw.
Describe the bug Pressing "Import from file" in the GUI causes error
To Reproduce Steps to reproduce the behavior:
Expected behavior Import dialogue opens
Screenshots
Desktop (please complete the following information):
Additional context PySide6 causes the error: