flika-org / flika

An interactive image processing program for biologists written in Python.
http://flika-org.github.io/
MIT License
22 stars 1 forks source link

Unable to install plugins in clean install #60

Closed kyleellefsen closed 9 months ago

kyleellefsen commented 9 months ago

I created a fresh flika install in a new python venv using Python 3.11.7 and flika version 0.3.0 installed from pypi. Once installed, I opened flika by running flika from the command line. I then opened the Plugin Manager and clicked on any of the displayed plugins.

Full stack trace:

2024-02-06 16:41:17,211 - ERROR - Uncaught exception
Traceback (most recent call last):
  File "/Users/kylenv/Desktop/flika_test/flika_py/lib/python3.11/site-packages/flika/app/plugin_manager.py", line 282, in <lambda>
    self.pluginList.currentItemChanged.connect(lambda new, old: self.pluginSelected(new))
                                                                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kylenv/Desktop/flika_test/flika_py/lib/python3.11/site-packages/flika/app/plugin_manager.py", line 348, in pluginSelected
    version = parse_version(plugin.version)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kylenv/Desktop/flika_test/flika_py/lib/python3.11/site-packages/pkg_resources/_vendor/packaging/version.py", line 198, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: ''

This bug was first reported in a plugin package here: https://github.com/kyleellefsen/detect_puffs/issues/1

kyleellefsen commented 9 months ago

This was fixed in https://github.com/flika-org/flika/commit/0e863faa9d3f79aa0a27f9522fe4a7309c97d526

gddickinson commented 9 months ago

Thanks for fixing this Kyle!

On Tue, Feb 6, 2024 at 11:44 PM Kyle Ellefsen @.***> wrote:

This was fixed in 0e863fa https://github.com/flika-org/flika/commit/0e863faa9d3f79aa0a27f9522fe4a7309c97d526

— Reply to this email directly, view it on GitHub https://github.com/flika-org/flika/issues/60#issuecomment-1931329645, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABY57Y4ONYIQHUMGZ5ZRYY3YSMIDRAVCNFSM6AAAAABC5GHQOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZRGMZDSNRUGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

kousikkun commented 9 months ago

Hey! Thanks! it works fine now :)