shea256 / secret-sharing

A system for securely splitting secrets with Shamir's Secret Sharing Scheme
MIT License
483 stars 143 forks source link

NameError: name 'long' is not defined #26

Open adamcho14 opened 6 years ago

adamcho14 commented 6 years ago

This is what I get:

Traceback (most recent call last):
  File "/Users/Adam/PycharmProjects/SEVAS/local/key_management.py", line 5, in <module>
    from secretsharing import PlaintextToHexSecretSharer
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/secretsharing/__init__.py", line 12, in <module>
    from .sharing import *
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/secretsharing/sharing.py", line 14, in <module>
    from .primes import get_large_enough_prime
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/secretsharing/primes.py", line 35, in <module>
    STANDARD_PRIMES = calculate_mersenne_primes() + [
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/secretsharing/primes.py", line 25, in calculate_mersenne_primes
    prime = long(1)
NameError: name 'long' is not defined
konchunas commented 6 years ago

Newest package with fix for this is not deployed onto pip repo, but you can install directly from github by using pip install git+https://github.com/blockstack/secret-sharing

vis7 commented 4 years ago

I upgraded by above link but it still does not resolve error

michaelbarbas commented 2 years ago

I upgraded by above link but it still does not resolve error

hey @vis7 you ever resolve that issue??

DoubleD0u commented 1 year ago

I'm ok!