python打包成exe,运行时报错cx_oracle.interfaceerror:unable to acquire oracle environment

Film1017 2017-11-07 05:12:06
python 程序在eric上运行没报错
使用pyinstaller打包是报
9659 WARNING: lib not found: MSVCR80.dll dependency of e:\program files\python\l
ib\site-packages\OCI.dll
10028 INFO: Looking for eggs
10029 INFO: Using Python library E:\Program Files\python\python36.dll
10029 INFO: Found binding redirects:
[BindingRedirect(name='Microsoft.VC80.CRT', language=None, arch='amd64', oldVers
ion=(8, 0, 50727, 762), newVersion=(8, 0, 50727, 4940), publicKeyToken='1fc8b3b9
a1e18e3b')]
10039 INFO: Warnings written to E:\Program Files\python\Scripts\myexe\build\inpu
t\warninput.txt
warninput.txt文件内容:
missing module named resource - imported by posix, E:\Program Files\python\Scripts\myexe\input.py
missing module named posix - imported by os, E:\Program Files\python\Scripts\myexe\input.py
missing module named _posixsubprocess - imported by subprocess, E:\Program Files\python\Scripts\myexe\input.py
missing module named readline - imported by cmd, code, pdb, E:\Program Files\python\Scripts\myexe\input.py
excluded module named _frozen_importlib - imported by importlib, importlib.abc, E:\Program Files\python\Scripts\myexe\input.py
missing module named _frozen_importlib_external - imported by importlib._bootstrap, importlib, importlib.abc, E:\Program Files\python\Scripts\myexe\input.py
missing module named _winreg - imported by platform, E:\Program Files\python\Scripts\myexe\input.py
missing module named _scproxy - imported by urllib.request
missing module named java - imported by platform, E:\Program Files\python\Scripts\myexe\input.py
missing module named 'java.lang' - imported by platform, E:\Program Files\python\Scripts\myexe\input.py, xml.sax._exceptions
missing module named vms_lib - imported by platform, E:\Program Files\python\Scripts\myexe\input.py
missing module named termios - imported by tty, E:\Program Files\python\Scripts\myexe\input.py, getpass
missing module named grp - imported by shutil, tarfile, E:\Program Files\python\Scripts\myexe\input.py
missing module named 'org.python' - imported by copy, E:\Program Files\python\Scripts\myexe\input.py, xml.sax
missing module named pwd - imported by posixpath, shutil, tarfile, http.server, webbrowser, E:\Program Files\python\Scripts\myexe\input.py, netrc, getpass
missing module named org - imported by pickle, E:\Program Files\python\Scripts\myexe\input.py
missing module named _dummy_threading - imported by dummy_threading, E:\Program Files\python\Scripts\myexe\input.py

运行
E:\Program Files\python\Scripts\myexe\dist下的exe文件
能正常打开,但是点击提交按钮时就报错 cx_oracle.interfaceerror:unable to acquire oracle environment handle,然后EXE就停止工作,非正常退出。
...全文
326 1 打赏 收藏 举报
写回复
1 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
碧水幽幽泉 2017-11-07
这个应该移到 脚本语言(Perl/Python)版块去问。
  • 打赏
  • 举报
回复
发帖
脚本语言

3.7w+

社区成员

JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • ITBOB • 鲍勃
加入社区
帖子事件
创建了帖子
2017-11-07 05:12