Discussion:
[Mayan EDMS: 2500] Re: Mayan EDMS 2.7.3 and document_analyzer not working
Eddi
2018-06-07 15:31:16 UTC
Permalink
The first time I am in the "mayan-edms/bin" directory executing
mayan-edms.py migrate and the second time I am in "mayan-edms" and than I
have to specify the path to mayan-edms.py whitch is in the "bin" directory.
Just a matter from where I try to execute the mayan-edms.py. I also could
have "cd" into the bin directory and than ran ./mayan-edms.py instead of
bin/mayan-edms.py. Hope this makes sense, the result is the same.

I have installed ubuntu 14.4 with the latest updates and than followed the
instructions from the mayan-edms main site and installed the Mayan-EDMS
2.7.3. Whatever the default python and django versions are when installing
Mayan, thats what is used. Same applies to PYTHONPATH and the command that
starts Mayan. I have not changed anything from the default installation.

To restart Mayan, I just reboot.

PS: I would love to answer your questions more specific, bu I do not know,
how to get the specific version etc.

Eddi
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 ?
I removed the copy I previously created and created a link as you advised
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/
total 31
drwxr-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.pyc
drwxr-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.py
drwxr-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.py
drwxr-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.py
When I comment out "document_analyzer" from settings/local.py, Mayan
starts working after restarting the services.
Hope this helps.
Eddi
Hi Eddi,
is there now a link or a copy of the apps folder ?
If you comment out the "document_analyzer" from settings, is it working ?
br
Matthias
Hi Matthias,
I followed you advice and created a link to the analyzer. Now when I
run mayan-edms.py migrate, it seems to find the document_analyzer app, but
it sill does not add it and breaks Mayan EDMS.
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>
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.
I hope this helps. Thank you for assisting!!!
Eddi
Hi Eddi,
looks like the "django app-loader" can not find document_analyzer
module.
Have you created the link from the mayan/apps folder to the
document_analyzer folder ?
cd /yourmayanroot/apps
ln -s /yourgitroot/document_analyzer/document_analyzer/ .
br
Matthias
Hi,
I am running Mayan EDMS 2.7.3 on Ubuntu 14. I also tried to install
document_analyzer. I pulled the doc_analyzer from
https://gitlab.com/startmat/document_analyzer.
When enter the info in local.py as stated under the install section,
Mayan EDMS does not work after a reboot or restart of the services.
INSTALLED_APPS += (
'document_analyzer',
)
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
I also have installed the exiftool software installed and its
functioning properly.
How can I fix this issue to have document_analyzer running?
Thanks.
Eddi
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Matthias Löblich
2018-06-08 06:40:10 UTC
Permalink
Is it possible that you have a permission problem:

you run: mayan-edms.py" migrate as root -> which is working

and the supervisor is running as www-data

