Nuitka / Pyinstaller,无法加载oauth2client库和其他库

时间:2016-01-23 02:47:38

标签: python google-app-engine gspread oauth2client nuitka

我对Python比较陌生。对于一个学校项目,我正在编写一个相对复杂的程序。我需要制作一个可执行文件。我开始测试实际程序的一小部分,我无法使用PyInstaller,Nuitka,Py2Exe和cx_freeze创建.exe文件....

我最后几次尝试是使用Nuitka。

我使用的库:

  • gspread
  • oauth2client
  • PyQt4的
  • 串行
  • 线程
  • 时间
  • SYS
  • JS​​ON

以下是Nuitka的内容

Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\client.py:33: Cannot find 'six.moves' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\client.py:1108: Cannot find 'google.appengine' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\appengine.py:28: Cannot find 'webapp2' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\appengine.py:30: Cannot find 'google.appengine.api' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\appengine.py:33: Cannot find 'google.appengine.ext' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\appengine.py:34: Cannot find 'google.appengine.ext.webapp.util' in package 'oauth2client' as absolute
import.Nuitka:WARNING:C:\Python34\Lib\site-packages\rsa\transform.py:28: Cannot find 'psyco' in package 'rsa' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\_pycrypto_crypt.py:16: Cannot find 'Crypto.PublicKey' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\_pycrypto_crypt.py:17: Cannot find 'Crypto.Hash' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\_pycrypto_crypt.py:18: Cannot find 'Crypto.Signature' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\oauth2client\_pycrypto_crypt.py:19: Cannot find 'Crypto.Util.asn1' in package 'oauth2client' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\httplib2\__init__.py:55: Cannot find 'socks' in package 'httplib2' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\gspread\httpsession.py:14: Cannot find 'urlparse' in package 'gspread' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\__init__.py:29: Cannot find 'urllib3' in package 'requests.packages' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\__init__.py:35: Cannot find 'chardet' in package 'requests.packages' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\util\response.py:2: Cannot find 'packages.six.moves' in package 'requests.packages.urllib3' 2 package levels up.Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\packages\ssl_match_hostname\__init__.py:7: Cannot find 'backports.ssl_match_hostname' in package 'requests.packages.urllib3.packages.ssl_match_hostname' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\response.py:13: Cannot find 'packages.six.moves' in package 'requests.packages.urllib3' 1 package level up.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\packages\ordered_dict.py:11: Cannot find '_abcoll' in package 'requests.packages.urllib3.packages' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\poolmanager.py:7: Cannot find 'urlparse' in package 'requests.packages.urllib3' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\compat.py:37: Cannot find'urlparse' in package 'requests' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\compat.py:38: Cannot find'urllib2' in package 'requests' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\compat.py:39: Cannot find'cookielib' in package 'requests' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\compat.py:40: Cannot find'Cookie' in package 'requests' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\certs.py:17: Cannot find 'certifi' in package 'requests' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\contrib\pyopenssl.py:49: Cannot find 'ndg.httpsclient.ssl_peer_verification' in package 'requests.packages.urllib3.contrib' as absolute import.
Nuitka:WARNING:C:\Python34\Lib\site-packages\requests\packages\urllib3\contrib\pyopenssl.py:50: Cannot find 'ndg.httpsclient.subj_alt_name' in package 'requests.packages.urllib3.contrib' as absolute import.
Nuitka:WARNING:Unresolved '__import__' call at 'C:\Python34\Lib\site-packages\oauth2client\client.py:303' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at 'C:\Python34\Lib\site-packages\oauth2client\client.py:308' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at 'C:\Python34\Lib\site-packages\oauth2client\client.py:310' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at 'C:\Python34\Lib\site-packages\requests\packages\urllib3\packages\six.py:74' may require use of '--recurse-directory'.
Nuitka:WARNING:Unresolved '__import__' call at 'C:\Python34\Lib\site-packages\six.py:82' may require use of '--recurse-directory'.

任何帮助都会非常感激

1 个答案:

答案 0 :(得分:0)

确定

你需要回到基础,第一个问题是,真的是在使用appengine吗?

如果您正在使用appengine,那么我建议您先阅读开始使用appengine和python以及沙盒,因为Nuitka不会在appengine上运行