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

checkUpdates() function doesn't work #15

Closed kyleellefsen closed 7 years ago

kyleellefsen commented 7 years ago

crashes with:

Traceback (most recent call last):
  File "C:\Users\kyle\Documents\GitHub\flika\flika\global_vars.py", line 199, in checkUpdates
    version = re.findall(r'version=([\d\.]*)', open('flika.py', 'r').read()[:100])
FileNotFoundError: [Errno 2] No such file or directory: 'flika.py'
BrettJSettle commented 7 years ago

Version compare works, but uninstalling and reinstalling Flika is tricky

kyleellefsen commented 7 years ago

We need to check if the currently running version of flika is installed via pip or not. If it is,

pip install -U flika.

If it's not, upgrade the way we have it now.

Telling people they need to manually restart flika is fine for now.

kyleellefsen commented 7 years ago

This works now.