GithubHelp home page GithubHelp logo

Comments (2)

guoguo163 avatar guoguo163 commented on May 28, 2024

已解决

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.

guoguo163 avatar guoguo163 commented on May 28, 2024

已解决,并不是oss2的问题,是最新版的aliyunsdkcore会有这个问题

from aliyun-oss-python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.