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

FFIError When Importing #63

Open
KriosofWar opened this issue Nov 16, 2023 · 2 comments
Open

FFIError When Importing #63

KriosofWar opened this issue Nov 16, 2023 · 2 comments

Comments

@KriosofWar
Copy link

Good morning,

I'm having a spot of trouble with using the ADDomain function within the ms-active-directory library.

Running the command to import this raises the following error:

"FFIError: multiple declarations of function ghash_portable (for interactive usage, try cdef(xx, override=True))"

I'm running Jupyter Notebooks at work, which uses a SonaType repository to manage libraries.

This error was thrown after changing the directory in Command Prompt to the location of the pip file that connects up SonaType (a different error was raised before that).

I wasn't able to get the syntax right for the override and I couldn't find details of how to overcome the error online.

Thank you for your consideration,

Julian.

@KriosofWar
Copy link
Author

Hi,

Have you had the opportunity to consider the above?

Thank you,

Julian.

@zorn96
Copy link
Owner

zorn96 commented Dec 5, 2023

hi @KriosofWar ! sorry I was out for holidays/a volunteering trip.
I'm not quite sure what this is. from some googling it sounds like FFIError might be related to some packaging system that's in use? it's for interacting with C functions

the C functions that get used in this library are

  • ssl related things (probably not the conflict)
  • kerberos related things via ldap3 (very system-dependent)
  • some cryptography functions in pycryptodome (maybe related?)

I'm honestly not familiar at all with SonaType.
are you able to share what else is being installed here? and also your OS/environment? ldap3 can use gssapi or winkerberos depending on if you're using unix or windows. pycryptodome might also be the source of the problem if there's a package pinning issue, with multiple libraries pinning different version

I loosely pinned pycryptodome at >=3.9.0 so maybe check if something else is pinning lower?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants