Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'attr' when i run pdf-sign-cms.py from example #50

Closed
saifullah5302411224 opened this issue May 3, 2020 · 3 comments

Comments

@saifullah5302411224
Copy link

this is my error,
i'm not change anything from github, just run install setup.py, and try examples

@saifullah5302411224
Copy link
Author

Traceback (most recent call last):
File "pdf-sign-cms.py", line 49, in
main()
File "pdf-sign-cms.py", line 37, in main
datas = pdf.cms.sign(datau, dct,
File "C:\Python38\lib\site-packages\endesive\pdf\cms.py", line 501, in sign
return cls.sign(datau, udct, key, cert, othercerts, algomd, hsm, timestampurl)
File "C:\Python38\lib\site-packages\endesive\pdf\cms.py", line 399, in sign
self.makepdf(prev, udct, algomd, zeros)
File "C:\Python38\lib\site-packages\endesive\pdf\cms.py", line 234, in makepdf
from endesive.pdf.PyPDF2_annotate.annotations.text import FreeText
File "C:\Python38\lib\site-packages\endesive\pdf\PyPDF2_annotate_init_.py", line 2, in
from .annotator import PdfAnnotator
File "C:\Python38\lib\site-packages\endesive\pdf\PyPDF2_annotate\annotator.py", line 15, in
from .annotations.image import Image
File "C:\Python38\lib\site-packages\endesive\pdf\PyPDF2_annotate\annotations\image.py", line 19, in
from .rect import RectAnnotation
File "C:\Python38\lib\site-packages\endesive\pdf\PyPDF2_annotate\annotations\rect.py", line 13, in
from ..config.appearance import set_appearance_state
File "C:\Python38\lib\site-packages\endesive\pdf\PyPDF2_annotate\config\appearance.py", line 10, in
import attr
ModuleNotFoundError: No module named 'attr'

error log in above

@peuhrdf
Copy link

peuhrdf commented May 3, 2020

It worked for me:

pip install attrs

@m32
Copy link
Owner

m32 commented May 4, 2020

dependencies updated in setup.py

@m32 m32 closed this as completed May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants