pyInstaller-带有'.plugin'扩展名的ModuleNotFoundError

时间:2019-05-06 07:44:04

标签: python plugins pyinstaller pyexcel

我正在创建用于Excel数据传输的独立OSX应用程序。但是似乎我缺少一个插件。我觉得很奇怪的是,该扩展名在Google搜索“ pyexcel.plugins”中似乎都找不到(我的意思是pyexcel是一个插件,但名为pyexcel.plugins的插件?)。 虽然找到了plugins文件夹-see image

我认为解决方案应该是向pyInstaller添加路径,如this post所示。

但是,我不知道该怎么做。我确实已经尝试将路径添加到hiddenimports,但是没有成功。

下面的图片是从尝试中拍摄的:

在左侧,我已安装的python依赖项(~Nootaku: pip list)。

在右侧,我在尝试编译(pyInstaller main.py --onefile)时的输出

Image Link

最后,我认为在启动应用程序时添加尝试的终端输出会很有用。

MacBook-Pro-de-Nootaku:~ nootaku$ /Users/nootaku/Desktop/python_gui

/dist/main ; exit;
pyexcel_io.readers is abscent or cannot be imported
Traceback (most recent call last):
  File "site-packages/lml/utils.py", line 42, in do_import
  File "site-packages/lml/utils.py", line 51, in _do_import
ModuleNotFoundError: No module named 'pyexcel_io.readers'
pyexcel_io.writers is abscent or cannot be imported
Traceback (most recent call last):
  File "site-packages/lml/utils.py", line 42, in do_import
  File "site-packages/lml/utils.py", line 51, in _do_import
ModuleNotFoundError: No module named 'pyexcel_io.writers'
pyexcel_io.database is abscent or cannot be imported
Traceback (most recent call last):
  File "site-packages/lml/utils.py", line 42, in do_import
  File "site-packages/lml/utils.py", line 51, in _do_import
ModuleNotFoundError: No module named 'pyexcel_io.database'
pyexcel.plugins.parsers is abscent or cannot be imported
Traceback (most recent call last):
  File "site-packages/lml/utils.py", line 42, in do_import
  File "site-packages/lml/utils.py", line 51, in _do_import
ModuleNotFoundError: No module named 'pyexcel.plugins'
pyexcel.plugins.renderers is abscent or cannot be imported
Traceback (most recent call last):
  File "site-packages/lml/utils.py", line 42, in do_import
  File "site-packages/lml/utils.py", line 51, in _do_import
ModuleNotFoundError: No module named 'pyexcel.plugins'
pyexcel.plugins.sources is abscent or cannot be imported
Traceback (most recent call last):
  File "site-packages/lml/utils.py", line 42, in do_import
  File "site-packages/lml/utils.py", line 51, in _do_import
ModuleNotFoundError: No module named 'pyexcel.plugins'
This program needs access to the screen. Please run with a
Framework build of python, and only when you are logged in
on the main display of your Mac.
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

0 个答案:

没有答案