pycrypto outdated & missing endesive library
ethanwu155 opened this issue · comments
ethanwu155 commented
Issue:
Current cms
signature implementation uses pycrypto library. For newer versions of python (3.8 and higher) it doesn't work due to time.clock
being removed. See below:
Fix:
Uninstall pycrpto
and install pycryptodome
which is a fork of pycrypto
Edit: Need to change library in setup.py
to reflect change and add endesive
library
import subprocess
from setuptools import setup
from setuptools import find_packages
with open("README.md", "r") as f:
long_description = f.read()
setup(
name='cai',
version='v1.2.1',
description='Content Authenticity Initiative Implementation.',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/numbersprotocol.io/starling-cai',
author='Numbers Inc.',
author_email='dev@numbersprotocol.io',
license='GPLv3',
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
],
keywords=['wheels'],
packages=find_packages(exclude=['tests']),
install_requires=[
'py-multibase>=1.0.3',
'pycryptodome',
'pymultihash>=0.8.2',
'py3exiv2>=0.9.3',
'endesive',
#'tox',
],
python_requires='>=3',
entry_points={
'console_scripts': [
'cai_tool=cai.cai_tool:main',
'starling_cai=cai.starling:main',
]
},
test_suite='tests'
)