我正在尝试为我们的工具创建Flatpak:https://github.com/IENT/RDPlot 我的flatpak配置和其他文件在这里:https://github.com/IENT/flathub/tree/de.ient.RDPlot
当我尝试调用启动工具时,我会得到
flatpak-builder --run buildDir de.ient.RDPlot.yaml rdplot --filesystem=host
Traceback (most recent call last):
File "/app/bin/rdplot", line 5, in <module>
from pkg_resources import load_entry_point
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
File "/usr/lib/python3.5/site-packages/setuptools-22.0.5-py3.5.egg/pkg_resources/__init__.py", line 2927, in <module>
File "/usr/lib/python3.5/site-packages/setuptools-22.0.5-py3.5.egg/pkg_resources/__init__.py", line 2913, in _call_aside
File "/usr/lib/python3.5/site-packages/setuptools-22.0.5-py3.5.egg/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
File "/usr/lib/python3.5/site-packages/setuptools-22.0.5-py3.5.egg/pkg_resources/__init__.py", line 635, in _build_master
File "/usr/lib/python3.5/site-packages/setuptools-22.0.5-py3.5.egg/pkg_resources/__init__.py", line 943, in require
File "/usr/lib/python3.5/site-packages/setuptools-22.0.5-py3.5.egg/pkg_resources/__init__.py", line 829, in resolve
pkg_resources.DistributionNotFound: The 'sip' distribution was not found and is required by rdplot
我试图在调用命令之前在本地以及在flatpak配置中设置PYTHONPATH,但这是行不通的。 我确认该软件包已正确安装:
cd /var/lib/flatpak/app/de.ient.RDPlot/current/active/files/lib/python3.5/site-packages
ipython
In [1]: import sip
In [2]: sip.__file__
Out[2]: '/var/lib/flatpak/app/de.ient.RDPlot/x86_64/master/028d157308e77fd7ea66c39d93bf661dc3ddebc570aae0bcad6f07ab92ae4257/files/lib/python3.5/site-packages/sip.so'
任何有关如何进行的建议都将是很棒的!我注意到其他Flatpaks,例如(https://github.com/flathub/org.kde.krita)补丁sip,但它们使用的是不同的sip / pyqt版本,我并不认为这是同一个问题。我认为根本找不到。