Home > other >  Pyinstaller importERROR but no detailed information after packaging
Pyinstaller importERROR but no detailed information after packaging

Time:03-31

I made a program, the main program for the OSRR py, import the other two files ExcelA. Py and ExcelB py, when I run in the visual studio, the program can normal execution, but I use pyinstaller packaged as a single exe file, run complains "importERROR", but without the prompts import which name error, packaged commands are: pyinstaller - F OSRR. Py - p ExcelA. Py - p ExcelB. Py - hidden - import ExcelA - hidden - import ExcelB error below,


Before I don't have the new ExcelB. Py, direct packaging OSRR. Py and Excel. Py is properly packaged, and built a ExcelB in OSRR. After import in py error, so I will ExcelB. Py import library, built a project after import run directly, also appear error, the following figure,



Now I don't have any idea, don't know how to troubleshoot the error, I uninstalled all the contents of the import to invoke the PIP install installed, still is invalid, please leaders guidance,

CodePudding user response:

Added, ExcelB import in the library, I run directly without error in visual studio, after is packaged into exe, after running exe file error,

CodePudding user response:

I in Test1 py deleted all the import, and then try one by one, found is a string of code problem:
The from pynput. The rid_device_info_keyboard import Key, the Controller

But still don't know how to solve this problem, and uninstall pynput and reshipment, or not,

CodePudding user response:

Problem has been solved, test out, ha ha ha ha ha
  • Related