Comments (6)
What version of inkscape you are using? string-escape is an encoding in Python 2.
from writetex.
Hi,
I'm using the "almost" last version: 0.92.1? I can upgrade to 0.92.2 to see how it goes.
from writetex.
I never heard inkscape upgraded to python 3. You can try to change all "string-escape" in writetex.py
into "unicode_escape".
from writetex.
I did so and got this instead:
Traceback (most recent call last):
File "writetex.py", line 347, in <module>
e.affect()
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 285, in affect
self.output()
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 272, in output
self.document.write(sys.stdout)
File "src\lxml\lxml.etree.pyx", line 2048, in lxml.etree._ElementTree.write (src\lxml\lxml.etree.c:65677)
File "src\lxml\serializer.pxi", line 729, in lxml.etree._tofilelike (src\lxml\lxml.etree.c:139689)
File "src\lxml\lxml.etree.pyx", line 324, in lxml.etree._ExceptionContext._raise_if_stored (src\lxml\lxml.etree.c:12150)
File "src\lxml\serializer.pxi", line 646, in lxml.etree._FilelikeWriter.write (src\lxml\lxml.etree.c:138305)
TypeError: write() argument must be str, not bytes
from writetex.
It seems the inkscape version you installed is using Python 3. I cannot reproduce this error on my machine. Maybe you can try to remove all .decode('string-escape')
.
from writetex.
Hi,
Sorry for the late response. The problem was in the installation of Inkscape. Inkscape provides python 2.7 in the installation, but because I already had python I unchecked the installation of python with inkscape. Thus, when using WriteTex, it used my own python which was python 3...
I installed the latest version of Inkscape with its python interpretor and it works now.
Thanks for the help. Great extension!
from writetex.
Related Issues (20)
- WriteText won't output Figure HOT 5
- Won't render equations HOT 7
- error HOT 7
- update the "Latex source" field with the current selected equation in the drawing. HOT 2
- Add the option to use the "pdftocario" as the pdf to svg converter HOT 5
- ImportError: No module named inkex HOT 1
- update needed for Inkscape version 1.0 HOT 3
- 建议直接使用 mathjax 进行公式渲染 HOT 7
- dvisvgm maybe another possibility to convert dvi/pdf to svg
- Latex error : writetex.log not found HOT 4
- Path environment not set correctly when running from within a Mac OSX .app bundle. HOT 5
- Does not work with inkscape HOT 2
- Traceback after WriteTeX installation on Ubuntu HOT 4
- is there an option to re-edit latex? HOT 2
- FileNotFoundError HOT 2
- WriteTeX and Inkscape 1.2 HOT 8
- [Suggestion] handle_path function puts newpath before old os.environ["PATH"] is better.
- Problem using the fourier package HOT 6
- Error reading temp file HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from writetex.