-
Notifications
You must be signed in to change notification settings - Fork 687
AttributeError: function/symbol 'SHA256_init' not found in library #373
Replies: 2 comments · 6 replies
-
runfile('D:/Desktop/py/company/company.py', wdir='D:/Desktop/py/company') File "D:\Desktop\py\company\company.py", line 40, in File "E:\Anaconda3\lib\site-packages\pdfplumber\pdf.py", line 56, in open File "E:\Anaconda3\lib\site-packages\pdfplumber\pdf.py", line 33, in init File "E:\Anaconda3\lib\site-packages\pdfminer\pdfdocument.py", line 575, in init File "E:\Anaconda3\lib\site-packages\pdfminer\pdfdocument.py", line 599, in _initialize_password File "E:\Anaconda3\lib\site-packages\pdfminer\pdfdocument.py", line 300, in init File "E:\Anaconda3\lib\site-packages\pdfminer\pdfdocument.py", line 307, in init File "E:\Anaconda3\lib\site-packages\pdfminer\pdfdocument.py", line 320, in init_key File "E:\Anaconda3\lib\site-packages\pdfminer\pdfdocument.py", line 493, in authenticate File "E:\Anaconda3\lib\site-packages\Crypto\Hash\SHA256.py", line 158, in new File "E:\Anaconda3\lib\site-packages\Crypto\Hash\SHA256.py", line 73, in init File "E:\Anaconda3\lib\site-packages\cffi\api.py", line 912, in getattr File "E:\Anaconda3\lib\site-packages\cffi\api.py", line 908, in make_accessor File "E:\Anaconda3\lib\site-packages\cffi\api.py", line 838, in accessor_function AttributeError: function/symbol 'SHA256_init' not found in library 'E:\Anaconda3\lib\site-packages\Crypto\Util..\Hash_SHA256.cp38-win_amd64.pyd': error 0x7f python 3.8.5 |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi, @milozen585 I created a Python 3.8 virtual environment but could not reproduce the issue. In order to further investigate this, request you to share your conda environment file so that I can try and simulate your environment. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Could you please run
Since the issue is from |
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
I will try the second way |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks for sharing the list. I see that in your conda environment you have both
If you look at the usage of |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you very much, problem is solved! I reinstall anaconda because it is too slow to remove pycrypto, and then there is no pycrypto and it works! |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 2
-
AttributeError: function/symbol 'SHA256_init' not found in library 'E:\Anaconda3\lib\site-packages\Crypto\Util..\Hash_SHA256.cp38-win_amd64.pyd': error 0x7f
The attached pdf file cannot be opened with pdfplumber.
The error message: AttributeError: function/symbol'SHA256_init' not found in library'E:\Anaconda3\lib\site-packages\Crypto\Util..\Hash_SHA256.cp38-win_amd64.pyd': error 0x7f.
But I have SHA256.cp38-win_amd64.pyd in the Hash dir.
python 3.8.5, the pdf has no password
Beta Was this translation helpful? Give feedback.
All reactions