does have www-data have the access rights to the document_analizer folder
over the link ?
Matthias,
I have a production Mayan-EDMS 2.7.3 installation running in a VM (proxmox
4.4-22). I cloned the VM, so that I can try adding the document_analyzer to
that installation.
Its Debian 8.8 Jessie. The initial VM was created using the TurnKey system
(LXC container). The version used in TrunKey is Mayan-EDMS 2.2 and I
upgraded that to Mayan 2.7.3.
When follow your steps, I can run "mayan-edms.py" migrate and here is the
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, tags
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... OK
ocr | documentpagecontent
Any objects related to these content types by a foreign key will also
be 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)
(Just as a side note, I tried answering with "YES" at a previous test run,
but the end results are the same.)
After doing all the steps you show in the README, I get the same errors
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.7
DJANGO version is: 1.10.7
2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2]
Bottom line, I get the same result on 2 installations. Both have
Mayan-EDMS 2.7.3 installed, and document_analyzer fails to start and breaks
Mayan from starting.
I hope that helps.
Thanks.
Eddi
Plesaes sen me the link to the mayan install documentation you followed
to install. I need to understand your setup.
/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
Thanks.
Well, I thought I did use that repo, but I guess not ...
origin https://gitlab.com/startmat/document_analyzer.git (fetch)
origin https://gitlab.com/startmat/document_analyzer.git (push)
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, tags
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... OK
However, after a reboot, Mayan EDMS does not start. When opening the
website, I get "Internal Server Error".
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/dja
ngo/core/management/__init__.py", line 367, in
execute_from_command_line
utility.execute()
File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/dja
ngo/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
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/dja
ngo/core/management/__init__.py", line 367, in
execute_from_command_line
utility.execute()
File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/dja
ngo/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
When I comment out "document_analyzer" from the "local.py" file and
reboot, than Mayan does work again.
Thank you for your assistance, it is *MUCH *appreciated!!!
Eddi
Ok, you are not using the latest version of document analyzer.
You have to use my repo: https://gitlab.com/startmat/document_analyzer
.
"I pulled the doc_analyzer from https://gitlab.com/startm
at/document_analyzer."
origin https://gitlab.com/mayan-edms/document_analyzer.git (fetch)
origin https://gitlab.com/mayan-edms/document_analyzer.git (push)
git remote -v
Post by Eddi
The first time I am in the "mayan-edms/bin" directory executing
mayan-edms.py migrate and the second time I am in "mayan-edms" and than I
have to specify the path to mayan-edms.py whitch is in the "bin" directory.
Just a matter from where I try to execute the mayan-edms.py. I also could
have "cd" into the bin directory and than ran ./mayan-edms.py instead of
bin/mayan-edms.py. Hope this makes sense, the result is the same.
I have installed ubuntu 14.4 with the latest updates and than
followed the instructions from the mayan-edms main site and installed the
Mayan-EDMS 2.7.3. Whatever the default python and django versions are when
installing Mayan, thats what is used. Same applies to PYTHONPATH and the
command that starts Mayan. I have not changed anything from the default
installation.
To restart Mayan, I just reboot.
PS: I would love to answer your questions more specific, bu I do
not know, how to get the specific version etc.
Eddi
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 ?
I removed the copy I previously created and created a link as you
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/do
cument_analyzer//
drwxr-xr-x 5 www-data www-data 27 May 23 21:58
document_comments/
mayan/apps/document_analyzer/
total 31
drwxr-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.pyc
drwxr-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.py
drwxr-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.py
drwxr-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.py
When I comment out "document_analyzer" from settings/local.py,
Mayan starts working after restarting the services.
Hope this helps.
Eddi
Hi Eddi,
is there now a link or a copy of the apps folder ?
If you comment out the "document_analyzer" from settings, is it
working ?
br
Matthias
Hi Matthias,
I followed you advice and created a link to the analyzer. Now
when I run mayan-edms.py migrate, it seems to find the document_analyzer
app, but it sill does not add it and breaks Mayan EDMS.
File "bin/mayan-edms.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/share/mayan-edms/local/l
ib/python2.7/site-packages/django/core/management/__init__.py",
line 367, in execute_from_command_line
utility.execute()
File "/usr/share/mayan-edms/local/l
ib/python2.7/site-packages/django/core/management/__init__.py",
line 341, in execute
django.setup()
File "/usr/share/mayan-edms/local/l
ib/python2.7/site-packages/django/__init__.py", line 27, in
setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/share/mayan-edms/local/l
ib/python2.7/site-packages/django/apps/registry.py", line 85,
in populate
app_config = AppConfig.create(entry)
File "/usr/share/mayan-edms/local/l
ib/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/l
ib/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/l
ib/python2.7/site-packages/mayan/apps/documents/models.py",
line 17, in <module>
from acls.models import AccessControlList
File "/usr/share/mayan-edms/local/l
ib/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/l
ib/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/l
ib/python2.7/site-packages/django/contrib/contenttypes/models.py",
line 138, in <module>
File "/usr/share/mayan-edms/local/l
ib/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/l
ib/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/l
ib/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.
I hope this helps. Thank you for assisting!!!
Eddi
On Thursday, June 7, 2018 at 1:25:07 AM UTC-6, Matthias Löblich
Hi Eddi,
looks like the "django app-loader" can not find
document_analyzer module.
Have you created the link from the mayan/apps folder to the
document_analyzer folder ?
cd /yourmayanroot/apps
ln -s /yourgitroot/document_analyzer/document_analyzer/ .
br
Matthias
Hi,
I am running Mayan EDMS 2.7.3 on Ubuntu 14. I also tried to
install document_analyzer. I pulled the doc_analyzer from
https://gitlab.com/startmat/document_analyzer.
When enter the info in local.py as stated under the install
section, Mayan EDMS does not work after a reboot or restart of the services.
INSTALLED_APPS += (
'document_analyzer',
)
When running mayan-edms.py migrate, I get the following error
File "./mayan-edms.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/share/mayan-edms/local/l
ib/python2.7/site-packages/django/core/management/__init__.py",
line 367, in execute_from_command_line
utility.execute()
File "/usr/share/mayan-edms/local/l
ib/python2.7/site-packages/django/core/management/__init__.py",
line 341, in execute
django.setup()
File "/usr/share/mayan-edms/local/l
ib/python2.7/site-packages/django/__init__.py", line 27, in
setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/share/mayan-edms/local/l
ib/python2.7/site-packages/django/apps/registry.py", line
85, in populate
app_config = AppConfig.create(entry)
File "/usr/share/mayan-edms/local/l
ib/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
I also have installed the exiftool software installed and its
functioning properly.
How can I fix this issue to have document_analyzer running?
Thanks.
Eddi
--
---
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/uns
ubscribe.
To unsubscribe from this group and all its topics, send an
For more options, visit https://groups.google.com/d/optout.
--
---
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/uns
ubscribe.
To unsubscribe from this group and all its topics, send an email
For more options, visit https://groups.google.com/d/optout.
--
---
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/uns
ubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
---
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/to
pic/mayan-edms/dWfo8N_gg-0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
---
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/to
pic/mayan-edms/dWfo8N_gg-0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Eduard Freiter
2018-06-08 11:55:36 UTC
Permalink
Hi Matthias,

