|
From: Alan I. <ala...@gm...> - 2019-08-03 19:33:29
|
Installing under Python 3.8 produces a number of invalid escape sequence warnings. Cheers, Alan Isaac On 7/14/2019 8:06 AM, Joerg Lehmann via PyX-devel wrote: > Hi, > > We're very happy to announce the release of PyX 0.15! > > This release introduces a new text engine UnicodeEngine, which enables > simple typesetting with Type1 fonts without using TeX/LaTeX. The graph > axis texters have been adjusted to work on the UnicodeEngine, as well. > The exponential and mixed graph axis texters have been merged into the > new default texter. > > A couple of bug fixes are included in this release, as well. See the > full list of changes below. > > Furthermore, PyX' home has been moved to https://urldefense.proofpoint.com/v2/url?u=https-3A__pyx-2Dproject.org_&d=DwIFAw&c=U0G0XJAMhEk_X0GAGzCL7Q&r=FR4OfOwPIdSjpNUX7d7p26lh4cdTpLUy-9VDFkA1wBo&m=k-s2JG2e1uwXn1dN9_phSL6YJSoEReHKhBb1Pqyrv9Q&s=8KtHaAITLTAPTincuyj6GsrPnGoPk_ftoW3NZ0nb-nQ&e= . > The source code repository has been converted to git and is now hosted > at https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pyx-2Dproject_pyx&d=DwIFAw&c=U0G0XJAMhEk_X0GAGzCL7Q&r=FR4OfOwPIdSjpNUX7d7p26lh4cdTpLUy-9VDFkA1wBo&m=k-s2JG2e1uwXn1dN9_phSL6YJSoEReHKhBb1Pqyrv9Q&s=MpuknayjKR0_Ma2el12xt7nqkOclg413LwcT512j4oc&e= . > > Happy PyXing, > > André and Jörg > > ------------------------------------------------------------------------ > > 0.15 (2019/07/14): > - text module: > - introduce UnicodeEngine > - MultiEngineText to express combined text data for TeX based > engines and the new UnicodeEngine > - Text and StackedText classes for simple typesetting operations on > UnicodeEngine text > - rename TexRunner and LatexRunner to TexEngine and LatexEngine > - rename cls argument of text.set to engine (with fallback and > deprecation warning in place) > - improve error handling when input cannot be encoded by texenc > - add support for virtual fonts in virtual fonts > - font maps: treat font files without extension as Type 1 (to > prevent warnings occuring especially with Minion or Libertine > fonts) > - fix UnicodeDecodeError for invalid character responses by > TeX/LaTeX (reported by Gert Ingold) > - new examples: > - non-ASCII TeX encoding > - t1font: > - use integers in auto-guessed font descriptors to prevent an > issue in pdftex (reported by Michael Hartmann) > - fix typo: ItalicAngles -> ItalicAngle (thanks to Ross Moore) > - graph.axis.texter: > - unify exponential and mixed texter to default texter > - use MultiEngineText in all texters (decimal, default, factional) > - pdfwriter, pswriter, svgwriter: > - removed underscore in PS and PDF and SVG writer options > strip_fonts, text_as_path, mesh_as_bitmap, > mesh_as_bitmap_resolution > (new: stripfonts, textaspath, meshasbitmap and > meshasbitmapresolution) to prevent ambiquity with write_ > prefixes. > - Fix color output in SVG (reported by Michael Hartmann) > - deformer: > - Fix parallel deformer for empty normsubpaths (thanks to > Michael J Gruber) > - graph.style: > - Use RGBA instead of ARGB in the bitmap fallback of > graph.style.density > Fix saving SVG as supported modes are limited (thanks to > Michael J Gruber) > - pattern: > - inject default linewidth (reported by Michael J Gruber) > - version control: > - switched to git on 2018/07/16 with main repository on GitHub > > > _______________________________________________ > PyX-devel mailing list > PyX...@li... > https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_pyx-2Ddevel&d=DwIFAw&c=U0G0XJAMhEk_X0GAGzCL7Q&r=FR4OfOwPIdSjpNUX7d7p26lh4cdTpLUy-9VDFkA1wBo&m=k-s2JG2e1uwXn1dN9_phSL6YJSoEReHKhBb1Pqyrv9Q&s=PeUpPlS1l3cEykNmQuQcIAwfrILmkj9EcCw8s7ZYk6Y&e= > |
|
From: Gert-Ludwig I. <ger...@ph...> - 2019-08-04 07:01:45
|
Dear Alan, Am 03.08.19 um 21:33 schrieb Alan Isaac: > Installing under Python 3.8 produces a number of invalid escape sequence > warnings. I was unable to reproduce your problem with Python 3.8.0b3. There was no problem installing PyX 0.15 and it worked fine on a few examples. Can you be more specific about the problems encountered? Best regards, Gert -- Gert-Ludwig Ingold email: Ger...@Ph... Institut für Physik Phone: +49-821-598-3234 Universität Augsburg Fax : +49-821-598-3222 D-86135 Augsburg WWW : www.physik.uni-augsburg.de/theo1/ingold Germany PGP : 86FF5A93, key available from homepage |
|
From: Alan I. <ala...@gm...> - 2019-08-04 16:18:15
|
My apologies for the missing details. I pulled the most recent code from Github and installed with the setup script. The warnings were issued (Python 3.8.0b3) when byte compiling texter.py, svgfile.py, t1file.py, and mathutils.py hth, Alan On 8/4/2019 2:47 AM, Gert-Ludwig Ingold wrote: > Dear Alan, > > Am 03.08.19 um 21:33 schrieb Alan Isaac: >> Installing under Python 3.8 produces a number of invalid escape sequence >> warnings. > > I was unable to reproduce your problem with Python 3.8.0b3. There was no > problem installing PyX 0.15 and it worked fine on a few examples. Can > you be more specific about the problems encountered? > > Best regards, > Gert > |
|
From: Gert-Ludwig I. <ger...@ph...> - 2019-08-04 16:57:42
|
Dear Alan, > My apologies for the missing details. > I pulled the most recent code from Github > and installed with the setup script. > The warnings were issued (Python 3.8.0b3) when > byte compiling texter.py, svgfile.py, t1file.py, > and mathutils.py I had not understood that you had built PyX from the source and can now confirm the behavior which you noted. Best regards, Gert -- Gert-Ludwig Ingold email: Ger...@Ph... Institut für Physik Phone: +49-821-598-3234 Universität Augsburg Fax : +49-821-598-3222 D-86135 Augsburg WWW : www.physik.uni-augsburg.de/theo1/ingold Germany PGP : 86FF5A93, key available from homepage |
|
From: Michael J G. <mic...@us...> - 2019-08-05 13:47:50
|
Hi there, Py3.8k is more picky about escapes, some warnings will even turn into errors. In particular, this is about "unnecssary" escapes, i.e. escaped characters which need not be escaped. From a quick first glance at the reported files they fall into two categories: - LaTeX code such as \overline in a docstring which is not marked as raw string - commands such as \s in regex expressions which are not raw strings Cheers Michael Gert-Ludwig Ingold venit, vidit, dixit 2019-08-04 18:57:19: > Dear Alan, > > > My apologies for the missing details. > > I pulled the most recent code from Github > > and installed with the setup script. > > The warnings were issued (Python 3.8.0b3) when > > byte compiling texter.py, svgfile.py, t1file.py, > > and mathutils.py > > I had not understood that you had built PyX from the source > and can now confirm the behavior which you noted. > > Best regards, > Gert > > -- > Gert-Ludwig Ingold email: Ger...@Ph... > Institut für Physik Phone: +49-821-598-3234 > Universität Augsburg Fax : +49-821-598-3222 > D-86135 Augsburg WWW : www.physik.uni-augsburg.de/theo1/ingold > Germany PGP : 86FF5A93, key available from homepage > > > _______________________________________________ > PyX-user mailing list > PyX...@li... > https://lists.sourceforge.net/lists/listinfo/pyx-user |
|
From: Gert-Ludwig I. <ger...@ph...> - 2019-08-05 18:06:15
|
Dear Alan, Am 03.08.19 um 21:33 schrieb Alan Isaac: > Installing under Python 3.8 produces a number of invalid escape sequence > warnings. I have prepared a pull request to address this issue: https://github.com/pyx-project/pyx/pull/5 Best regards, Gert -- Gert-Ludwig Ingold email: Ger...@Ph... Institut für Physik Phone: +49-821-598-3234 Universität Augsburg Fax : +49-821-598-3222 D-86135 Augsburg WWW : www.physik.uni-augsburg.de/theo1/ingold Germany PGP : 86FF5A93, key available from homepage |
|
From: Alan I. <ala...@gm...> - 2019-08-05 19:34:57
|
On 8/5/2019 2:05 PM, Gert-Ludwig Ingold wrote: > Dear Alan, > > Am 03.08.19 um 21:33 schrieb Alan Isaac: >> Installing under Python 3.8 produces a number of invalid escape sequence >> warnings. > I have prepared a pull request to address this issue: > https://github.com/pyx-project/pyx/pull/5 It now installs without the warnings I mentioned. Thanks. I experience two other warnings installing from source (Python 3.8.0b3 on Win 10). C:\Program Files\Python38\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) C:\Program Files\Python38\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'extras_require' warnings.warn(msg) To be clear: I am reporting these warnings fyi, but they do not seem to be affecting any aspect of the installation. Thanks for your quick fix, Alan |
|
From: Gert-Ludwig I. <ger...@ph...> - 2019-08-05 20:01:15
|
Dear Alan, > C:\Program Files\Python38\lib\distutils\dist.py:274: UserWarning: > Unknown distribution option: 'python_requires' > warnings.warn(msg) > C:\Program Files\Python38\lib\distutils\dist.py:274: UserWarning: > Unknown distribution option: 'extras_require' > warnings.warn(msg) I had noticed this as well. It seems that setuptools should be used instead of distutils. I will prepare a PR and see what Jörg and André make out of it. For the moment, you can simply try to replace distutils.core by setuptools in the import. Best regards, Gert -- Gert-Ludwig Ingold email: Ger...@Ph... Institut für Physik Phone: +49-821-598-3234 Universität Augsburg Fax : +49-821-598-3222 D-86135 Augsburg WWW : www.physik.uni-augsburg.de/theo1/ingold Germany PGP : 86FF5A93, key available from homepage |