Error to manage.py sync_couch_views

hi, how solution

./manage.py sync_couch_views
Traceback (most recent call last):
File “./manage.py”, line 118, in
execute_from_command_line(sys.argv)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/init.py",
line 353, in execute_from_command_line
utility.execute()
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/init.py",
line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py",
line 348, in run_from_argv
self.execute(*args, **cmd_options)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py",
line 398, in execute
self.check()
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py",
line 426, in check
include_deployment_checks=include_deployment_checks,
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/registry.py",
line 75, in run_checks
new_errors = check(app_configs=app_configs)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/urls.py",
line 13, in check_url_config
return check_resolver(resolver)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/urls.py",
line 23, in check_resolver
for pattern in resolver.url_patterns:
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/utils/functional.py",
line 33, in get
res = instance.dict[self.name] = self.func(instance)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
line 417, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”,
self.urlconf_module)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/utils/functional.py",
line 33, in get
res = instance.dict[self.name] = self.func(instance)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
line 410, in urlconf_module
return import_module(self.urlconf_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/home/mmuser/Programas/CommCare/commcare-hq/urls.py”, line 65, in

url(r’^data_dictionary/’, include(‘corehq.apps.data_dictionary.urls’)),
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/conf/urls/init.py",
line 52, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/urls.py",
line 2, in
from corehq.apps.data_dictionary.views import (
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/views.py",
line 17, in
from corehq.apps.case_importer.tracking.filestorage import
make_temp_file
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/case_importer/tracking/filestorage.py",
line 108, in
persistent_file_store = PersistentFileStore(BUCKET, CaseUploadFileMeta)
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/case_importer/tracking/filestorage.py",
line 31, in init
self._db = get_blob_db()
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py",
line 14, in get_blob_db
db = _get_fs_db(settings)
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py",
line 33, in _get_fs_db
raise Error(“cannot initialize blob db: %s” % reason)
corehq.blobs.exceptions.Error: cannot initialize blob db: invalid shared
drive path: None
(cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$
(cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$ pip install
django-configurations
Collecting django-configurations
Downloading django_configurations-2.0-py2.py3-none-any.whl
Installing collected packages: django-configurations
Successfully installed django-configurations-2.0
(cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$ ./manage.py
sync_couch_views
Traceback (most recent call last):
File “./manage.py”, line 118, in
execute_from_command_line(sys.argv)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/init.py",
line 353, in execute_from_command_line
utility.execute()
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/init.py",
line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py",
line 348, in run_from_argv
self.execute(*args, **cmd_options)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py",
line 398, in execute
self.check()
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py",
line 426, in check
include_deployment_checks=include_deployment_checks,
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/registry.py",
line 75, in run_checks
new_errors = check(app_configs=app_configs)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/urls.py",
line 13, in check_url_config
return check_resolver(resolver)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/urls.py",
line 23, in check_resolver
for pattern in resolver.url_patterns:
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/utils/functional.py",
line 33, in get
res = instance.dict[self.name] = self.func(instance)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
line 417, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”,
self.urlconf_module)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/utils/functional.py",
line 33, in get
res = instance.dict[self.name] = self.func(instance)
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
line 410, in urlconf_module
return import_module(self.urlconf_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/home/mmuser/Programas/CommCare/commcare-hq/urls.py”, line 65, in

url(r’^data_dictionary/’, include(‘corehq.apps.data_dictionary.urls’)),
File
"/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/conf/urls/init.py",
line 52, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/urls.py",
line 2, in
from corehq.apps.data_dictionary.views import (
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/views.py",
line 17, in
from corehq.apps.case_importer.tracking.filestorage import
make_temp_file
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/case_importer/tracking/filestorage.py",
line 108, in
persistent_file_store = PersistentFileStore(BUCKET, CaseUploadFileMeta)
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/case_importer/tracking/filestorage.py",
line 31, in init
self._db = get_blob_db()
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py",
line 14, in get_blob_db
db = _get_fs_db(settings)
File
"/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py",
line 33, in _get_fs_db
raise Error(“cannot initialize blob db: %s” % reason)
corehq.blobs.exceptions.Error: cannot initialize blob db: invalid shared
drive path: None

Hi Mynor,

Could you try setting the SHARED_DRIVE_ROOT var your local settings?

Ben

··· On Sat, Mar 4, 2017 at 3:09 AM, Mynor Choc wrote:

hi, how solution

./manage.py sync_couch_views
Traceback (most recent call last):
File “./manage.py”, line 118, in
execute_from_command_line(sys.argv)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/management/init.py”, line 353, in
execute_from_command_line
utility.execute()
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/management/init.py”, line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/management/base.py”, line 348, in run_from_argv
self.execute(*args, **cmd_options)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/management/base.py”, line 398, in execute
self.check()
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/management/base.py”, line 426, in check
include_deployment_checks=include_deployment_checks,
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/checks/registry.py”, line 75, in run_checks
new_errors = check(app_configs=app_configs)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/checks/urls.py”, line 13, in check_url_config
return check_resolver(resolver)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/checks/urls.py”, line 23, in check_resolver
for pattern in resolver.url_patterns:
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/utils/functional.py”, line 33, in get
res = instance.dict[self.name] = self.func(instance)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/urlresolvers.py”, line 417, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”,
self.urlconf_module)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/utils/functional.py”, line 33, in get
res = instance.dict[self.name] = self.func(instance)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/urlresolvers.py”, line 410, in urlconf_module
return import_module(self.urlconf_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in
import_module
import(name)
File “/home/mmuser/Programas/CommCare/commcare-hq/urls.py”, line 65, in

url(r’^data_dictionary/’, include(‘corehq.apps.data_
dictionary.urls’)),
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/conf/urls/init.py”, line 52, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in
import_module
import(name)
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/urls.py”,
line 2, in
from corehq.apps.data_dictionary.views import (
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/
apps/data_dictionary/views.py”, line 17, in
from corehq.apps.case_importer.tracking.filestorage import
make_temp_file
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/
apps/case_importer/tracking/filestorage.py”, line 108, in
persistent_file_store = PersistentFileStore(BUCKET, CaseUploadFileMeta)
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/
apps/case_importer/tracking/filestorage.py”, line 31, in init
self._db = get_blob_db()
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py”,
line 14, in get_blob_db
db = _get_fs_db(settings)
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py”,
line 33, in get_fs_db
raise Error(“cannot initialize blob db: %s” % reason)
corehq.blobs.exceptions.Error: cannot initialize blob db: invalid shared
drive path: None
(cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$
(cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$ pip install
django-configurations
Collecting django-configurations
Downloading django_configurations-2.0-py2.py3-none-any.whl
Installing collected packages: django-configurations
Successfully installed django-configurations-2.0
(cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$ ./manage.py
sync_couch_views
Traceback (most recent call last):
File “./manage.py”, line 118, in
execute_from_command_line(sys.argv)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/management/init.py”, line 353, in
execute_from_command_line
utility.execute()
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/management/init.py”, line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/management/base.py”, line 348, in run_from_argv
self.execute(*args, **cmd_options)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/management/base.py”, line 398, in execute
self.check()
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/management/base.py”, line 426, in check
include_deployment_checks=include_deployment_checks,
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/checks/registry.py”, line 75, in run_checks
new_errors = check(app_configs=app_configs)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/checks/urls.py”, line 13, in check_url_config
return check_resolver(resolver)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/checks/urls.py”, line 23, in check_resolver
for pattern in resolver.url_patterns:
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/utils/functional.py”, line 33, in get
res = instance.dict[self.name] = self.func(instance)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/urlresolvers.py”, line 417, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”,
self.urlconf_module)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/utils/functional.py”, line 33, in get
res = instance.dict[self.name] = self.func(instance)
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/core/urlresolvers.py”, line 410, in urlconf_module
return import_module(self.urlconf_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in
import_module
import(name)
File “/home/mmuser/Programas/CommCare/commcare-hq/urls.py”, line 65, in

url(r’^data_dictionary/’, include('corehq.apps.data

dictionary.urls’)),
File “/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-
packages/django/conf/urls/init.py”, line 52, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in
import_module
import(name)
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/urls.py”,
line 2, in
from corehq.apps.data_dictionary.views import (
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/
apps/data_dictionary/views.py”, line 17, in
from corehq.apps.case_importer.tracking.filestorage import
make_temp_file
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/
apps/case_importer/tracking/filestorage.py”, line 108, in
persistent_file_store = PersistentFileStore(BUCKET, CaseUploadFileMeta)
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/
apps/case_importer/tracking/filestorage.py”, line 31, in init
self._db = get_blob_db()
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py”,
line 14, in get_blob_db
db = _get_fs_db(settings)
File “/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py”,
line 33, in _get_fs_db
raise Error(“cannot initialize blob db: %s” % reason)
corehq.blobs.exceptions.Error: cannot initialize blob db: invalid shared
drive path: None


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Could you show me an example of how to set it up

:slight_smile:

··· El domingo, 5 de marzo de 2017, 1:42:36 (UTC-6), Ben Rudolph escribió: > > Hi Mynor, > > Could you try setting the SHARED_DRIVE_ROOT var your local settings? > https://github.com/dimagi/commcare-hq/blob/master/settings.py#L540 > > Ben > > On Sat, Mar 4, 2017 at 3:09 AM, Mynor Choc <choc...@gmail.com > wrote: > >> hi, how solution >> >> ./manage.py sync_couch_views >> Traceback (most recent call last): >> File "./manage.py", line 118, in >> execute_from_command_line(sys.argv) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/__init__.py", >> line 353, in execute_from_command_line >> utility.execute() >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/__init__.py", >> line 345, in execute >> self.fetch_command(subcommand).run_from_argv(self.argv) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 348, in run_from_argv >> self.execute(*args, **cmd_options) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 398, in execute >> self.check() >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 426, in check >> include_deployment_checks=include_deployment_checks, >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/registry.py", >> line 75, in run_checks >> new_errors = check(app_configs=app_configs) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/urls.py", >> line 13, in check_url_config >> return check_resolver(resolver) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/urls.py", >> line 23, in check_resolver >> for pattern in resolver.url_patterns: >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/utils/functional.py", >> line 33, in __get__ >> res = instance.__dict__[self.name] = self.func(instance) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/urlresolvers.py", >> line 417, in url_patterns >> patterns = getattr(self.urlconf_module, "urlpatterns", >> self.urlconf_module) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/utils/functional.py", >> line 33, in __get__ >> res = instance.__dict__[self.name] = self.func(instance) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/urlresolvers.py", >> line 410, in urlconf_module >> return import_module(self.urlconf_name) >> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in >> import_module >> __import__(name) >> File "/home/mmuser/Programas/CommCare/commcare-hq/urls.py", line 65, in >> >> url(r'^data_dictionary/', >> include('corehq.apps.data_dictionary.urls')), >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", >> line 52, in include >> urlconf_module = import_module(urlconf_module) >> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in >> import_module >> __import__(name) >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/urls.py", >> line 2, in >> from corehq.apps.data_dictionary.views import ( >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/views.py", >> line 17, in >> from corehq.apps.case_importer.tracking.filestorage import >> make_temp_file >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/case_importer/tracking/filestorage.py", >> line 108, in >> persistent_file_store = PersistentFileStore(BUCKET, >> CaseUploadFileMeta) >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/case_importer/tracking/filestorage.py", >> line 31, in __init__ >> self._db = get_blob_db() >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/__init__.py", >> line 14, in get_blob_db >> db = _get_fs_db(settings) >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/__init__.py", >> line 33, in _get_fs_db >> raise Error("cannot initialize blob db: %s" % reason) >> corehq.blobs.exceptions.Error: cannot initialize blob db: invalid shared >> drive path: None >> (cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$ >> (cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$ pip install >> django-configurations >> Collecting django-configurations >> Downloading django_configurations-2.0-py2.py3-none-any.whl >> Installing collected packages: django-configurations >> Successfully installed django-configurations-2.0 >> (cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$ ./manage.py >> sync_couch_views >> Traceback (most recent call last): >> File "./manage.py", line 118, in >> execute_from_command_line(sys.argv) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/__init__.py", >> line 353, in execute_from_command_line >> utility.execute() >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/__init__.py", >> line 345, in execute >> self.fetch_command(subcommand).run_from_argv(self.argv) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 348, in run_from_argv >> self.execute(*args, **cmd_options) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 398, in execute >> self.check() >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/management/base.py", >> line 426, in check >> include_deployment_checks=include_deployment_checks, >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/registry.py", >> line 75, in run_checks >> new_errors = check(app_configs=app_configs) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/urls.py", >> line 13, in check_url_config >> return check_resolver(resolver) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/checks/urls.py", >> line 23, in check_resolver >> for pattern in resolver.url_patterns: >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/utils/functional.py", >> line 33, in __get__ >> res = instance.__dict__[self.name] = self.func(instance) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/urlresolvers.py", >> line 417, in url_patterns >> patterns = getattr(self.urlconf_module, "urlpatterns", >> self.urlconf_module) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/utils/functional.py", >> line 33, in __get__ >> res = instance.__dict__[self.name] = self.func(instance) >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/core/urlresolvers.py", >> line 410, in urlconf_module >> return import_module(self.urlconf_name) >> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in >> import_module >> __import__(name) >> File "/home/mmuser/Programas/CommCare/commcare-hq/urls.py", line 65, in >> >> url(r'^data_dictionary/', >> include('corehq.apps.data_dictionary.urls')), >> File >> "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", >> line 52, in include >> urlconf_module = import_module(urlconf_module) >> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in >> import_module >> __import__(name) >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/urls.py", >> line 2, in >> from corehq.apps.data_dictionary.views import ( >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/views.py", >> line 17, in >> from corehq.apps.case_importer.tracking.filestorage import >> make_temp_file >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/case_importer/tracking/filestorage.py", >> line 108, in >> persistent_file_store = PersistentFileStore(BUCKET, >> CaseUploadFileMeta) >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/case_importer/tracking/filestorage.py", >> line 31, in __init__ >> self._db = get_blob_db() >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/__init__.py", >> line 14, in get_blob_db >> db = _get_fs_db(settings) >> File >> "/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/__init__.py", >> line 33, in _get_fs_db >> raise Error("cannot initialize blob db: %s" % reason) >> corehq.blobs.exceptions.Error: cannot initialize blob db: invalid shared >> drive path: None >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CommCare Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-developers+unsubscribe@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >

Hi Mynor,

You can see an example in the dev_settings.py:

Ben

··· On Fri, Mar 10, 2017 at 6:54 PM, mynor choc wrote:

Could you show me an example of how to set it up

:slight_smile:
El domingo, 5 de marzo de 2017, 1:42:36 (UTC-6), Ben Rudolph escribió:

Hi Mynor,

Could you try setting the SHARED_DRIVE_ROOT var your local settings?
commcare-hq/settings.py at master · dimagi/commcare-hq · GitHub

Ben

On Sat, Mar 4, 2017 at 3:09 AM, Mynor Choc choc...@gmail.com wrote:

hi, how solution

./manage.py sync_couch_views
Traceback (most recent call last):
File "./manage.py", line 118, in
execute_from_command_line(sys.argv)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/management/init.py", line 353, in
execute_from_command_line
utility.execute()
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/management/init.py", line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/management/base.py", line 348, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/management/base.py", line 398, in execute
self.check()
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/management/base.py", line 426, in check
include_deployment_checks=include_deployment_checks,
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/checks/registry.py", line 75, in run_checks
new_errors = check(app_configs=app_configs)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/checks/urls.py", line 23, in check_resolver
for pattern in resolver.url_patterns:
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/utils/functional.py", line 33, in get
res = instance.dict[self.name] = self.func(instance)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/urlresolvers.py", line 417, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/utils/functional.py", line 33, in get
res = instance.dict[self.name] = self.func(instance)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/urlresolvers.py", line 410, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in
import_module
import(name)
File "/home/mmuser/Programas/CommCare/commcare-hq/urls.py", line 65,
in
url(r'^data_dictionary/', include('corehq.apps.data_dict
ionary.urls')),
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/conf/urls/init.py", line 52, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib/python2.7/importlib/init.py", line 37, in
import_module
import(name)
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/urls.py",
line 2, in
from corehq.apps.data_dictionary.views import (
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/views.py",
line 17, in
from corehq.apps.case_importer.tracking.filestorage import
make_temp_file
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/
case_importer/tracking/filestorage.py", line 108, in
persistent_file_store = PersistentFileStore(BUCKET,
CaseUploadFileMeta)
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/
case_importer/tracking/filestorage.py", line 31, in init
self._db = get_blob_db()
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py",
line 14, in get_blob_db
db = _get_fs_db(settings)
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py",
line 33, in _get_fs_db
raise Error("cannot initialize blob db: %s" % reason)
corehq.blobs.exceptions.Error: cannot initialize blob db: invalid shared
drive path: None
(cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$
(cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$ pip install
django-configurations
Collecting django-configurations
Downloading django_configurations-2.0-py2.py3-none-any.whl
Installing collected packages: django-configurations
Successfully installed django-configurations-2.0
(cchq) mmuser@mmuser-Ins:~/Programas/CommCare/commcare-hq$ ./manage.py
sync_couch_views
Traceback (most recent call last):
File "./manage.py", line 118, in
execute_from_command_line(sys.argv)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/management/init.py", line 353, in
execute_from_command_line
utility.execute()
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/management/init.py", line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/management/base.py", line 348, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/management/base.py", line 398, in execute
self.check()
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/management/base.py", line 426, in check
include_deployment_checks=include_deployment_checks,
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/checks/registry.py", line 75, in run_checks
new_errors = check(app_configs=app_configs)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/checks/urls.py", line 23, in check_resolver
for pattern in resolver.url_patterns:
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/utils/functional.py", line 33, in get
res = instance.dict[self.name] = self.func(instance)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/urlresolvers.py", line 417, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/utils/functional.py", line 33, in get
res = instance.dict[self.name] = self.func(instance)
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/core/urlresolvers.py", line 410, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in
import_module
import(name)
File "/home/mmuser/Programas/CommCare/commcare-hq/urls.py", line 65,
in
url(r'^data_dictionary/', include('corehq.apps.data_dict
ionary.urls')),
File "/home/mmuser/.virtualenvs/cchq/local/lib/python2.7/site-pac
kages/django/conf/urls/init.py", line 52, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib/python2.7/importlib/init.py", line 37, in
import_module
import(name)
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/urls.py",
line 2, in
from corehq.apps.data_dictionary.views import (
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/data_dictionary/views.py",
line 17, in
from corehq.apps.case_importer.tracking.filestorage import
make_temp_file
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/
case_importer/tracking/filestorage.py", line 108, in
persistent_file_store = PersistentFileStore(BUCKET,
CaseUploadFileMeta)
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/apps/
case_importer/tracking/filestorage.py", line 31, in init
self._db = get_blob_db()
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py",
line 14, in get_blob_db
db = _get_fs_db(settings)
File "/home/mmuser/Programas/CommCare/commcare-hq/corehq/blobs/init.py",
line 33, in _get_fs_db
raise Error("cannot initialize blob db: %s" % reason)
corehq.blobs.exceptions.Error: cannot initialize blob db: invalid shared
drive path: None

--


You received this message because you are subscribed to the Google
Groups "CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.