New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centos6.x初始化时报错误 #815

Closed
R1hug0 opened this Issue Nov 17, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@R1hug0

R1hug0 commented Nov 17, 2017

[简述你的问题]
centos6.7

使用版本

[请提供你使用的Jumpserver版本 0.3.2 或 0.4.0]
0.40

问题复现步骤
  1. [步骤1]
  2. [步骤2]
    执行初始化 bash make_migrations.sh 步骤的时候报如下错误
    File "/opt/jumpserver/apps/jumpserver/settings.py", line 32, in
    CONFIG = env_config.get(env,'default')()
    这个错误和不是centos7版本是否有关系
具体表现[截图可能会更好些,最好能截全]
其他

[注:] 完成后请关闭 issue

@R1hug0

This comment has been minimized.

Show comment
Hide comment
@R1hug0

R1hug0 Nov 17, 2017

bash make_migrations.sh
Traceback (most recent call last):
File "../apps/manage.py", line 28, in
execute_from_command_line(sys.argv)
File "/opt/py3/lib/python3.6/site-packages/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/py3/lib/python3.6/site-packages/django/core/management/init.py", line 308, in execute
settings.INSTALLED_APPS
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 56, in getattr
self._setup(name)
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 978, in _gcd_import
File "", line 961, in _find_and_load
File "", line 950, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 678, in exec_module
File "", line 205, in _call_with_frames_removed
File "/opt/jumpserver/apps/jumpserver/settings.py", line 32, in
CONFIG = env_config.get(env,'default')()
TypeError: 'str' object is not callable
Traceback (most recent call last):
File "../apps/manage.py", line 28, in
execute_from_command_line(sys.argv)
File "/opt/py3/lib/python3.6/site-packages/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/py3/lib/python3.6/site-packages/django/core/management/init.py", line 308, in execute
settings.INSTALLED_APPS
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 56, in getattr
self._setup(name)
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 978, in _gcd_import
File "", line 961, in _find_and_load
File "", line 950, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 678, in exec_module
File "", line 205, in _call_with_frames_removed
File "/opt/jumpserver/apps/jumpserver/settings.py", line 32, in
CONFIG = env_config.get(env,'default')()
TypeError: 'str' object is not callable

R1hug0 commented Nov 17, 2017

bash make_migrations.sh
Traceback (most recent call last):
File "../apps/manage.py", line 28, in
execute_from_command_line(sys.argv)
File "/opt/py3/lib/python3.6/site-packages/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/py3/lib/python3.6/site-packages/django/core/management/init.py", line 308, in execute
settings.INSTALLED_APPS
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 56, in getattr
self._setup(name)
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 978, in _gcd_import
File "", line 961, in _find_and_load
File "", line 950, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 678, in exec_module
File "", line 205, in _call_with_frames_removed
File "/opt/jumpserver/apps/jumpserver/settings.py", line 32, in
CONFIG = env_config.get(env,'default')()
TypeError: 'str' object is not callable
Traceback (most recent call last):
File "../apps/manage.py", line 28, in
execute_from_command_line(sys.argv)
File "/opt/py3/lib/python3.6/site-packages/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/py3/lib/python3.6/site-packages/django/core/management/init.py", line 308, in execute
settings.INSTALLED_APPS
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 56, in getattr
self._setup(name)
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/opt/py3/lib/python3.6/site-packages/django/conf/init.py", line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 978, in _gcd_import
File "", line 961, in _find_and_load
File "", line 950, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 678, in exec_module
File "", line 205, in _call_with_frames_removed
File "/opt/jumpserver/apps/jumpserver/settings.py", line 32, in
CONFIG = env_config.get(env,'default')()
TypeError: 'str' object is not callable

@ibuler ibuler closed this Jan 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment