ValueError: Available apps isn't a subset

105 views
Skip to first unread message

Jose Paul

unread,
Oct 29, 2015, 6:47:09 AM10/29/15
to Django developers (Contributions to Django itself)

I am getting following error when I tried to run DJango 1,8 test cases
Please help to understand the reason behind this .


ERROR: test_reuse_rollback_commit (transactions.tests.AtomicInsideTransactionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\test\testcases.py", line 182, in __call__
    self._pre_setup()
  File "C:\Python27\lib\site-packages\django\test\testcases.py", line 779, in _pre_setup
    apps.set_available_apps(self.available_apps)
  File "C:\Python27\lib\site-packages\django\apps\registry.py", line 285, in set_available_apps
    "apps, extra apps: %s" % ", ".join(available - installed))
ValueError: Available apps isn't a subset of installed apps, extra apps: transactions

Tim Graham

unread,
Oct 29, 2015, 8:49:42 AM10/29/15
to Django developers (Contributions to Django itself)
What command are you using to run the tests? It is possible you have stale pyc files that needed to be deleted? (git clean -fdx).

Jose Paul

unread,
Oct 30, 2015, 4:29:31 AM10/30/15
to Django developers (Contributions to Django itself)
Hi Tim,

Thank you for the reply .
I am running the whole test case   from Eclipse using runtests.py

Clean did not worked .Please see the error below .

ERROR: test_flush (fixtures_migration.tests.TestNoInitialDataLoading)

----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\test\testcases.py", line 182, in __call__
    self._pre_setup()
  File "C:\Python27\lib\site-packages\django\test\testcases.py", line 779, in _pre_setup
    apps.set_available_apps(self.available_apps)
  File "C:\Python27\lib\site-packages\django\apps\registry.py", line 285, in set_available_apps
    "apps, extra apps: %s" % ", ".join(available - installed))
ValueError: Available apps isn't a subset of installed apps, extra apps: fixtures_migration

======================================================================
ERROR: test_migrate (fixtures_migration.tests.TestNoInitialDataLoading)

----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\test\testcases.py", line 182, in __call__
    self._pre_setup()
  File "C:\Python27\lib\site-packages\django\test\testcases.py", line 779, in _pre_setup
    apps.set_available_apps(self.available_apps)
  File "C:\Python27\lib\site-packages\django\apps\registry.py", line 285, in set_available_apps
    "apps, extra apps: %s" % ", ".join(available - installed))
ValueError: Available apps isn't a subset of installed apps, extra apps: fixtures_migration

======================================================================
ERROR: test_flush (fixtures_model_package.tests.TestNoInitialDataLoading)

----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\test\testcases.py", line 182, in __call__
    self._pre_setup()
  File "C:\Python27\lib\site-packages\django\test\testcases.py", line 779, in _pre_setup
    apps.set_available_apps(self.available_apps)
  File "C:\Python27\lib\site-packages\django\apps\registry.py", line 285, in set_available_apps
    "apps, extra apps: %s" % ", ".join(available - installed))
ValueError: Available apps isn't a subset of installed apps, extra apps: fixtures_model_package

Tim Graham

unread,
Oct 30, 2015, 7:52:42 AM10/30/15
to Django developers (Contributions to Django itself)
Let's try to debug via chat in #django-dev rather than over email.
Reply all
Reply to author
Forward
0 new messages