Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error converting <_io.TextIOWrapper name='m4.dot' mode='r' encoding='cp1251'> #109

Open
SeaMan75 opened this issue Mar 7, 2025 · 1 comment

Comments

@SeaMan75
Copy link

SeaMan75 commented Mar 7, 2025

Python: 3.12.7 | packaged by Anaconda, Inc. | (main, Oct 4 2024, 13:17:27) [MSC v.1929 64 bit (AMD64)], g2d: 1.0.0
Traceback (most recent call last):
File "C:\Users\bgnic\anaconda3\Lib\xml\etree\ElementTree.py", line 1515, in init
from xml.parsers import expat
File "C:\Users\bgnic\anaconda3\Lib\xml\parsers\expat.py", line 4, in
from pyexpat import *
ImportError: DLL load failed while importing pyexpat: Операционная система не может запустить %1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\bgnic\anaconda3\Lib\xml\etree\ElementTree.py", line 1518, in init
import pyexpat as expat
ImportError: DLL load failed while importing pyexpat: Операционная система не может запустить %1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\bgnic\anaconda3\Scripts\graphviz2drawio-script.py", line 9, in
sys.exit(main())
^^^^^^
File "C:\Users\bgnic\anaconda3\Lib\site-packages\graphviz2drawio_main_.py", line 61, in main
convert_file(in_file, args.program, out_file)
File "C:\Users\bgnic\anaconda3\Lib\site-packages\graphviz2drawio_main
.py", line 22, in _convert_file
output = convert(to_convert.read(), program)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bgnic\anaconda3\Lib\site-packages\graphviz2drawio\graphviz2drawio.py", line 26, in convert
nodes, edges, clusters = parse_nodes_edges_clusters(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bgnic\anaconda3\Lib\site-packages\graphviz2drawio\models\SvgParser.py", line 27, in parse_nodes_edges_clusters
parser=ElementTree.XMLParser(target=CommentedTreeBuilder()),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bgnic\anaconda3\Lib\xml\etree\ElementTree.py", line 1520, in init
raise ImportError(
ImportError: No module named expat; use SimpleXMLTreeBuilder instead

@hbmartin
Copy link
Owner

hbmartin commented Mar 8, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants