Issue with PyGithub install

   1270   2   0
User Avatar
Member
383 posts
Joined:
Offline
Hello,

I try to install PyGithub packages to hython via pip .
After install when I test to import the module, I get this error :

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Houdini19.5.564\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensuppo
rt\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Houdini19.5.564\python39\lib\site-packages\github\__init__.py", line 58, in <module
>
    from github import Auth
  File "C:\Houdini19.5.564\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensuppo
rt\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Houdini19.5.564\python39\lib\site-packages\github\Auth.py", line 32, in <module>
    from github.InstallationAuthorization import InstallationAuthorization
  File "C:\Houdini19.5.564\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensuppo
rt\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Houdini19.5.564\python39\lib\site-packages\github\InstallationAuthorization.py", li
ne 27, in <module>
    import github.NamedUser
  File "C:\Houdini19.5.564\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensuppo
rt\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Houdini19.5.564\python39\lib\site-packages\github\NamedUser.py", line 40, in <modul
e>
    import github.Event
  File "C:\Houdini19.5.564\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensuppo
rt\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Houdini19.5.564\python39\lib\site-packages\github\Event.py", line 33, in <module>
    import github.Organization
  File "C:\Houdini19.5.564\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensuppo
rt\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Houdini19.5.564\python39\lib\site-packages\github\Organization.py", line 50, in <mo
dule>
    import github.Repository
  File "C:\Houdini19.5.564\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensuppo
rt\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Houdini19.5.564\python39\lib\site-packages\github\Repository.py", line 173, in <mod
ule>
    import github.PublicKey
  File "C:\Houdini19.5.564\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensuppo
rt\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Houdini19.5.564\python39\lib\site-packages\github\PublicKey.py", line 34, in <modul
e>
    from nacl import encoding, public
  File "C:\Houdini19.5.564\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensuppo
rt\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Houdini19.5.564\python39\lib\site-packages\nacl\public.py", line 16, in <module>
    import nacl.bindings
  File "C:\Houdini19.5.564\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensuppo
rt\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Houdini19.5.564\python39\lib\site-packages\nacl\bindings\__init__.py", line 58, in 
<module>
    from nacl.bindings.crypto_core import (
  File "C:\Houdini19.5.564\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensuppo
rt\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "C:\Houdini19.5.564\python39\lib\site-packages\nacl\bindings\crypto_core.py", line 21, 
in <module>
    has_crypto_core_ed25519 = bool(lib.PYNACL_HAS_CRYPTO_CORE_ED25519)
AttributeError: cffi library '_sodium' has no function, constant or global variable named 'PYN
ACL_HAS_CRYPTO_CORE_ED25519'

It seems PyNaCl make a mess.

I try on window10 , houdini 19.5.564

Did anyone try the same thing ?
Does it work ?
On Linux maybe ?

Any tips is welcome !
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
3 posts
Joined: July 2023
Offline
Hello

I was also facing the same issue . The error is related to PyNaCl, a dependency of PyGithub, and seems to be caused by an attribute issue. The error message suggests that there is an issue with the PYNACL_HAS_CRYPTO_CORE_ED25519_Salesforce CPQ Course [www.igmguru.com] constant from the cffi library. To resolve it check below steps:

-Check versions of PyGithub and PyNaCl.
-Ensure compatibility with Houdini version.
-Consider using a virtual environment.
-Try on Linux if possible.
-Seek community support or forums for solutions.
-Reinstall the packages using pip.

hope it helps you.
User Avatar
Member
383 posts
Joined:
Offline
I gave up on PyGitHub.
I use the REST API now
https://docs.github.com/fr/rest?apiVersion=2022-11-28 [docs.github.com]
http://vimeo.com/vbkstudio [vimeo.com]
  • Quick Links