sot / kadi

Chandra commands and events
https://sot.github.io/kadi
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

find_attitude breaks import of kadi.events #145

Closed jeanconn closed 4 years ago

jeanconn commented 4 years ago

After installing find_attitude via conda in my test environment, I could not import kadi.events. A new environment with find_attitude removed did not have this problem.

(ska3mat) bash-4.1$ ipython
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:51:32) 
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import kadi.events
---------------------------------------------------------------------------
ImproperlyConfigured                      Traceback (most recent call last)
<ipython-input-1-08991e70577d> in <module>()
----> 1 import kadi.events

/fido.real/ska3dev/envs/ska3mat/lib/python3.6/site-packages/kadi/events/__init__.py in <module>()
     52 # https://docs.djangoproject.com/en/1.10/topics/settings/#calling-django-setup-is-required-for-standalone-django-usage
     53 try:
---> 54     django.setup()
     55 except AttributeError:
     56     pass

/fido.real/ska3dev/envs/ska3mat/lib/python3.6/site-packages/django/__init__.py in setup(set_prefix)
     25             '/' if settings.FORCE_SCRIPT_NAME is None else force_text(settings.FORCE_SCRIPT_NAME)
     26         )
---> 27     apps.populate(settings.INSTALLED_APPS)

/fido.real/ska3dev/envs/ska3mat/lib/python3.6/site-packages/django/apps/registry.py in populate(self, installed_apps)
     87                     raise ImproperlyConfigured(
     88                         "Application labels aren't unique, "
---> 89                         "duplicates: %s" % app_config.label)
     90 
     91                 self.app_configs[app_config.label] = app_config

ImproperlyConfigured: Application labels aren't unique, duplicates: web

In [2]:    

Originally posted by @jeanconn in https://github.com/sot/skare3/pull/222#issuecomment-556893056

taldcroft commented 4 years ago

I think this is a kadi issue and transferred. It may be OBE with https://github.com/sot/kadi/pull/143, but I'll check this later.

taldcroft commented 4 years ago

OK, I am seeing this with #143.