Unable to find EGG-INFO when adding binary and data files.

402 views
Skip to first unread message

gnanesh k p

unread,
Mar 7, 2022, 12:41:44 PM3/7/22
to pyins...@googlegroups.com
Hi all, 

When building using pyinstaller i am providing an additional hooks dir and the content of additional hooks is as below which is  added to collect  pytest specific custom plugins.

    from PyInstaller.utils.hooks import collect_entry_point
    datas, hiddenimports = collect_entry_point('pytest11')

build fails with below error Message.

  "Unable to find "/build/Feb-21-2022/mtaf-venv-Feb-21-2022/lib/python3.6/site-packages/mtaf-0.0.0-py3.6.egg/EGG-INFO" when adding binary and data files."
pyinstaller-logs.PNG

however when i unzip this egg file  i can see the folder with name EGG-INFO, so i am not sure why it should fail  here. 

[root@localhost egg-untart]# ls -l
total 0
drwxr-xr-x. 2 root root 130 Mar  7 12:21 EGG-INFO
drwxr-xr-x. 3 root root  66 Mar  7 12:21 mtaf


I request your help in resolving this issue.

Regards,
Gnanesh

Eric Fahlgren

unread,
Mar 8, 2022, 4:00:19 AM3/8/22
to pyins...@googlegroups.com
Do you really have a build directory hanging off of root?  That strikes me as strange, suggesting that there's some missing prefix on the full path (normally I'd expect it to start '/usr/.../build' or '/home/.../build').

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/CAA%2BSF7kM02qPMxBhgrksDPHN8BveRJJtvo3M-JigByKDvf%3DqFg%40mail.gmail.com.

bwoodsend

unread,
Mar 8, 2022, 4:00:33 AM3/8/22
to PyInstaller

The problem is that you’ve installed mtaf in zipped egg format which was abandoned years ago. This happens if you build a package from source (usually without realising) and don’t have wheel installed. You should be able to fix this by installing wheel then reinstalling mtaf.

pip install wheel
pip uninstall mtaf
pip install mtaf

gnanesh k p

unread,
Mar 15, 2022, 7:26:54 AM3/15/22
to pyins...@googlegroups.com
hi all, 

Thanks  for your help,  redistributing mtaf with wheel fixed the issue and the pyinstaller picked up mtaf as expected.

Regards,
Gnanesh

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages