Update to 3.3 problem with mayan-edms.py
Hi,
I'm updating from 3.2.11 and followed the instructions in the docs. Everything was successful up to this point.
(My installation started with 3.2.7 and I followed every release successfully from there on.)
When I proceed, all the steps using /opt/mayan-edms/bin/mayan-edms.py
give me the following error:
Traceback (most recent call last):
File "/opt/mayan-edms/bin/mayan-edms.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/opt/mayan-edms/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/mayan-edms/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 338, in execute
django.setup()
File "/opt/mayan-edms/local/lib/python3.6/site-packages/django/__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/mayan-edms/local/lib/python3.6/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/opt/mayan-edms/local/lib/python3.6/site-packages/django/apps/config.py", line 120, in create
mod = import_module(mod_path)
File "/opt/mayan-edms/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/mayan-edms/local/lib/python3.6/site-packages/mayan/apps/sources/apps.py", line 17, in <module>
from .classes import StagingFile
File "/opt/mayan-edms/local/lib/python3.6/site-packages/mayan/apps/sources/classes.py", line 19, in <module>
from .storages import storage_staging_file_image_cache
File "/opt/mayan-edms/local/lib/python3.6/site-packages/mayan/apps/sources/storages.py", line 12, in <module>
)(**setting_staging_file_image_cache_storage_arguments.value)
TypeError: type object argument after ** must be a mapping, not str
Here the full commandline:
++ sudo sh -c "MAYAN_DATABASES=\"{'default':
{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mypass','USER':'mayan','HOST'
:'127.0.0.1'}}\" MAYAN_MEDIA_ROOT=/opt/mayan-edms/media /opt/mayan-edms/bin/mayan-edms.py platformtemplate supervisord > /etc/supervisor/conf.d/mayan.conf"
- When I do only
sudo -u mayan /opt/mayan-edms/bin/mayan-edms.py
I get the help output as expected, with the warning that it uses SQLite. - I also tried the "old" syntax using
MAYAN_DATABASE_ENGINE=django.db.backends.postgresql
... with the same result. - pip is up-to-date (19.3.1)
-
sudo -u mayan /opt/mayan-edms/bin/mayan-edms.py installdependencies
runs but I get the following error for Lato font...: [Errno 111] Connection refused
I hope someone can help me, since I'm stuck.
Edited by Martin