INSTALLED_APPS += ( 'document_analyzer',)root@Mayan2:/usr/share/mayan-edms/bin# ./mayan-edms.py migrateTraceback (most recent call last): File "./mayan-edms.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 341, in execute django.setup() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/config.py", line 90, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name)ImportError: No module named document_analyzer
INSTALLED_APPS += ( 'document_analyzer')root@Mayan2:/usr/share/mayan-edms/bin# ./mayan-edms.py migrateTraceback (most recent call last): File "./mayan-edms.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 316, in execute settings.INSTALLED_APPS File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/conf/__init__.py", line 53, in __getattr__ self._setup(name) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup self._wrapped = Settings(settings_module) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/conf/__init__.py", line 97, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/mayan/settings/__init__.py", line 6, in <module> from .local import * # NOQA File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/mayan/settings/local.py", line 21, in <module> 'document_analyzer'TypeError: can only concatenate tuple (not "unicode") to tuple--
---
You received this message because you are subscribed to a topic in the Google Groups "Mayan EDMS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mayan-edms/dWfo8N_gg-0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mayan-edms+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
root@Mayan2:/usr/share/mayan-edms# bin/mayan-edms.py migrateTraceback (most recent call last): File "bin/mayan-edms.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 341, in execute django.setup() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/config.py", line 116, in create mod = import_module(mod_path) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/document_analyzer/apps.py", line 8, in <module> from documents.models import Document, DocumentVersion File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/documents/models.py", line 17, in <module> from acls.models import AccessControlList File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/acls/models.py", line 5, in <module> from django.contrib.contenttypes.fields import GenericForeignKey File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/contenttypes/fields.py", line 5, in <module> from django.contrib.contenttypes.models import ContentType File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/contenttypes/models.py", line 138, in <module> class ContentType(models.Model): File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/db/models/base.py", line 105, in __new__ app_config = apps.get_containing_app_config(module) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/registry.py", line 237, in get_containing_app_config self.check_apps_ready() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/registry.py", line 124, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.")django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
--
---
You received this message because you are subscribed to a topic in the Google Groups "Mayan EDMS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mayan-edms/dWfo8N_gg-0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mayan-edms+unsubscribe@googlegroups.com.
drwxr-xr-x 5 www-data www-data 41 May 23 21:58 django_gpg/lrwxrwxrwx 1 www-data www-data 46 Jun 7 13:07 document_analyzer -> /root/git/document_analyzer/document_analyzer//drwxr-xr-x 5 www-data www-data 27 May 23 21:58 document_comments/root@Mayan2:/usr/share/mayan-edms# ll mayan/apps/document_analyzer/total 31drwxr-xr-x 5 www-data www-data 21 Jun 7 13:08 ./drwxr-xr-x 6 www-data www-data 15 Jun 6 14:15 ../-rw-r--r-- 1 www-data www-data 334 Jun 6 14:15 __init__.py-rw-r--r-- 1 www-data www-data 597 Jun 7 13:08 __init__.pyc-rw-r--r-- 1 www-data www-data 433 Jun 6 14:15 admin.py-rw-r--r-- 1 www-data www-data 3691 Jun 6 14:15 apps.py-rw-r--r-- 1 www-data www-data 3811 Jun 7 13:08 apps.pycdrwxr-xr-x 2 www-data www-data 6 Jun 6 14:15 backends/-rw-r--r-- 1 www-data www-data 967 Jun 6 14:15 classes.py-rw-r--r-- 1 www-data www-data 217 Jun 6 14:15 handlers.py-rw-r--r-- 1 www-data www-data 1730 Jun 6 14:15 links.py-rw-r--r-- 1 www-data www-data 125 Jun 6 14:15 literals.py-rw-r--r-- 1 www-data www-data 1181 Jun 6 14:15 managers.pydrwxr-xr-x 2 www-data www-data 6 Jun 6 14:15 migrations/-rw-r--r-- 1 www-data www-data 2298 Jun 6 14:15 models.py-rw-r--r-- 1 www-data www-data 935 Jun 6 14:15 permissions.py-rw-r--r-- 1 www-data www-data 935 Jun 6 14:15 settings.py-rw-r--r-- 1 www-data www-data 2598 Jun 6 14:15 tasks.pydrwxr-xr-x 2 www-data www-data 7 Jun 6 14:15 tests/-rw-r--r-- 1 www-data www-data 1300 Jun 6 14:15 urls.py-rw-r--r-- 1 www-data www-data 5601 Jun 6 14:15 views.pyTo unsubscribe from this group and all its topics, send an email to mayan-edms+...@googlegroups.com.
root@Mayan2:/usr/share/mayan-edms/bin# ./mayan-edms.py migrateroot@Mayan2:/usr/share/mayan-edms# bin/mayan-edms.py migrate
what is the command which starts mayan succesfull (without document_analyzer)
what is in your PYTHONPATH ?
which python version are you using ?
which mayan version are you using ?
which django version are you using ?
To unsubscribe from this group and all its topics, send an email to mayan-edms+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to mayan-edms+unsubscribe@googlegroups.com.
origin https://gitlab.com/mayan-edms/document_analyzer.git (fetch)origin https://gitlab.com/mayan-edms/document_analyzer.git (push)
To unsubscribe from this group and all its topics, send an email to mayan-edms+unsubscribe@googlegroups.com.
origin https://gitlab.com/startmat/document_analyzer.git (fetch)origin https://gitlab.com/startmat/document_analyzer.git (push)Operations to perform: Apply all migrations: acls, actstream, admin, auth, authtoken, autoadmin, cabinets, checkouts, common, contenttypes, converter, django_gpg, djcelery, document_analyzer, document_comments, document_indexing, document_parsing, document_signatures, document_states, documents, dynamic_search, events, linking, lock_manager, mailer, mayan_statistics, metadata, motd, ocr, permissions, sessions, sites, sources, tagsRunning migrations: Applying document_analyzer.0001_initial... OK Applying document_analyzer.0002_auto_20160116_1620... OK Applying document_analyzer.0003_auto_20160117_2152... OK Applying document_analyzer.0004_auto_20171021_2017... OKTraceback (most recent call last): File "/usr/share/mayan-edms/bin/mayan-edms.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 341, in execute django.setup() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/config.py", line 90, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name)ImportError: No module named document_analyzerTraceback (most recent call last): File "/usr/share/mayan-edms/bin/mayan-edms.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 341, in execute django.setup() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/config.py", line 90, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name)ImportError: No module named document_analyzer/usr/lib/python2.7/usr/lib/python2.7/plat-x86_64-linux-gnu/usr/lib/python2.7/lib-tk/usr/lib/python2.7/lib-old/usr/lib/python2.7/lib-dynload/usr/local/lib/python2.7/dist-packages/usr/lib/python2.7/dist-packagesTo unsubscribe from this group and all its topics, send an email to mayan-edms+unsubscribe@googlegroups.com.
I am on Ubuntu 14.04-trusty. I followed these steps to install mayan: http://mayan.readthedocs.io/en/latest/topics/deploying.html
Following these steps, I did not experience any issues. Everything was working as expected after I finished the installation.
One more thing I tried, is, instead restarting the OS, I restarted the services. When I run "supervisorctl start", I get this output:
mayan-uwsgi: startedmayan-worker: ERROR (abnormal termination)mayan-beat: ERROR (abnormal termination)
Cheers.
Operations to perform: Apply all migrations: acls, actstream, admin, auth, authtoken, autoadmin, cabinets, checkouts, common, contenttypes, converter, django_gpg, djcelery, document_analyzer, document_comments, document_indexing, document_parsing, document_signatures, document_states, documents, dynamic_search, events, linking, lock_manager, mailer, mayan_statistics, metadata, motd, ocr, permissions, sessions, sites, sources, tagsRunning migrations: Applying document_analyzer.0001_initial... OK Applying document_analyzer.0002_auto_20160116_1620... OK Applying document_analyzer.0003_auto_20160117_2152... OK Applying document_analyzer.0004_auto_20171021_2017... OKThe following content types are stale and need to be deleted:
ocr | documentpagecontent
Any objects related to these content types by a foreign key will alsobe deleted. Are you sure you want to delete these content types?If you're unsure, answer 'no'.
Type 'yes' to continue, or 'no' to cancel: no (also tried yes)Traceback (most recent call last): File "/usr/share/mayan-edms/bin/mayan-edms.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 341, in execute django.setup() File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/apps/config.py", line 90, in create module = import_module(entry) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name)ImportError: No module named document_analyzer/usr/lib/python2.7/usr/lib/python2.7/plat-x86_64-linux-gnu/usr/lib/python2.7/lib-tk/usr/lib/python2.7/lib-old/usr/lib/python2.7/lib-dynload/usr/local/lib/python2.7/dist-packages/usr/lib/python2.7/dist-packages/usr/lib/pymodules/python2.72.7.9 (default, Jun 29 2016, 13:08:31)[GCC 4.9.2]To unsubscribe from this group and all its topics, send an email to mayan-edms+unsubscribe@googlegroups.com.