From: "Андрей Черепанов" <cas@altlinux.ru> To: devel@lists.altlinux.org Subject: Re: [devel] orca 3.8.0 / json Date: Fri, 12 Apr 2013 10:30:27 +0400 Message-ID: <5167AA03.4090100@altlinux.ru> (raw) In-Reply-To: <5166D88F.2040202@altlinux.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 11.04.2013 19:36, Paul Wolneykien пишет: > > Всем привет, > > Пытаюсь собрать новую orca с python3, в зависимостях у неё > присутствует json (его хочет json_backend.py), поэтому его я тоже > принялся пересобирать с python3. Но сборка упирается в следующую > ошибку: > >> Bytecompiling python3 modules in >> /usr/src/tmp/python-module-json-buildroot using python3 compile >> /usr/src/tmp/python-module-json-buildroot/usr/lib/python3.3/site-packages/json.py >> >> >> /usr/src/tmp/python-module-json-buildroot/usr/lib/python3.3/site-packages/json.py >> can't be compiled : File >> "/usr/src/tmp/python-module-json-buildroot/usr/lib/python3.3/site-packages/json.py", >> >> line 61 >> raise ReadException, "Nothing to read: '%s'" % >> self._generator.all() ^ SyntaxError: invalid syntax > > Наверное, это какая-то простая проблема, вызванная нововведениями > в python3? Как её проще всего разрешить? > > С другой стороны, http://sourceforge.net/projects/json-py/ не > самый активно поддерживаемый проект, прямо скажем. Может быть лучше > будет перевести Orca на какой-нибудь другой вариант модуля json? > Нет ли, случаем, легко адаптируемой замены этому модулю? Оттуда > всего пара функций задействована: > >> json.load(settingsFile) json.dump(prefs, settingsFile, indent=4) > > Может быть взять simplejson? Нет, поставить пакет python-modules-json (python-modules-*, в отличие от python-module-*, собираются из собственно python) - -- Андрей Черепанов ALT Linux cas@altlinux.ru -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) iEYEARECAAYFAlFnqgMACgkQSGPA9Knr8THrgQCfWP3doN+AFCQgH63eVCwt40pR AH4AnjylfsA9LZPkKOjFKWJvBSNdvy16 =mtvc -----END PGP SIGNATURE-----
prev parent reply other threads:[~2013-04-12 6:30 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-04-11 15:36 Paul Wolneykien 2013-04-11 16:00 ` Ivan A. Melnikov 2013-04-11 16:24 ` Paul Wolneykien 2013-04-12 9:12 ` Vitaly Kuznetsov 2013-04-12 6:30 ` Андрей Черепанов [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=5167AA03.4090100@altlinux.ru \ --to=cas@altlinux.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git