Yes the supervisor has access to the document analyzer folder.

I changed the ownership on that folder to wwwdata to make sure there is no permission issue.

On my production installation of Mayan, Mayan and document analyzer is running as root, but document analyzer does also not work and Mayan does not start when the Apps entry is in local.py.

Eddi
Post by Matthias Löblich
you run: mayan-edms.py" migrate as root -> which is working
and the supervisor is running as www-data
does have www-data have the access rights to the document_analizer folder over the link ?
Matthias,
I have a production Mayan-EDMS 2.7.3 installation running in a VM (proxmox 4.4-22). I cloned the VM, so that I can try adding the document_analyzer to that installation.
Its Debian 8.8 Jessie. The initial VM was created using the TurnKey system (LXC container). The version used in TrunKey is Mayan-EDMS 2.2 and I upgraded that to Mayan 2.7.3.
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, tags
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... OK
ocr | documentpagecontent
Any objects related to these content types by a foreign key will also
be 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)
(Just as a side note, I tried answering with "YES" at a previous test run, but the end results are the same.)
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.7
DJANGO version is: 1.10.7
2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2]
Bottom line, I get the same result on 2 installations. Both have Mayan-EDMS 2.7.3 installed, and document_analyzer fails to start and breaks Mayan from starting.
I hope that helps.
Thanks.
Eddi
Plesaes sen me the link to the mayan install documentation you followed to install. I need to understand your setup.
/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
Thanks.
Well, I thought I did use that repo, but I guess not ...
origin https://gitlab.com/startmat/document_analyzer.git (fetch)
origin https://gitlab.com/startmat/document_analyzer.git (push)
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, tags
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... OK
However, after a reboot, Mayan EDMS does not start. When opening the website, I get "Internal Server Error".
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
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
When I comment out "document_analyzer" from the "local.py" file and reboot, than Mayan does work again.
Thank you for your assistance, it is MUCH appreciated!!!
Eddi
Ok, you are not using the latest version of document analyzer.
You have to use my repo: https://gitlab.com/startmat/document_analyzer.
"I pulled the doc_analyzer from https://gitlab.com/startmat/document_analyzer."
origin https://gitlab.com/mayan-edms/document_analyzer.git (fetch)
origin https://gitlab.com/mayan-edms/document_analyzer.git (push)
git remote -v
The first time I am in the "mayan-edms/bin" directory executing mayan-edms.py migrate and the second time I am in "mayan-edms" and than I have to specify the path to mayan-edms.py whitch is in the "bin" directory. Just a matter from where I try to execute the mayan-edms.py. I also could have "cd" into the bin directory and than ran ./mayan-edms.py instead of bin/mayan-edms.py. Hope this makes sense, the result is the same.
I have installed ubuntu 14.4 with the latest updates and than followed the instructions from the mayan-edms main site and installed the Mayan-EDMS 2.7.3. Whatever the default python and django versions are when installing Mayan, thats what is used. Same applies to PYTHONPATH and the command that starts Mayan. I have not changed anything from the default installation.
To restart Mayan, I just reboot.
PS: I would love to answer your questions more specific, bu I do not know, how to get the specific version etc.
Eddi
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 ?
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/
total 31
drwxr-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.pyc
drwxr-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.py
drwxr-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.py
drwxr-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.py
When I comment out "document_analyzer" from settings/local.py, Mayan starts working after restarting the services.
Hope this helps.
Eddi
Hi Eddi,
is there now a link or a copy of the apps folder ?
If you comment out the "document_analyzer" from settings, is it working ?
br
Matthias
Hi Matthias,
I followed you advice and created a link to the analyzer. Now when I run mayan-edms.py migrate, it seems to find the document_analyzer app, but it sill does not add it and breaks Mayan EDMS.
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>
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.
I hope this helps. Thank you for assisting!!!
Eddi
Hi Eddi,
looks like the "django app-loader" can not find document_analyzer module.
Have you created the link from the mayan/apps folder to the document_analyzer folder ?
cd /yourmayanroot/apps
ln -s /yourgitroot/document_analyzer/document_analyzer/ .
br
Matthias
Hi,
I am running Mayan EDMS 2.7.3 on Ubuntu 14. I also tried to install document_analyzer. I pulled the doc_analyzer from https://gitlab.com/startmat/document_analyzer.
When enter the info in local.py as stated under the install section, Mayan EDMS does not work after a reboot or restart of the services.
INSTALLED_APPS += (
'document_analyzer',
)
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
I also have installed the exiftool software installed and its functioning properly.
How can I fix this issue to have document_analyzer running?
Thanks.
Eddi
--
---
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.
For more options, visit https://groups.google.com/d/optout.
--
---
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.
For more options, visit https://groups.google.com/d/optout.
--
---
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.
For more options, visit https://groups.google.com/d/optout.
--
---
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.
For more options, visit https://groups.google.com/d/optout.
--
---
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.
For more options, visit https://groups.google.com/d/optout.
--
---
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.
For more options, visit https://groups.google.com/d/optout.
--
---
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.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Eddi
2018-06-08 16:57:31 UTC
Permalink
I copied the document_analyzer/document_analyzer folder into
.../mayan/apps/ and assigned wwwdata owernship.

