Skip to content
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

师傅你好,可以向你讨教一下,部署这个扫描仪出现的一些问题吗! #10

Open
MrShiF opened this issue Mar 24, 2022 · 12 comments

Comments

@MrShiF
Copy link

MrShiF commented Mar 24, 2022

师傅你好,可以向你讨教一下,部署这个扫描仪出现的一些问题吗!

@b0bac
Copy link
Owner

b0bac commented Mar 24, 2022

可以直接贴问题

@MrShiF
Copy link
Author

MrShiF commented Mar 24, 2022

bc056c7232cf35a193410a1ec5586b3

@MrShiF
Copy link
Author

MrShiF commented Mar 24, 2022

一言难尽,部署不太顺利

@MrShiF
Copy link
Author

MrShiF commented Mar 24, 2022

Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/db/utils.py", line 111, in load_backend
return import_module('%s.base' % backend_name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'django.db.backends.mysql'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "manage.py", line 22, in
main()
File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/init.py", line 425, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/init.py", line 401, in execute
django.setup()
File "/usr/local/lib/python3.8/dist-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.8/dist-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/usr/local/lib/python3.8/dist-packages/django/apps/config.py", line 300, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "

@b0bac
Copy link
Owner

b0bac commented Mar 24, 2022

目测是没有模块,你的django版本是?

@b0bac
Copy link
Owner

b0bac commented Mar 24, 2022

建议查看一下依赖库是否安装

@MrShiF
Copy link
Author

MrShiF commented Mar 24, 2022

django 4.0.1 依赖库 直接执行pip -m install re.......txt 前面出了点错,后面解决了正常全安装完成了

@b0bac
Copy link
Owner

b0bac commented Mar 24, 2022

pip安装默认安装到python2 需要执行python3 -m pip install -r ...如果使用所有功能,建议sudo启动,那么应该执行sudo python3 -m pip install -r ...

@MrShiF
Copy link
Author

MrShiF commented Mar 24, 2022

我试试,谢谢师傅

@MrShiF
Copy link
Author

MrShiF commented Mar 24, 2022

我思来想去,不是这个问题,真实奇怪了

@b0bac
Copy link
Owner

b0bac commented Mar 24, 2022

可以直接python3 -m pip list 查看

@filcone
Copy link

filcone commented Mar 24, 2022

能不能部署成docker版本的,,搭建了一下午各种bug根本不能用,,建议直接走docker一键部署这样大家都方便搭建和使用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants