Skip to content

macos读取pvf报错 #19

Description

@8ar10der

同样一份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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions