Execution: pyinstaller .\checkattendance.spec
report errors:
for name, pth in format_binaries_and_datas(datas, workingdir=spec_dir):
File "d:\python\winpython-64bit-2.7.10.3\python-2.7.10.amd64\lib\site-packages\PyInstaller\building\utils.py", line 440, in format_binaries_and_datas
for src_root_path_or_glob, trg_root_dir in binaries_or_datas:
ValueError: too many values to unpack
When reading an error, there should be a problem with the format of the data in the data or binaries. Think of adding content to the data field of the spec file, such as data = [“config.Ini”, ‘.’]
According to the information, the list of data is a list of tuples, and the tuple is a tuple of two elements. The first element is the position when reading the file in Python code, and the second element represents the real directory of the data file to be read.
So the format should be data = [(“config.Ini”, ‘.’)]
After modification, execute pyinstaller .\checkattendance.spec
It can be packed smoothly. I hope it can help you with the same problem~
Read More:
- ValueError: need more than 1 value to unpack
- Python Valueerror: cannot index with vector containing Na / Nan values
- [resolution] str.contains() problem] valueerror: cannot index with vector containing Na/Nan values
- Python errors: valueerror: if using all scalar values, you must pass an index (four solutions)
- Plt.acorr() Function Error: ValueError: object too deep for desired array
- [Solved] Pyinstaller packaged exe error: “failed to execute script XXX”
- [How to Solve] pyinstaller failed to execute script
- Python Use PIP to install pyinstaller Error [Solved]
- How to Solve PyInstaller Package Error: ModuleNotFoundError: No module named ‘xxxx‘
- Conscience installation: How To install Pyinstaller offline on Windows
- [Solved] Pyinstaller Package and Run Error: RuntimeError: Unable to open/read ui device
- Python: How to Processe “return multiple values”
- [Solved] Pyinstaller Error: “RuntimeError: No metadata path found for distribution ‘greenlet‘
- ValueError: Found array with dim 4. Estimator expected and ValueError: Expected 2D array, got 1D array i
- The solution of no such file or directory and cannot load native module running error of python3 pyinstaller after packaging
- Python2.7 Pyinstaller Install Error: ERROR: Command errored out with exit status 1
- Pyinstaller Error: [ImportError]: DLL load failed while importing _socket: Parameter error
- [Solved] ValueError: only one element tensors can be converted to Python scalars
- [Solved] Pyinstaller package opencv error: ImportError: OpenCV loader: missing configuration file: [‘config.py’]. Check OpenCV installation.
- An error occurred when executing pyinstaller -F xxx.spec after editing the xxx.spec file