Sometimes stuff breaks in the development version, do a git pull to update 
to the most recent version, delete the database and try the initialsetup 
command again.

On Sunday, December 28, 2014 at 9:44:22 AM UTC-4, Laurent p wrote:
>
> after some hours... i can't install a fresh development version of mayan 
> edms...
>
> i follow the previous steps but when i run the command : manage.py 
> initialsetup i have this error :
>
> "django.db.utils.OperationalError: no such table: documents_documenttype"
>
>
> can you help me please.
>
>
> thx
>
>
> the trace : 
>
>
> Traceback (most recent call last):
>
>   File "./manage.py", line 10, in <module>
>
>     execute_from_command_line(sys.argv)
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/core/management/__init__.py", 
> line 399, in execute_from_command_line
>
>     utility.execute()
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/core/management/__init__.py", 
> line 392, in execute
>
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/core/management/base.py", 
> line 242, in run_from_argv
>
>     self.execute(*args, **options.__dict__)
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/core/management/base.py", 
> line 280, in execute
>
>     translation.activate('en-us')
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/utils/translation/__init__.py",
>  
> line 130, in activate
>
>     return _trans.activate(language)
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  
> line 188, in activate
>
>     _active.value = translation(language)
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  
> line 177, in translation
>
>     default_translation = _fetch(settings.LANGUAGE_CODE)
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  
> line 159, in _fetch
>
>     app = import_module(appname)
>
>   File "/root/venv/lib/python2.7/site-packages/django/utils/importlib.py", 
> line 40, in import_module
>
>     __import__(name)
>
>   File "/root/mayan-edms/mayan/apps/tags/__init__.py", line 7, in <module>
>
>     from documents.models import Document
>
>   File "/root/mayan-edms/mayan/apps/documents/__init__.py", line 161, in 
> <module>
>
>     APIEndPoint('documents')
>
>   File "/root/mayan-edms/mayan/apps/rest_api/classes.py", line 27, in 
> __init__
>
>     api_urls = load_backend('{}.urls.api_urls'.format(app_name or name))
>
>   File "/root/mayan-edms/mayan/apps/common/utils.py", line 238, in 
> load_backend
>
>     return getattr(import_module(module_name), klass)
>
>   File "/root/venv/lib/python2.7/site-packages/django/utils/importlib.py", 
> line 40, in import_module
>
>     __import__(name)
>
>   File "/root/mayan-edms/mayan/apps/documents/urls.py", line 5, in <module>
>
>     from .api_views import (APIDocumentView, APIDocumentImageView, 
> APIDocumentListView,
>
>   File "/root/mayan-edms/mayan/apps/documents/api_views.py", line 32, in 
> <module>
>
>     from .serializers import (DocumentImageSerializer, 
> DocumentPageSerializer,
>
>   File "/root/mayan-edms/mayan/apps/documents/serializers.py", line 51, in 
> <module>
>
>     class NewDocumentSerializer(serializers.Serializer):
>
>   File "/root/mayan-edms/mayan/apps/documents/serializers.py", line 53, in 
> NewDocumentSerializer
>
>     document_type = serializers.ChoiceField(choices=[(document_type.pk, 
> document_type) for document_type in DocumentType.objects.all()])
>
>   File "/root/venv/lib/python2.7/site-packages/django/db/models/query.py", 
> line 96, in __iter__
>
>     self._fetch_all()
>
>   File "/root/venv/lib/python2.7/site-packages/django/db/models/query.py", 
> line 857, in _fetch_all
>
>     self._result_cache = list(self.iterator())
>
>   File "/root/venv/lib/python2.7/site-packages/django/db/models/query.py", 
> line 220, in iterator
>
>     for row in compiler.results_iter():
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/db/models/sql/compiler.py", 
> line 713, in results_iter
>
>     for rows in self.execute_sql(MULTI):
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/db/models/sql/compiler.py", 
> line 786, in execute_sql
>
>     cursor.execute(sql, params)
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/db/backends/util.py", line 
> 69, in execute
>
>     return super(CursorDebugWrapper, self).execute(sql, params)
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/db/backends/util.py", line 
> 53, in execute
>
>     return self.cursor.execute(sql, params)
>
>   File "/root/venv/lib/python2.7/site-packages/django/db/utils.py", line 
> 99, in __exit__
>
>     six.reraise(dj_exc_type, dj_exc_value, traceback)
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/db/backends/util.py", line 
> 53, in execute
>
>     return self.cursor.execute(sql, params)
>
>   File 
> "/root/venv/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", 
> line 452, in execute
>
>     return Database.Cursor.execute(self, query, params)
>
> django.db.utils.OperationalError: no such table: documents_documenttype
>
> Le dimanche 28 décembre 2014 11:41:20 UTC+1, Laurent p a écrit :
>>
>> hi,
>>
>> I find the solution in an other post :
>>
>>
>> git clone https://github.com/mayan-edms/mayan-edms.git
>> cd mayan-edms
>> git checkout development
>> virtualenv venv
>> source venv/bin/activate
>> pip install -r requirements.txt
>> ./manage.py initialsetup
>> ./manage.py runserver
>>
>>
>>    - In the browser go to 127.0.0.1:8000
>>    - Login
>>    - Change the language using the language selector int he top right of 
>>    the screen
>>    
>> To update your copy after new commits have been made do a:
>>
>> git pull
>>
>> The packaged version is very outdated, there is a repository to try to 
>> create an easier to maintain packaged version (
>> https://github.com/mayan-edms/mayan-edms-docker) but it is very 
>> experimental.
>>
>> Thx to rosario
>>
>> Le vendredi 26 décembre 2014 14:27:14 UTC+1, Laurent p a écrit :
>>>
>>> To test the development branch i ran theses command :
>>>
>>> - virtualenv mayan
>>>
>>> - pip install git+
>>> https://github.com/mayan-edms/mayan-edms.git@development
>>>
>>> - mayan-edms.py initialsetup
>>>
>>>
>>> then i have this error :
>>>
>>> (mayan)[root@localhost bin]# mayan-edms.py initialsetup
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "/root/mayan/bin/mayan-edms.py", line 10, in <module>
>>>
>>>     execute_from_command_line(sys.argv)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>  
>>> line 399, in execute_from_command_line
>>>
>>>     utility.execute()
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>  
>>> line 392, in execute
>>>
>>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/core/management/base.py", 
>>> line 242, in run_from_argv
>>>
>>>     self.execute(*args, **options.__dict__)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/core/management/base.py", 
>>> line 280, in execute
>>>
>>>     translation.activate('en-us')
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/translation/__init__.py",
>>>  
>>> line 130, in activate
>>>
>>>     return _trans.activate(language)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 188, in activate
>>>
>>>     _active.value = translation(language)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 177, in translation
>>>
>>>     default_translation = _fetch(settings.LANGUAGE_CODE)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 159, in _fetch
>>>
>>>     app = import_module(appname)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/importlib.py", line 
>>> 40, in import_module
>>>
>>>     __import__(name)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/tags/__init__.py", line 
>>> 7, in <module>
>>>
>>>     from documents.models import Document
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/documents/__init__.py", 
>>> line 10, in <module>
>>>
>>>     from dynamic_search.classes import SearchModel
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/dynamic_search/__init__.py",
>>>  
>>> line 13, in <module>
>>>
>>>     APIEndPoint('search', app_name='dynamic_search')
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/rest_api/classes.py", 
>>> line 27, in __init__
>>>
>>>     api_urls = load_backend('{}.urls.api_urls'.format(app_name or name))
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/common/utils.py", line 
>>> 238, in load_backend
>>>
>>>     return getattr(import_module(module_name), klass)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/importlib.py", line 
>>> 40, in import_module
>>>
>>>     __import__(name)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/dynamic_search/urls.py",
>>>  
>>> line 3, in <module>
>>>
>>>     from .api_views import (APIRecentSearchListView, APIRecentSearchView,
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/dynamic_search/api_views.py",
>>>  
>>> line 8, in <module>
>>>
>>>     from .classes import SearchModel
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/dynamic_search/classes.py",
>>>  
>>> line 15, in <module>
>>>
>>>     from .models import RecentSearch
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/dynamic_search/models.py",
>>>  
>>> line 15, in <module>
>>>
>>>     class RecentSearch(models.Model):
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/dynamic_search/models.py",
>>>  
>>> line 19, in RecentSearch
>>>
>>>     user = models.ForeignKey(User, verbose_name=_(u'User'), 
>>> editable=True)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/translation/__init__.py",
>>>  
>>> line 76, in ugettext
>>>
>>>     return _trans.ugettext(message)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 281, in ugettext
>>>
>>>     return do_translate(message, 'ugettext')
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 263, in do_translate
>>>
>>>     _default = translation(settings.LANGUAGE_CODE)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 177, in translation
>>>
>>>     default_translation = _fetch(settings.LANGUAGE_CODE)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>>>  
>>> line 159, in _fetch
>>>
>>>     app = import_module(appname)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/django/utils/importlib.py", line 
>>> 40, in import_module
>>>
>>>     __import__(name)
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/sources/__init__.py", 
>>> line 6, in <module>
>>>
>>>     from documents.models import Document
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/documents/models.py", 
>>> line 34, in <module>
>>>
>>>     from .literals import LANGUAGE_CHOICES
>>>
>>>   File 
>>> "/root/mayan/lib/python2.7/site-packages/mayan/apps/documents/literals.py", 
>>> line 1, in <module>
>>>
>>>     import pycountry
>>>
>>> ImportError: No module named pycountry
>>>
>>>
>>> thanks for your help and happy christmas ;-)
>>>
>>>  
>>> On Friday, December 26, 2014 1:59:14 PM UTC+1, Laurent p wrote:
>>>>
>>>> hello 
>>>>
>>>> i'm not an expert with git and python but i successfully install mayan 
>>>> on linux (nice document). after some minutes i find a bug with the ocr and 
>>>> some pdf. 
>>>> I find on google group / GIT some guys are implement a solution for 
>>>> next version... the path is available on the development branch, but i 
>>>> don't know how to install the development version of mayan... 
>>>>
>>>> can you help me please. 
>>>>
>>>> thanks
>>>
>>>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to