首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >小白提问:Python py to exe 后程序无法执行?

小白提问:Python py to exe 后程序无法执行?

提问于 2022-08-16 09:22:53
回答 1关注 0查看 76

使用Python写一个条形码生成工具,在网上找了一段代码自己修改后在VS Code中可以正常运行转换为条形码,但通过AUTO-PY-TO-EXE转换为EXE后执行报错,请指点。谢谢。

Exception in Tkinter callback

Traceback (most recent call last):

File "tkinter\__init__.py", line 1921, in __call__

File "Barcode.py", line 30, in <lambda>

File "Barcode.py", line 16, in create_barcode

File "barcode\codex.py", line 251, in rende

File "barcode\base.py", line 105, in rende

File "barcode\writer.py", line 265, in rende

File "barcode\writer.py", line 439, in _paint_text

File "PIL\ImageFont.py", line 959, in truetype

File "PIL\ImageFont.py", line 956, in freetype

File "PIL\ImageFont.py", line 247, in __init__

OSError: cannot open resource

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档