|
From: René B. <rba...@mu...> - 2015-12-18 21:48:46
|
Salut André, It is related to the xml-means to generate SVG-code. Should i delete all the *.cpython-3?.py? files in directory __pycache__ ? [Soll ich ...] a+ rb Le Fri, 18 Dec 2015 21:59:26 +0100, André Wobst <wo...@us...> a écrit : > Hi René, > > I never faced this problem, I don't really know where it comes from, > but it seems a problem when mixing different python versions. See > http://stackoverflow.com/questions/514371/whats-the-bad-magic-number-error > for example. Maybe the answers to this question help you to resolve > the issue. > > I guess it's not really related to PyX. You could try to do a "from > email import message" first. Does this work, or is this already > broken? > > Best, > > > André > > Am 18.12.2015 um 21:48 schrieb René Bastian > <rba...@mu...>: > > > De: René Bastian <rba...@mu...> > > À: PyX User list <pyx...@li...> > > Sujet: magic number > > > > > > Salut all, > > > > compiling old modules using PyX, i got these errors: > > > > Traceback (most recent call last): > > File "pfb2pyx.py", line 9, in <module> > > from pyx import canvas, path, text, style > > File "/home/rbm/Python/PyX-0.14.1/pyx/__init__.py", line 48, in > > <module> > > importlib.import_module('.' + module, package='pyx') > > File "/usr/local/lib/python3.4/importlib/__init__.py", line 109, in > > import_module > > return _bootstrap._gcd_import(name[level:], package, level) > > File "/home/rbm/Python/PyX-0.14.1/pyx/canvas.py", line 29, in > > <module> from . import attr, baseclasses, config, document, style, > > trafo, svgwriter, unit > > File "/home/rbm/Python/PyX-0.14.1/pyx/document.py", line 24, in > > <module> > > from . import bbox, pswriter, pdfwriter, svgwriter, trafo, style, > > unit > > File "/home/rbm/Python/PyX-0.14.1/pyx/svgwriter.py", line 22, in > > <module> > > import io, copy, time, xml.sax.saxutils > > File "/usr/local/lib/python3.4/xml/sax/saxutils.py", line 6, in > > <module> > > import os, urllib.parse, urllib.request > > File "/usr/local/lib/python3.4/urllib/request.py", line 88, in > > <module> > > import http.client > > File "/usr/local/lib/python3.4/http/client.py", line 69, in > > <module> import email.parser > > File "/usr/local/lib/python3.4/email/parser.py", line 12, in > > <module> from email.feedparser import FeedParser, BytesFeedParser > > File "/usr/local/lib/python3.4/email/feedparser.py", line 27, in > > <module> > > from email import message > > File "/usr/local/lib/python3.4/email/message.py", line 10, in > > <module> import uu > > ImportError: bad magic number in 'uu': b'\x03\xf3\r\n' > > > > ------------ > > > > I know nothing about magic numbers. > > Do you need more infos? > > > > a+ > > > > René > > > > > > > > -- > > René Bastian > > www.pythoneon.org > > > > > > -- > > René Bastian > > www.pythoneon.org > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > PyX-user mailing list > > PyX...@li... > > https://lists.sourceforge.net/lists/listinfo/pyx-user > -- René Bastian www.pythoneon.org |