question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: Could not import settings 'desktop.settings' (Is it on sys.path? Is there an import error in the settings file?): cannot import name _compare_digest

See original GitHub issue

I am getting an error building ‘hue’ in Django on Ubuntu 14.04 LTS:

Traceback (most recent call last): File “/home/ubuntu/hue/build/env/bin/hue”, line 9, in <module> load_entry_point(‘desktop==3.10.0’, ‘console_scripts’, ‘hue’)() File “/home/ubuntu/hue/desktop/core/src/desktop/manage_entry.py”, line 59, in entry execute_from_command_line(sys.argv) File “/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/init.py”, line 399, in execute_from_command_line utility.execute() File “/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/init.py”, line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File “/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/init.py”, line 261, in fetch_command commands = get_commands() File “/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/init.py”, line 107, in get_commands apps = settings.INSTALLED_APPS File “/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/init.py”, line 54, in getattr self._setup(name) File “/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/init.py”, line 49, in _setup self._wrapped = Settings(settings_module) File “/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/init.py”, line 132, in init % (self.SETTINGS_MODULE, e) ImportError: Could not import settings ‘desktop.settings’ (Is it on sys.path? Is there an import error in the settings file?): cannot import name _compare_digest make[1]: *** [/home/ubuntu/hue/desktop/desktop.db] Error 1 make[1]: Leaving directory `/home/ubuntu/hue/desktop’ make: *** [desktop] Error 2

I tried all the suggestions in these Stack Overflow incidents without success:

http://stackoverflow.com/questions/24853027/django-importerror-cannot-import-name-compare-digest

http://stackoverflow.com/questions/33141662/error-while-installing-hue-in-ubuntu-14-04

http://stackoverflow.com/questions/24853027/django-importerror-cannot-import-name-compare-digest

I can isolate the problem and it happens with ‘vanilla Django’ built from git hub:

ubuntu@ip-10-0-1-141:~/test123$ python manage.py runserver Traceback (most recent call last): File “manage.py”, line 10, in <module> execute_from_command_line(sys.argv) File “/home/ubuntu/anaconda/lib/python2.7/site-packages/Django-1.11.dev20160530141745-py2.7.egg/django/core/management/init.py”, line 367, in execute_from_command_line utility.execute() File “/home/ubuntu/anaconda/lib/python2.7/site-packages/Django-1.11.dev20160530141745-py2.7.egg/django/core/management/init.py”, line 316, in execute settings.INSTALLED_APPS File “/home/ubuntu/anaconda/lib/python2.7/site-packages/Django-1.11.dev20160530141745-py2.7.egg/django/conf/init.py”, line 53, in getattr self._setup(name) File “/home/ubuntu/anaconda/lib/python2.7/site-packages/Django-1.11.dev20160530141745-py2.7.egg/django/conf/init.py”, line 41, in _setup self._wrapped = Settings(settings_module) File “/home/ubuntu/anaconda/lib/python2.7/site-packages/Django-1.11.dev20160530141745-py2.7.egg/django/conf/init.py”, line 97, in init mod = importlib.import_module(self.SETTINGS_MODULE) File “/home/ubuntu/anaconda/lib/python2.7/importlib/init.py”, line 37, in import_module import(name) ImportError: No module named test123.settings

Any suggestions?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dbl001commented, Jun 1, 2016

Yes.

ubuntu@ip-10-0-1-141:~/hue$ git pull Already up-to-date.

The test123 result is from a clone of django.

$ cd django $ git pull $ rm -rf /home/ubuntu/anaconda/lib/python2.7/site-packages/django $ python setup.py install

ubuntu@ip-10-0-1-141:~$ cd hue ubuntu@ip-10-0-1-141:~/hue$ make apps cd /home/ubuntu/hue/maven && mvn install [INFO] Scanning for projects… [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Hue Maven Parent POM 3.10.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-enforcer-plugin:1.0:enforce (default) @ hue-parent — [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ hue-parent — [INFO] Installing /home/ubuntu/hue/maven/pom.xml to /home/ubuntu/.m2/repository/com/cloudera/hue/hue-parent/3.10.0-SNAPSHOT/hue-parent-3.10.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.610 s [INFO] Finished at: 2016-06-01T17:13:08+00:00 [INFO] Final Memory: 16M/460M [INFO] ------------------------------------------------------------------------ make[1]: Entering directory /home/ubuntu/hue/desktop' make -C core env-install make[2]: Entering directory/home/ubuntu/hue/desktop/core’ — Installing desktop into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/desktop.egg-info/requires.txt writing src/desktop.egg-info/PKG-INFO writing top-level names to src/desktop.egg-info/top_level.txt writing dependency_links to src/desktop.egg-info/dependency_links.txt writing entry points to src/desktop.egg-info/entry_points.txt reading manifest file ‘src/desktop.egg-info/SOURCES.txt’ writing manifest file ‘src/desktop.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/desktop.egg-link (link to src) desktop 3.10.0 is already the active version in easy-install.pth Installing hue script to /home/ubuntu/hue/build/env/bin Installing supervisor script to /home/ubuntu/hue/build/env/bin

Installed /home/ubuntu/hue/desktop/core/src make[2]: Leaving directory /home/ubuntu/hue/desktop/core' make -C libs/aws env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/aws’ — Installing aws into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/aws.egg-info/requires.txt writing src/aws.egg-info/PKG-INFO writing top-level names to src/aws.egg-info/top_level.txt writing dependency_links to src/aws.egg-info/dependency_links.txt writing entry points to src/aws.egg-info/entry_points.txt reading manifest file ‘src/aws.egg-info/SOURCES.txt’ writing manifest file ‘src/aws.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/aws.egg-link (link to src) aws 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/aws/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/aws' make -C libs/hadoop env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/hadoop’ — Installing hadoop into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/hadoop.egg-info/requires.txt writing src/hadoop.egg-info/PKG-INFO writing top-level names to src/hadoop.egg-info/top_level.txt writing dependency_links to src/hadoop.egg-info/dependency_links.txt writing entry points to src/hadoop.egg-info/entry_points.txt reading manifest file ‘src/hadoop.egg-info/SOURCES.txt’ writing manifest file ‘src/hadoop.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/hadoop.egg-link (link to src) hadoop 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/hadoop/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/hadoop' make -C libs/indexer env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/indexer’ — Installing indexer into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/indexer.egg-info/requires.txt writing src/indexer.egg-info/PKG-INFO writing top-level names to src/indexer.egg-info/top_level.txt writing dependency_links to src/indexer.egg-info/dependency_links.txt writing entry points to src/indexer.egg-info/entry_points.txt reading manifest file ‘src/indexer.egg-info/SOURCES.txt’ writing manifest file ‘src/indexer.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/indexer.egg-link (link to src) indexer 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/indexer/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/indexer' make -C libs/liboauth env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/liboauth’ — Installing liboauth into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/liboauth.egg-info/requires.txt writing src/liboauth.egg-info/PKG-INFO writing top-level names to src/liboauth.egg-info/top_level.txt writing dependency_links to src/liboauth.egg-info/dependency_links.txt writing entry points to src/liboauth.egg-info/entry_points.txt reading manifest file ‘src/liboauth.egg-info/SOURCES.txt’ writing manifest file ‘src/liboauth.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/liboauth.egg-link (link to src) liboauth 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/liboauth/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/liboauth' make -C libs/liboozie env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/liboozie’ — Installing liboozie into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/liboozie.egg-info/requires.txt writing src/liboozie.egg-info/PKG-INFO writing top-level names to src/liboozie.egg-info/top_level.txt writing dependency_links to src/liboozie.egg-info/dependency_links.txt writing entry points to src/liboozie.egg-info/entry_points.txt reading manifest file ‘src/liboozie.egg-info/SOURCES.txt’ writing manifest file ‘src/liboozie.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/liboozie.egg-link (link to src) liboozie 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/liboozie/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/liboozie' make -C libs/libopenid env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/libopenid’ — Installing libopenid into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/libopenid.egg-info/requires.txt writing src/libopenid.egg-info/PKG-INFO writing top-level names to src/libopenid.egg-info/top_level.txt writing dependency_links to src/libopenid.egg-info/dependency_links.txt writing entry points to src/libopenid.egg-info/entry_points.txt reading manifest file ‘src/libopenid.egg-info/SOURCES.txt’ writing manifest file ‘src/libopenid.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/libopenid.egg-link (link to src) libopenid 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/libopenid/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/libopenid' make -C libs/librdbms env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/librdbms’ — Installing librdbms into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/librdbms.egg-info/requires.txt writing src/librdbms.egg-info/PKG-INFO writing top-level names to src/librdbms.egg-info/top_level.txt writing dependency_links to src/librdbms.egg-info/dependency_links.txt writing entry points to src/librdbms.egg-info/entry_points.txt reading manifest file ‘src/librdbms.egg-info/SOURCES.txt’ writing manifest file ‘src/librdbms.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/librdbms.egg-link (link to src) librdbms 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/librdbms/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/librdbms' make -C libs/libsaml env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/libsaml’ — Installing libsaml into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/libsaml.egg-info/requires.txt writing src/libsaml.egg-info/PKG-INFO writing top-level names to src/libsaml.egg-info/top_level.txt writing dependency_links to src/libsaml.egg-info/dependency_links.txt writing entry points to src/libsaml.egg-info/entry_points.txt reading manifest file ‘src/libsaml.egg-info/SOURCES.txt’ writing manifest file ‘src/libsaml.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/libsaml.egg-link (link to src) libsaml 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/libsaml/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/libsaml' make -C libs/libsentry env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/libsentry’ — Installing libsentry into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/libsentry.egg-info/requires.txt writing src/libsentry.egg-info/PKG-INFO writing top-level names to src/libsentry.egg-info/top_level.txt writing dependency_links to src/libsentry.egg-info/dependency_links.txt writing entry points to src/libsentry.egg-info/entry_points.txt reading manifest file ‘src/libsentry.egg-info/SOURCES.txt’ writing manifest file ‘src/libsentry.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/libsentry.egg-link (link to src) libsentry 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/libsentry/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/libsentry' make -C libs/libsolr env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/libsolr’ — Installing libsolr into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/libsolr.egg-info/requires.txt writing src/libsolr.egg-info/PKG-INFO writing top-level names to src/libsolr.egg-info/top_level.txt writing dependency_links to src/libsolr.egg-info/dependency_links.txt writing entry points to src/libsolr.egg-info/entry_points.txt reading manifest file ‘src/libsolr.egg-info/SOURCES.txt’ writing manifest file ‘src/libsolr.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/libsolr.egg-link (link to src) libsolr 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/libsolr/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/libsolr' make -C libs/libzookeeper env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/libzookeeper’ — Installing libzookeeper into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/libzookeeper.egg-info/requires.txt writing src/libzookeeper.egg-info/PKG-INFO writing top-level names to src/libzookeeper.egg-info/top_level.txt writing dependency_links to src/libzookeeper.egg-info/dependency_links.txt writing entry points to src/libzookeeper.egg-info/entry_points.txt reading manifest file ‘src/libzookeeper.egg-info/SOURCES.txt’ writing manifest file ‘src/libzookeeper.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/libzookeeper.egg-link (link to src) libzookeeper 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/libzookeeper/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/libzookeeper' make -C libs/metadata env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/metadata’ — Installing metadata into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/metadata.egg-info/requires.txt writing src/metadata.egg-info/PKG-INFO writing top-level names to src/metadata.egg-info/top_level.txt writing dependency_links to src/metadata.egg-info/dependency_links.txt writing entry points to src/metadata.egg-info/entry_points.txt reading manifest file ‘src/metadata.egg-info/SOURCES.txt’ writing manifest file ‘src/metadata.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/metadata.egg-link (link to src) metadata 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/metadata/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/metadata' make -C libs/notebook env-install make[2]: Entering directory/home/ubuntu/hue/desktop/libs/notebook’ — Installing notebook into virtual-env running develop /home/ubuntu/hue/build/env/lib/python2.7/site-packages/pkg_resources/init.py:2510: PEP440Warning: ‘ipdb (0.1dev-r1716)’ is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions. PEP440Warning, running egg_info writing requirements to src/notebook.egg-info/requires.txt writing src/notebook.egg-info/PKG-INFO writing top-level names to src/notebook.egg-info/top_level.txt writing dependency_links to src/notebook.egg-info/dependency_links.txt writing entry points to src/notebook.egg-info/entry_points.txt reading manifest file ‘src/notebook.egg-info/SOURCES.txt’ writing manifest file ‘src/notebook.egg-info/SOURCES.txt’ running build_ext Creating /home/ubuntu/hue/build/env/lib/python2.7/site-packages/notebook.egg-link (link to src) notebook 3.10.0 is already the active version in easy-install.pth

Installed /home/ubuntu/hue/desktop/libs/notebook/src make[2]: Leaving directory /home/ubuntu/hue/desktop/libs/notebook' --- Regenerating database at /home/ubuntu/hue/desktop/desktop.db --- Syncing/updating database at /home/ubuntu/hue/desktop/desktop.db Traceback (most recent call last): File "/home/ubuntu/hue/build/env/bin/hue", line 9, in <module> load_entry_point('desktop==3.10.0', 'console_scripts', 'hue')() File "/home/ubuntu/hue/desktop/core/src/desktop/manage_entry.py", line 59, in entry execute_from_command_line(sys.argv) File "/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 399, in execute_from_command_line utility.execute() File "/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 261, in fetch_command commands = get_commands() File "/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 107, in get_commands apps = settings.INSTALLED_APPS File "/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 54, in __getattr__ self._setup(name) File "/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 49, in _setup self._wrapped = Settings(settings_module) File "/home/ubuntu/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 132, in __init__ % (self.SETTINGS_MODULE, e) ImportError: Could not import settings 'desktop.settings' (Is it on sys.path? Is there an import error in the settings file?): cannot import name _compare_digest make[1]: *** [/home/ubuntu/hue/desktop/desktop.db] Error 1 make[1]: Leaving directory/home/ubuntu/hue/desktop’ make: *** [desktop] Error 2 ubuntu@ip-10-0-1-141:~/hue$

On Jun 1, 2016, at 9:57 AM, Romain Rigaux notifications@github.com wrote:

Are you sure that you did a fresh clone?

test123 seems unrelated to the original Hue code

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cloudera/hue/issues/385#issuecomment-223056918, or mute the thread https://github.com/notifications/unsubscribe/AC9i25rKN84Viow7PSmxg7mbs3Ps7MhTks5qHboCgaJpZM4Ip-gy.

0reactions
github-actions[bot]commented, Mar 15, 2021

This issue is stale because it has been open 30 days with no activity and is not “roadmap” labeled or part of any milestone. Remove stale label or comment or this will be closed in 5 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: Could not import settings (Is it on > sys.path? Is ...
However, eventhough I have set the same path in the wsgi.py file, it fails on the beanstalk. So is there a way to...
Read more >
ImportError: Could not import settings 'desktop.settings' (Is it ...
ImportError : Could not import settings 'desktop.settings' (Is it on sys.path? Is there an import error in the settings file?): cannot import ......
Read more >
ImportError: Could not import settings (Is it on sys.path? Is ...
Coding example for the question ImportError: Could not import settings (Is it on sys.path? Is there an import error in the settings file?):...
Read more >
Could not import settings 'ADAP.settings' (Is it on sys.path? Is ...
ImportError : Could not import settings 'ADAP.settings' (Is it on sys.path? Is there an import error in the settings file?): cannot import name...
Read more >
How to Fix : “ImportError: Cannot import name X” in Python
In this article, you will learn about another import error that commonly occurs while you are dealing with packages and dependencies in Python....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found