ms_active_directory icon indicating copy to clipboard operation
ms_active_directory copied to clipboard

FFIError When Importing

Open KriosofWar opened this issue 2 years ago • 2 comments

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 avatar Nov 16 '23 10:11 KriosofWar

Hi,

Have you had the opportunity to consider the above?

Thank you,

Julian.

KriosofWar avatar Nov 20 '23 09:11 KriosofWar

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?

zorn96 avatar Dec 05 '23 08:12 zorn96