harshitgarg22 / quantum_image_encryption

Quantum Image Encryption implemented in qiskit.
https://harshitgarg.in/quantum
GNU General Public License v3.0
1 stars 1 forks source link

Error while running python3 main.py | Python 3.8 #3

Open the-quantum-nargle opened 3 years ago

the-quantum-nargle commented 3 years ago

I get the following error while running python3 main.py

Traceback (most recent call last): File "main.py", line 16, in <module> demo() File "main.py", line 11, in demo quantum_encrypted_image = encrypt(image, key) File "/home/toshi/quantum_image_encryption/tools.py", line 26, in encrypt quantum_key = generate_quantum_key(key=key) File "/home/toshi/quantum_image_encryption/tools.py", line 13, in generate_quantum_key quantum_key = neqr(quantum_key) File "/home/toshi/quantum_image_encryption/utils.py", line 30, in neqr image.convert("L") AttributeError: 'NoneType' object has no attribute 'convert'

image

QBlockQ commented 1 year ago

utility.py needs to be fixed first and then run main.py again.