after a reboot, document analyzer was working ...

Thanks for your help. Not sure, why the link is not working ...
Post by Matthias Löblich
you run: mayan-edms.py" migrate as root -> which is working
and the supervisor is running as www-data
does have www-data have the access rights to the document_analizer folder
over the link ?
Matthias,
I have a production Mayan-EDMS 2.7.3 installation running in a VM
(proxmox 4.4-22). I cloned the VM, so that I can try adding the
document_analyzer to that installation.
Its Debian 8.8 Jessie. The initial VM was created using the TurnKey
system (LXC container). The version used in TrunKey is Mayan-EDMS 2.2 and I
upgraded that to Mayan 2.7.3.
When follow your steps, I can run "mayan-edms.py" migrate and here is the
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, tags
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... OK
ocr | documentpagecontent
Any objects related to these content types by a foreign key will also
be 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)
(Just as a side note, I tried answering with "YES" at a previous test
run, but the end results are the same.)
After doing all the steps you show in the README, I get the same errors
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.7
DJANGO version is: 1.10.7
2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2]
Bottom line, I get the same result on 2 installations. Both have
Mayan-EDMS 2.7.3 installed, and document_analyzer fails to start and breaks
Mayan from starting.
I hope that helps.
Thanks.
Eddi
Plesaes sen me the link to the mayan install documentation you followed
to install. I need to understand your setup.
/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
Thanks.
Well, I thought I did use that repo, but I guess not ...
origin https://gitlab.com/startmat/document_analyzer.git (fetch)
origin https://gitlab.com/startmat/document_analyzer.git (push)
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, tags
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... OK
However, after a reboot, Mayan EDMS does not start. When opening the
website, I get "Internal Server Error".
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
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
When I comment out "document_analyzer" from the "local.py" file and
reboot, than Mayan does work again.
Thank you for your assistance, it is *MUCH *appreciated!!!
Eddi
Ok, you are not using the latest version of document analyzer.
https://gitlab.com/startmat/document_analyzer.
"I pulled the doc_analyzer from
https://gitlab.com/startmat/document_analyzer."
origin https://gitlab.com/mayan-edms/document_analyzer.git (fetch)
origin https://gitlab.com/mayan-edms/document_analyzer.git (push)
git remote -v
Post by Eddi
The first time I am in the "mayan-edms/bin" directory executing
mayan-edms.py migrate and the second time I am in "mayan-edms" and than I
have to specify the path to mayan-edms.py whitch is in the "bin" directory.
Just a matter from where I try to execute the mayan-edms.py. I also could
have "cd" into the bin directory and than ran ./mayan-edms.py instead of
bin/mayan-edms.py. Hope this makes sense, the result is the same.
I have installed ubuntu 14.4 with the latest updates and than
followed the instructions from the mayan-edms main site and installed the
Mayan-EDMS 2.7.3. Whatever the default python and django versions are when
installing Mayan, thats what is used. Same applies to PYTHONPATH and the
command that starts Mayan. I have not changed anything from the default
installation.
To restart Mayan, I just reboot.
PS: I would love to answer your questions more specific, bu I do
not know, how to get the specific version etc.
Eddi
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 ?
I removed the copy I previously created and created a link as
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/
mayan/apps/document_analyzer/
total 31
drwxr-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.pyc
drwxr-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.py
drwxr-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.py
drwxr-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.py
When I comment out "document_analyzer" from settings/local.py,
Mayan starts working after restarting the services.
Hope this helps.
Eddi
On Thursday, June 7, 2018 at 8:55:26 AM UTC-6, Matthias Löblich
Hi Eddi,
is there now a link or a copy of the apps folder ?
If you comment out the "document_analyzer" from settings, is it
working ?
br
Matthias
Hi Matthias,
I followed you advice and created a link to the analyzer. Now
when I run mayan-edms.py migrate, it seems to find the document_analyzer
app, but it sill does not add it and breaks Mayan EDMS.
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>
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.
I hope this helps. Thank you for assisting!!!
Eddi
On Thursday, June 7, 2018 at 1:25:07 AM UTC-6, Matthias
Hi Eddi,
looks like the "django app-loader" can not find
document_analyzer module.
Have you created the link from the mayan/apps folder to the
document_analyzer folder ?
cd /yourmayanroot/apps
ln -s /yourgitroot/document_analyzer/document_analyzer/ .
br
Matthias
Hi,
I am running Mayan EDMS 2.7.3 on Ubuntu 14. I also tried to
install document_analyzer. I pulled the doc_analyzer from
https://gitlab.com/startmat/document_analyzer.
When enter the info in local.py as stated under the install
section, Mayan EDMS does not work after a reboot or restart of the services.
INSTALLED_APPS += (
'document_analyzer',
)
When running mayan-edms.py migrate, I get the following
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
I also have installed the exiftool software installed and
its functioning properly.
How can I fix this issue to have document_analyzer running?
Thanks.
Eddi
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Eddi
2018-06-07 19:49:44 UTC
Permalink
Hi,



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: started
mayan-worker: ERROR (abnormal termination)
mayan-beat: ERROR (abnormal termination)

