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

macos读取pvf报错 #19

Open
8ar10der opened this issue Dec 27, 2024 · 0 comments
Open

macos读取pvf报错 #19

8ar10der opened this issue Dec 27, 2024 · 0 comments

Comments

@8ar10der
Copy link

同样一份pvf文件,windows下用release中的脚本启动的程序可以正常解析
在mac下,python 3.12,直接跑你的源码的main可以正常打开程序,GUI正常,但是pvf解析失败,找不到equipment字段。
很疑惑,看报错直觉是pvf的问题,但是windows环境又一切正常,请大大检查🧐

Exception in thread Thread-20 (inner):
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/amao/Projects/DNF_pvf_python/dnfpkgtool/__main__.py", line 1833, in inner
    info = cacheM.loadItems2(True,pvfPath,encode=self.PVFEncodeE.get())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/amao/Projects/DNF_pvf_python/dnfpkgtool/cacheManager.py", line 733, in loadItems2
    all_items_dict = pvfReader.get_Item_Dict(pvf)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/amao/Projects/DNF_pvf_python/dnfpkgtool/pvfReader.py", line 1061, in get_Item_Dict
    subKeywordsDict = keywordsDict['equipment']
                      ~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'equipment'
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

1 participant