pyinstaller error "c:\users\ra\appdata\local\programs\python\python37\lib\site-packages\importlib_resources\version.txt" when adding binary and data files.

348 views
Skip to first unread message

Subramanian Ramajayam

unread,
Jul 27, 2020, 3:44:12 AM7/27/20
to PyInstaller
62 INFO: PyInstaller: 4.0.dev0+55c8855d9d
62 INFO: Python: 3.7.7
62 INFO: Platform: Windows-10-10.0.18362-SP0
62 INFO: wrote C:\Users\RAMAJAYAM\importstock.spec
62 INFO: UPX is not available.
62 INFO: Extending PYTHONPATH with paths
['C:\\Users\\RAMAJAYAM', 'C:\\Users\\RAMAJAYAM']
62 INFO: checking Analysis
62 INFO: Building Analysis because Analysis-00.toc is non existent
62 INFO: Initializing module dependency graph...
62 INFO: Caching module graph hooks...
78 INFO: Analyzing base_library.zip ...
2062 INFO: Processing pre-find module path hook   distutils
2077 INFO: distutils: retargeting to non-venv dir 'c:\\users\\ramajayam\\appdata\\local\\programs\\python\\python37\\lib'
3483 INFO: Caching module dependency graph...
3577 INFO: running Analysis Analysis-00.toc
3608 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by c:\users\ramajayam\appdata\local\programs\python\python37\python.exe
3671 INFO: Analyzing C:\Users\RAMAJAYAM\importstock.py
5375 INFO: Processing pre-find module path hook   site
5375 INFO: site: retargeting to fake-dir 'c:\\users\\ramajayam\\appdata\\local\\programs\\python\\python37\\lib\\site-packages\\PyInstaller\\fake-modules'
7640 INFO: Processing pre-safe import module hook   setuptools.extern.six.moves
25455 INFO: Processing pre-safe import module hook   six.moves
25939 INFO: Processing pre-safe import module hook   urllib3.packages.six.moves
50309 INFO: Processing module hooks...
50309 INFO: Loading module hook "hook-botocore.py"...
50480 INFO: Loading module hook "hook-certifi.py"...
50480 INFO: Loading module hook "hook-Crypto.py"...
50496 INFO: Loading module hook "hook-distutils.py"...
50496 INFO: Loading module hook "hook-encodings.py"...
50590 INFO: Loading module hook "hook-importlib_metadata.py"...
50590 INFO: Loading module hook "hook-importlib_resources.py"...
Unable to find "c:\users\ramajayam\appdata\local\programs\python\python37\lib\site-packages\importlib_resources\version.txt" when adding binary and data files.

bwoodsend

unread,
Jul 27, 2020, 7:45:08 AM7/27/20
to PyInstaller

Could you raise this one as an issue on PyInstaller’s github. Include the above traceback and your version of importlib_resources.

Nathaniel Manista

unread,
Aug 6, 2020, 12:36:04 PM8/6/20
to PyInstaller
On Monday, July 27, 2020 at 1:45:08 PM UTC+2 bwoodsend wrote:

Could you raise this one as an issue on PyInstaller’s github. Include the above traceback and your version of importlib_resources.

I hit this obstacle today and seeing no other in-the-last-week-and-a-half report about it I filed it as issue 5059 but I'd describe its status as "fixpending" or "fixed-but-not-yet-released": I was not able to reproduce the issue with PyInstaller 4.0.dev0. Any idea when a new PyInstaller version containing the fix will be released on PyPI?

Thanks much,
-Nathaniel

bwoodsend

unread,
Aug 7, 2020, 3:35:38 AM8/7/20
to PyInstaller
Ahh, didn't realise it was already done. It's really hard to tell when 4.0 will happen. We keep hitting new issues we need to fix first. I'd say a couple of weeks but we said that 3 months ago. Just install from Github if you can.
Reply all
Reply to author
Forward
0 new messages