Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyinstaller Broken Module Import with Infinisdk #509

Open
daramosch opened this issue May 7, 2018 · 1 comment
Open

Pyinstaller Broken Module Import with Infinisdk #509

daramosch opened this issue May 7, 2018 · 1 comment
Labels
good first issue Good for newcomers

Comments

@daramosch
Copy link

Hi Folks!

I've been working with Pyinstaller successfuly up until now while I'm Trying to create an Executable that uses infinisdk (Python Module for Infinidat)
I have tried the following:

  1. Ran the analysis and check the warn log for module import missing.
  2. Update the .spec file both with the --hidden-import Parameter and by updating the Spec file.
  3. Update the .spec file with pyi-makespec --paths= with the Module Full Path name and also by updating the spec file manually
  4. Re compile build by using the pyinstaller [file].spec.

I'm getting the following error every time.

Traceback (most recent call last):
File "LUN_Creation.py", line 3053, in
File "LUN_Creation.py", line 662, in host_ex_AMDC_ux
File "LUN_Creation.py", line 588, in infi_login
### Above my Script , Below Error###
File "site-packages\infinisdk\infinibox\infinibox.py", line 229, in login
File "site-packages\infinisdk\infinibox\infinibox.py", line 257, in get_clien
t_id
File "site-packages\pkg_resources_init
.py", line 557, in get_distribution
File "site-packages\pkg_resources_init_.py", line 431, in get_provider
File "site-packages\pkg_resources_init_.py", line 967, in require
File "site-packages\pkg_resources_init_.py", line 853, in resolve
pkg_resources.DistributionNotFound: The 'infinisdk' distribution was not found a
nd is required by the application
[322136] Failed to execute script LUN_Creation

@htgoebel
Copy link
Member

htgoebel commented Jan 7, 2019

Looks like you need to create a hook which runs copy_metadata(), see e.g. PyInstaller/hooks/hook-distutils.py. I'd appreciate a pull-request for the hook :-)

@bwoodsend bwoodsend added the good first issue Good for newcomers label Sep 23, 2020
@bwoodsend bwoodsend transferred this issue from pyinstaller/pyinstaller Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants