-
-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem after installing 0.16.2 #8155
Comments
Hi - confirm that - absolutely same logs. My test env is based on packager.io - so I trried to update 0.16.3 through packager.io , but it still try to install 0.16.2 . |
I'm having the same issue. Upgraded from 0.16.1 to 0.16.3 and inventree no longer starts up. Tried downgrading back to 0.16.1 but that didn't fix it.
|
I found the issue - looks like all the language files are missing. I checked on a older backup I had and the django.mo file is missing. I copied this file for just the en_US language and I'm now able to start inventree up and it's again working. (Other languages are all still broken) Old test server:
Upgraded to 0.16.3 (With my fix):
0.16.3 Prior to my fix:
|
|
It was more by luck. I know nothing about rest_framework but saw the error was about python language files missing so started search for folders that stored the locales and came across the missing files. I've checked and don't see any other locales missing from other subdirectories. |
No idea, the shipped stuff has not really changed. On the road without my normal dev setup right now so hard to debug |
Same! |
Deployment Method
Steps to Reproduce
Describe the problem*
After update to 0.16.2 i get
OSError: No translation files found for default language en-us.
Steps to Reproduce
I just run inventree run cli update
Relevant log output
Installing plugin packages from '/etc/inventree/plugins.txt'
Python version 3.11.2 - /opt/inventree/env/bin/python3
Traceback (most recent call last):
File "/opt/inventree/src/backend/InvenTree/manage.py", line 24, in
main()
File "/opt/inventree/src/backend/InvenTree/manage.py", line 20, in main
execute_from_command_line(sys.argv)
File "/opt/inventree/env/lib/python3.11/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/inventree/env/lib/python3.11/site-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "/opt/inventree/env/lib/python3.11/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/inventree/env/lib/python3.11/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/opt/inventree/env/lib/python3.11/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/opt/inventree/src/backend/InvenTree/build/models.py", line 9, in
from django.contrib.auth.models import User
File "/opt/inventree/env/lib/python3.11/site-packages/django/contrib/auth/models.py", line 98, in
class Group(models.Model):
File "/opt/inventree/env/lib/python3.11/site-packages/django/db/models/base.py", line 194, in new
new_class.add_to_class(obj_name, obj)
File "/opt/inventree/env/lib/python3.11/site-packages/django/db/models/base.py", line 371, in add_to_class
value.contribute_to_class(cls, name)
File "/opt/inventree/env/lib/python3.11/site-packages/django/db/models/fields/related.py", line 1910, in contribute_to_class
self.remote_field.through = create_many_to_many_intermediary_model(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/inventree/env/lib/python3.11/site-packages/django/db/models/fields/related.py", line 1269, in create_many_to_many_intermediary_model
"verbose_name": _("%(from)s-%(to)s relationship")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/inventree/env/lib/python3.11/site-packages/django/utils/functional.py", line 191, in mod
return str(self) % rhs
^^^^^^^^^
File "/opt/inventree/env/lib/python3.11/site-packages/django/utils/functional.py", line 155, in __text_cast
return func(*self.__args, **self.__kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/inventree/env/lib/python3.11/site-packages/django/utils/translation/init.py", line 95, in gettext
return _trans.gettext(message)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/inventree/env/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 380, in gettext
_default = _default or translation(settings.LANGUAGE_CODE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/inventree/env/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 293, in translation
_translations[language] = DjangoTranslation(language)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/inventree/env/lib/python3.11/site-packages/django/utils/translation/trans_real.py", line 179, in init
raise OSError(
OSError: No translation files found for default language en-us.
The text was updated successfully, but these errors were encountered: