Comments (2)
已解决
45 信息:PyInstaller:3.4 45 信息:Python:2.7.5 45 信息:平台:Linux-3.10.0-862.el7.x86_64-x86_64-with-centos-7.5.1804-Core oss2 版本“2.18.4”
py脚本运行没有问题,但是通过PyInstaller -F备份后运行出错,在之前的2.3.4没有遇到问题
File "UploadOss.py", line 28, in <module> File "/usr/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module exec(bytecode, module.__dict__) File "oss2/__init__.py", line 15, in <module> File "/usr/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module exec(bytecode, module.__dict__) File "oss2/resumable.py", line 19, in <module> File "/usr/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module exec(bytecode, module.__dict__) File "oss2/crypto_bucket.py", line 10, in <module> File "/usr/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module exec(bytecode, module.__dict__) File "oss2/crypto.py", line 21, in <module> File "/usr/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module exec(bytecode, module.__dict__) File "aliyunsdkcore/client.py", line 45, in <module> File "/usr/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module exec(bytecode, module.__dict__) File "aliyunsdkcore/retry/retry_policy.py", line 33, in <module> File "aliyunsdkcore/retry/retry_condition.py", line 219, in __init__ File "aliyunsdkcore/utils/__init__.py", line 23, in _load_json_from_data_dir IOError: [Errno 2] No such file or directory: '/tmp/_MEIRrgxgc/aliyunsdkcore/data/retry_config.json' [2304] Failed to execute script UploadOss
已解决,在spec文件的Analysis里面把目录包含进去。
datas=[('/usr/lib/python2.7/site-packages/aliyunsdkcore/data/','aliyunsdkcore/data/')],
from aliyun-oss-python-sdk.
已解决,并不是oss2的问题,是最新版的aliyunsdkcore会有这个问题
from aliyun-oss-python-sdk.
Related Issues (20)
- put_object demo in upload.py is way too simply
- will it be better to return an additional erroneous code for an unexistent object key when invoking sign_url()
- 导入出错
- arm32 prebuilt whl
- 希望能增加类似 ossutil cp的功能
- 安装报错
- To operate an empty key will result in operating the bucket
- Allow underscore in x-oss-meta
- RequestError 状态码status为-2,id为空,使用翻墙代理服务器会抛异常,不使用就没问题。 HOT 1
- [Feature Request] Implementation of Asynchronous Mode in OSS2 HOT 1
- update jmespath
- OSS2 multiple exception types must be parenthesized
- 使用OSS2 Client下载content-encoding: gzip文件时会报错
- python 导入问题 (python import issue) HOT 2
- Tag the source
- 希望能支持requests的verify参数
- Consult: Can bucket be instantiated once and used continuously?
- 写assert result.resp.read() == b'{"Status":"OK"}'的人很闲吗? HOT 1
- SyntaxWarning/DeprecatedWarnings invalid escape sequence
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aliyun-oss-python-sdk.