Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
DuniterPy
DuniterPy
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • clients
  • python
  • DuniterPyDuniterPy
  • Issues
  • #133

Closed
Open
Created Nov 06, 2020 by Fred@zicmama

AttributeError: module 'libnacl' has no attribute '__version__'

pip3 install duniterpy

#!/usr/bin/env python3
from sys import argv
from duniterpy.key import SigningKey

# path to save to
path = "/tmp/secret.dunikey"

key = SigningKey.from_credentials(argv[1], argv[2], None)
key.save_pubsec_file(path)
print(
    key.pubkey,
)

throw this error

Traceback (most recent call last):
  File "dunikey.py", line 3, in <module>
    from duniterpy.key import SigningKey
  File "/home/pi/.local/lib/python3.7/site-packages/duniterpy/__init__.py", line 22, in <module>
    from . import api, documents, key
  File "/home/pi/.local/lib/python3.7/site-packages/duniterpy/key/__init__.py", line 21, in <module>
    from .ascii_armor import AsciiArmor
  File "/home/pi/.local/lib/python3.7/site-packages/duniterpy/key/ascii_armor.py", line 34, in <module>
    VERSION_FIELD_VALUE = "Python Libnacl " + libnacl.__version__
AttributeError: module 'libnacl' has no attribute '__version__'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
0.61.0
Milestone
0.61.0
Assign milestone
Time tracking
None
Due date
None