From: Jerome L. <ad...@gm...> - 2014-10-13 07:36:26
|
Hi, Please upgrade to 2.5.1.1. This bug was fixed there. J. Leclanche 2014-10-13 9:23 GMT+02:00 xarkam . <xa...@gm...>: > Hi Martin, > I have this error by following the procedure > > (env)xarkam@intranet:/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/assets$ > sudo pootle collectstatic --noinput > 2014-10-13 09:16:35,732 INFO Loading custom settings from > '/home/xarkam/.pootle/pootle.conf'... > 2014-10-13 07:16:35,920 INFO Using Python PO > > 0 static files copied, 134 unmodified. > (env)xarkam@intranet:/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/assets$ > sudo pootle assets build > 2014-10-13 09:16:44,305 INFO Loading custom settings from > '/home/xarkam/.pootle/pootle.conf'... > 2014-10-13 07:16:44,494 INFO Using Python PO > Building bundle: css/common.min.%(version)s.css > 2014-10-13 07:16:44,555 INFO Building bundle: css/common.min.%(version)s.css > Building bundle: js/editor.min.%(version)s.js > 2014-10-13 07:16:44,560 INFO Building bundle: js/editor.min.%(version)s.js > Building bundle: js/admin.min.%(version)s.js > 2014-10-13 07:16:44,608 INFO Building bundle: js/admin.min.%(version)s.js > Building bundle: css/editor.min.%(version)s.css > 2014-10-13 07:16:44,611 INFO Building bundle: css/editor.min.%(version)s.css > Building bundle: js/common.min.%(version)s.js > 2014-10-13 07:16:44,618 INFO Building bundle: js/common.min.%(version)s.js > Traceback (most recent call last): > File "/var/www/pootle/env/bin/pootle", line 9, in <module> > load_entry_point('Pootle==2.5.1', 'console_scripts', 'pootle')() > File "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/runner.py", > line 210, in main > django_settings_module='pootle.settings') > File "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/runner.py", > line 198, in run_app > management.execute_from_command_line([runner_name, command] + command_args) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", > line 443, in execute_from_command_line > utility.execute() > File "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", > line 382, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/base.py", > line 196, in run_from_argv > self.execute(*args, **options.__dict__) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/base.py", > line 232, in execute > output = self.handle(*args, **options) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/django_assets/management/commands/assets.py", > line 91, in handle > retval = impl.run_with_argv(args) or 0 > File "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", > line 549, in run_with_argv > return self.run_with_ns(ns) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", > line 539, in run_with_ns > return cmd.invoke(ns.command, args) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", > line 373, in invoke > return function(**args) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", > line 172, in __call__ > bundle.build(force=True, disable_cache=no_cache) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/bundle.py", > line 660, in build > disable_cache=disable_cache)) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/bundle.py", > line 597, in _build > force, disable_cache=disable_cache, extra_filters=extra_filters) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/bundle.py", > line 538, in _merge_and_apply > final = merge([h for h, _ in hunks]) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/merge.py", > line 177, in merge > return MemoryHunk(separator.join([h.data() for h in hunks])) > File "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/merge.py", > line 79, in data > return f.read() > File "/var/www/pootle/env/lib/python2.7/codecs.py", line 296, in decode > (result, consumed) = self._buffer_decode(data, self.errors, final) > UnicodeDecodeError: 'utf8' codec can't decode byte 0xa3 in position > 9795: invalid start byte > > > Where is the file in error ? > > Thanks. > > > 2014-10-12 20:40 GMT+02:00 Martin Abente Lahaye <tc...@su...>: > >> Hello, >> >> You need to run [1]: >> >> (env) $ pootle collectstatic --noinput(env) $ pootle assets build >> >> >> Hope it helps. >> >> Regards, >> Martin. >> >> Refs: >> 1. >> https://pootle.readthedocs.org/en/stable-2.5.1/server/installation.html#setting-up-the-database >> >> >> On Sun, Oct 12, 2014 at 2:01 PM, xarkam . <xa...@gm...> wrote: >> >>> Hello, >>> >>> I try to upgrade my Pootle 2.5.0 to 2.5.1.1 but, on build assets, I have >>> on >>> error : >>> >>> 2014-10-12 18:47:45,624 INFO Loading custom settings from >>> '/home/xarkam/.pootle/pootle.conf'... >>> 2014-10-12 16:47:45,814 INFO Using Python PO >>> Bringing up to date: css/common.min.%(version)s.css >>> Bringing up to date: js/editor.min.%(version)s.js >>> Bringing up to date: js/admin.min.%(version)s.js >>> Bringing up to date: css/editor.min.%(version)s.css >>> Bringing up to date: js/common.min.%(version)s.js >>> Traceback (most recent call last): >>> File "/var/www/pootle/env/bin/pootle", line 9, in <module> >>> load_entry_point('Pootle==2.5.1', 'console_scripts', 'pootle')() >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/runner.py", >>> line 210, in main >>> django_settings_module='pootle.settings') >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/runner.py", >>> line 198, in run_app >>> management.execute_from_command_line([runner_name, command] + >>> command_args) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", >>> line 443, in execute_from_command_line >>> utility.execute() >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", >>> line 382, in execute >>> self.fetch_command(subcommand).run_from_argv(self.argv) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/base.py", >>> line 196, in run_from_argv >>> self.execute(*args, **options.__dict__) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/base.py", >>> line 232, in execute >>> output = self.handle(*args, **options) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django_assets/management/commands/assets.py", >>> line 91, in handle >>> retval = impl.run_with_argv(args) or 0 >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", >>> line 549, in run_with_argv >>> return self.run_with_ns(ns) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", >>> line 539, in run_with_ns >>> return cmd.invoke(ns.command, args) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", >>> line 373, in invoke >>> return function(**args) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", >>> line 217, in __call__ >>> bundle.build(force=False) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/bundle.py", >>> line 660, in build >>> disable_cache=disable_cache)) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/bundle.py", >>> line 597, in _build >>> force, disable_cache=disable_cache, extra_filters=extra_filters) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/bundle.py", >>> line 538, in _merge_and_apply >>> final = merge([h for h, _ in hunks]) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/merge.py", >>> line 177, in merge >>> return MemoryHunk(separator.join([h.data() for h in hunks])) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/merge.py", >>> line 79, in data >>> return f.read() >>> File "/var/www/pootle/env/lib/python2.7/codecs.py", line 296, in decode >>> (result, consumed) = self._buffer_decode(data, self.errors, final) >>> UnicodeDecodeError: 'utf8' codec can't decode byte 0xa3 in position >>> 9795: invalid start byte >>> >>> >>> I don't understand this error. >>> >>> Pootle is on Ubuntu 14.04 upgrated from 12.04 and it's installed in >>> virtualenv. >>> Upgrade started using pip install --upgrade Pootle=2.5.1 >>> >>> I tested *asserts clean* and have also one error >>> >>> >>> 2014-10-12 19:00:04,492 INFO Loading custom settings from >>> '/home/xarkam/.pootle/pootle.conf'... >>> 2014-10-12 17:00:04,718 INFO Using Python PO >>> Cleaning generated assets... >>> 2014-10-12 17:00:04,794 INFO Cleaning generated assets... >>> Deleted asset: css/common.min.%(version)s.css >>> 2014-10-12 17:00:04,794 INFO Deleted asset: css/common.min.%(version)s.css >>> Deleted asset: js/editor.min.%(version)s.js >>> 2014-10-12 17:00:04,794 INFO Deleted asset: js/editor.min.%(version)s.js >>> Deleted asset: js/admin.min.%(version)s.js >>> 2014-10-12 17:00:04,795 INFO Deleted asset: js/admin.min.%(version)s.js >>> Deleted asset: css/editor.min.%(version)s.css >>> 2014-10-12 17:00:04,795 INFO Deleted asset: css/editor.min.%(version)s.css >>> Traceback (most recent call last): >>> File "/var/www/pootle/env/bin/pootle", line 9, in <module> >>> load_entry_point('Pootle==2.5.1', 'console_scripts', 'pootle')() >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/runner.py", >>> line 210, in main >>> django_settings_module='pootle.settings') >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/runner.py", >>> line 198, in run_app >>> management.execute_from_command_line([runner_name, command] + >>> command_args) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", >>> line 443, in execute_from_command_line >>> utility.execute() >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", >>> line 382, in execute >>> self.fetch_command(subcommand).run_from_argv(self.argv) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/base.py", >>> line 196, in run_from_argv >>> self.execute(*args, **options.__dict__) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django/core/management/base.py", >>> line 232, in execute >>> output = self.handle(*args, **options) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django_assets/management/commands/assets.py", >>> line 91, in handle >>> retval = impl.run_with_argv(args) or 0 >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", >>> line 549, in run_with_argv >>> return self.run_with_ns(ns) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", >>> line 539, in run_with_ns >>> return cmd.invoke(ns.command, args) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", >>> line 373, in invoke >>> return function(**args) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/script.py", >>> line 299, in __call__ >>> file_path = bundle.resolve_output(self.environment) >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/bundle.py", >>> line 328, in resolve_output >>> output = output % {'version': version or self.get_version(ctx)} >>> File >>> "/var/www/pootle/env/local/lib/python2.7/site-packages/webassets/bundle.py", >>> line 315, in get_version >>> 'determined dynamically, because: %s') % (self, reason)) >>> webassets.exceptions.BundleError: Cannot find version of <Bundle >>> output=js/common.min.%(version)s.js, >>> filters=[<webassets.filter.rjsmin.RJSMin object at 0x7f56a541ad90>], >>> contents=('js/vendor/jquery/jquery.js', >>> 'js/vendor/jquery/jquery.tipsy.js', >>> 'js/vendor/jquery/jquery.cookie.js', >>> 'js/vendor/jquery/jquery.bidi.js', >>> 'js/vendor/jquery/jquery.magnific-popup.js', >>> 'js/vendor/jquery/jquery.utils.js', >>> 'js/vendor/jquery/jquery.easing.js', >>> 'js/vendor/jquery/jquery.serializeObject.js', >>> 'js/vendor/jquery/jquery.select2.js', >>> 'js/vendor/bootstrap/bootstrap-alert.js', >>> 'js/vendor/bootstrap/bootstrap-transition.js', 'js/common.js', >>> 'js/search.js', 'js/utils.js', 'js/zoom.js', 'js/vendor/sorttable.js', >>> 'js/vendor/spin.js', 'js/vendor/shortcut.js')>. There is no manifest >>> which knows the version, and it cannot be determined dynamically, >>> because: output target has a placeholder >>> >>> >>> >>> Pootle --version : >>> >>> Pootle 2.5.1 >>> Translate Toolkit 1.12.0-rc1 >>> Django 1.4.15 >>> >>> >>> Thanks. >>> >>> ------------------------------------------------------------------------------ >>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >>> http://p.sf.net/sfu/Zoho >>> _______________________________________________ >>> Translate-pootle mailing list >>> Tra...@li... >>> https://lists.sourceforge.net/lists/listinfo/translate-pootle >>> >> >> > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://p.sf.net/sfu/Zoho > _______________________________________________ > Translate-pootle mailing list > Tra...@li... > https://lists.sourceforge.net/lists/listinfo/translate-pootle |