When checking the log file for "worker" and "beat", I get the error message
as I have posted above.



Cheers.
Plesaes sen me the link to the mayan install documentation you followed to
install. I need to understand your setup.
/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
Thanks.
Well, I thought I did use that repo, but I guess not ...
origin https://gitlab.com/startmat/document_analyzer.git (fetch)
origin https://gitlab.com/startmat/document_analyzer.git (push)
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, tags
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... OK
However, after a reboot, Mayan EDMS does not start. When opening the
website, I get "Internal Server Error".
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
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
When I comment out "document_analyzer" from the "local.py" file and
reboot, than Mayan does work again.
Thank you for your assistance, it is *MUCH *appreciated!!!
Eddi
Ok, you are not using the latest version of document analyzer.
You have to use my repo: https://gitlab.com/startmat/document_analyzer.
"I pulled the doc_analyzer from
https://gitlab.com/startmat/document_analyzer."
origin https://gitlab.com/mayan-edms/document_analyzer.git (fetch)
origin https://gitlab.com/mayan-edms/document_analyzer.git (push)
git remote -v
Post by Eddi
The first time I am in the "mayan-edms/bin" directory executing
mayan-edms.py migrate and the second time I am in "mayan-edms" and than I
have to specify the path to mayan-edms.py whitch is in the "bin" directory.
Just a matter from where I try to execute the mayan-edms.py. I also could
have "cd" into the bin directory and than ran ./mayan-edms.py instead of
bin/mayan-edms.py. Hope this makes sense, the result is the same.
I have installed ubuntu 14.4 with the latest updates and than
followed the instructions from the mayan-edms main site and installed the
Mayan-EDMS 2.7.3. Whatever the default python and django versions are when
installing Mayan, thats what is used. Same applies to PYTHONPATH and the
command that starts Mayan. I have not changed anything from the default
installation.
To restart Mayan, I just reboot.
PS: I would love to answer your questions more specific, bu I do not
know, how to get the specific version etc.
Eddi
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 ?
I removed the copy I previously created and created a link as you
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/
total 31
drwxr-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.pyc
drwxr-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.py
drwxr-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.py
drwxr-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.py
When I comment out "document_analyzer" from settings/local.py,
Mayan starts working after restarting the services.
Hope this helps.
Eddi
Hi Eddi,
is there now a link or a copy of the apps folder ?
If you comment out the "document_analyzer" from settings, is it working ?
br
Matthias
Hi Matthias,
I followed you advice and created a link to the analyzer. Now
when I run mayan-edms.py migrate, it seems to find the document_analyzer
app, but it sill does not add it and breaks Mayan EDMS.
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>
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.
I hope this helps. Thank you for assisting!!!
Eddi
On Thursday, June 7, 2018 at 1:25:07 AM UTC-6, Matthias Löblich
Hi Eddi,
looks like the "django app-loader" can not find
document_analyzer module.
Have you created the link from the mayan/apps folder to the
document_analyzer folder ?
cd /yourmayanroot/apps
ln -s /yourgitroot/document_analyzer/document_analyzer/ .
br
Matthias
Hi,
I am running Mayan EDMS 2.7.3 on Ubuntu 14. I also tried to
install document_analyzer. I pulled the doc_analyzer from
https://gitlab.com/startmat/document_analyzer.
When enter the info in local.py as stated under the install
section, Mayan EDMS does not work after a reboot or restart of the services.
INSTALLED_APPS += (
'document_analyzer',
)
When running mayan-edms.py migrate, I get the following error
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
I also have installed the exiftool software installed and its
functioning properly.
How can I fix this issue to have document_analyzer running?
Thanks.
Eddi
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Eduard Freiter
2018-06-07 11:48:35 UTC
Permalink
Hi Matthias,

Thanks for your response.

I did not create a link but rather copied the document_analyzer folder into the Mayan/apps folder. Is a link required?

Regards,

Eduard Freiter
Hi Eddi,
looks like the "django app-loader" can not find document_analyzer module.
Have you created the link from the mayan/apps folder to the document_analyzer folder ?
cd /yourmayanroot/apps
ln -s /yourgitroot/document_analyzer/document_analyzer/ .
br
Matthias
Hi,
I am running Mayan EDMS 2.7.3 on Ubuntu 14. I also tried to install document_analyzer. I pulled the doc_analyzer from https://gitlab.com/startmat/document_analyzer.
When enter the info in local.py as stated under the install section, Mayan EDMS does not work after a reboot or restart of the services.
INSTALLED_APPS += (
'document_analyzer',
)
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
I also have installed the exiftool software installed and its functioning properly.
How can I fix this issue to have document_analyzer running?
Thanks.
Eddi
--
---
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.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...