From: André W. <co...@wo...> - 2020-05-25 07:04:53
|
Dear Donald, are you aware that you need a TeX installation? Like texlive (https://www.tug.org/texlive/) Trying to simulate what happens without TeX being available, I just changed the name of the tex executable in my .pyxrc. The result looks a bit different, but still ... I think this could be the source of your problem. Best, André wobsta@x1:~/pyx/dev$ python hello.py Platform name is: posix Python executable: /home/wobsta/.pyenv/versions/pyxdev/bin/python Python version: 3.6.9 (default, Sep 4 2019, 18:32:29) [GCC 8.3.0] PyX comes from: /home/wobsta/pyx/dev/pyx/__init__.py PyX version: 0.15 pyxrc is loaded from: /home/wobsta/.pyxrc pykpathsea: not available file locators in use: local, internal, recursivedir, ls_R PyX executes tex_not_installed with args ['--output-directory', '/tmp/pyx1apacx7z', '--ipc'] located at None Traceback (most recent call last): File "hello.py", line 9, in <module> c.text(0, 0, r"Hello, world!") File "/home/wobsta/pyx/dev/pyx/canvas.py", line 409, in text return self.insert(self.textengine.text(x, y, atext, *args, **kwargs)) File "/home/wobsta/pyx/dev/pyx/text.py", line 1454, in wrapped return f(self, *args, **kwargs) File "/home/wobsta/pyx/dev/pyx/text.py", line 1490, in text return self.instance.text(*args, **kwargs) File "/home/wobsta/pyx/dev/pyx/text.py", line 1330, in text return self.text_pt(unit.topt(x), unit.topt(y), *args, **kwargs) File "/home/wobsta/pyx/dev/pyx/text.py", line 1304, in text_pt left_pt, right_pt, height_pt, depth_pt = self.do_typeset(expr, self.texmessages_run_default + self.texmessages_run + texmessages) File "/home/wobsta/pyx/dev/pyx/text.py", line 1221, in do_typeset self.do_start() File "/home/wobsta/pyx/dev/pyx/text.py", line 1370, in do_start super().do_start() File "/home/wobsta/pyx/dev/pyx/text.py", line 1176, in do_start self.popen = config.Popen(cmd, stdin=config.PIPE, stdout=config.PIPE, stderr=config.STDOUT, bufsize=0) File "/home/wobsta/pyx/dev/pyx/config.py", line 218, in Popen return subprocess.Popen(cmd, *args, **kwargs) File "/home/wobsta/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 729, in __init__ restore_signals, start_new_session) File "/home/wobsta/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'tex_not_installed': 'tex_not_installed' Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/home/wobsta/pyx/dev/pyx/text.py", line 1035, in _cleanup self.do_finish(cleanup=False) File "/home/wobsta/pyx/dev/pyx/text.py", line 1235, in do_finish self.go_finish() File "/home/wobsta/pyx/dev/pyx/text.py", line 1364, in go_finish self._execute("\\end%\n", self.texmessages_end_default + self.texmessages_end, STATE_TYPESET, STATE_DONE) File "/home/wobsta/pyx/dev/pyx/text.py", line 1078, in _execute self.texoutput.expect(None) AttributeError: 'SingleTexEngine' object has no attribute 'texoutput' Am 25.05.20 um 01:22 schrieb Donald Tillman: > Hi folks, > > I'm trying PyX for the first time. This is on an iMac, High Sierra, 10.13.6. > > The third line of the Hello World demo blows out with this error: > >>>> c.text(0, 0, "Hello, world!") > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/anaconda3/lib/python3.7/site-packages/pyx/canvas.py", line 409, in text > return self.insert(self.textengine.text(x, y, atext, *args, **kwargs)) > File "/anaconda3/lib/python3.7/site-packages/pyx/text.py", line 1454, in wrapped > return f(self, *args, **kwargs) > File "/anaconda3/lib/python3.7/site-packages/pyx/text.py", line 1490, in text > return self.instance.text(*args, **kwargs) > File "/anaconda3/lib/python3.7/site-packages/pyx/text.py", line 1330, in text > return self.text_pt(unit.topt(x), unit.topt(y), *args, **kwargs) > File "/anaconda3/lib/python3.7/site-packages/pyx/text.py", line 1304, in text_pt > left_pt, right_pt, height_pt, depth_pt = self.do_typeset(expr, self.texmessages_run_default + self.texmessages_run + texmessages) > File "/anaconda3/lib/python3.7/site-packages/pyx/text.py", line 1224, in do_typeset > return self._execute(expr, texmessages, STATE_TYPESET, STATE_TYPESET) > File "/anaconda3/lib/python3.7/site-packages/pyx/text.py", line 1091, in _execute > self.texoutput.expect("PyXInputMarker:executeid=%i:" % self.executeid) > AttributeError: 'SingleTexEngine' object has no attribute 'texoutput' > > Perhaps there's some secret step I've missed? > > Thanks! > >>>> pyxinfo() > Platform name is: posix > Python executable: /anaconda3/bin/python > Python version: 3.7.3 (default, Mar 27 2019, 16:54:48) > [Clang 4.0.1 (tags/RELEASE_401/final)] > PyX comes from: /anaconda3/lib/python3.7/site-packages/pyx/__init__.py > PyX version: 0.15 > pyxrc would be loaded from: /Users/till/.pyxrc > pykpathsea: not available > file locators in use: local, internal, pykpathsea, kpsewhich > > -- Don > -- > Donald Tillman, Palo Alto, California > http://www.till.com > > > > _______________________________________________ > PyX-user mailing list > PyX...@li... > https://lists.sourceforge.net/lists/listinfo/pyx-user > -- by _ _ _ / \ \ / ) Dr. André Wobst, co...@wo..., https://www.wobsta.de / _ \ \/\/ / wobsta GmbH, Amselweg 22, 85716 Unterschleißheim, Germany (_/ \_)_/\_/ Office: +49 (0)89 5480 3394, Mobile: +49 (0)160 9380 4217 |