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

Python 3.11环境报错 #21

Open
NewTrees opened this issue Jul 17, 2024 · 4 comments
Open

Python 3.11环境报错 #21

NewTrees opened this issue Jul 17, 2024 · 4 comments

Comments

@NewTrees
Copy link

1
saving xml 1_xml
Traceback (most recent call last):
File "D:\Laiye\CodeProjects\PythonProjects\ofdtopdf\src\test.py", line 38, in
test_ofd2(ofd_file_path)
File "D:\Laiye\CodeProjects\PythonProjects\ofdtopdf\src\test.py", line 19, in test_ofd2
ofd.read(ofdb64,save_xml=True, xml_name=f"{file_prefix}_xml") # 读取ofdb64
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Laiye\CodeProjects\PythonProjects\ofdtopdf\env\Lib\site-packages\easyofd\ofd.py", line 46, in read
self.data = OFDParser(ofd_f)(save_xml=save_xml, xml_name=xml_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Laiye\CodeProjects\PythonProjects\ofdtopdf\env\Lib\site-packages\easyofd\parser_ofd\ofd_parser.py", line 343, in call
return self.parser()
^^^^^^^^^^^^^
File "D:\Laiye\CodeProjects\PythonProjects\ofdtopdf\env\Lib\site-packages\easyofd\parser_ofd\ofd_parser.py", line 250, in parser
f.write(self.get_xml_obj(SignedValue))
TypeError: write() argument must be str, not None

@renoyuan
Copy link
Owner

ofd 文件发我看下

@NewTrees
Copy link
Author

@renoyuan 您好,我已经邮件发给您了,麻烦您看看,谢谢

@renoyuan
Copy link
Owner

已解决,可以尝试更新easyofd代码库再试下

@NewTrees
Copy link
Author

已经转换成功,谢谢!

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