cleverhans-lab / cleverhans

An adversarial example library for constructing attacks, building defenses, and benchmarking both
MIT License
6.21k stars 1.39k forks source link

ModuleNotFoundError: No module named 'cleverhans.attacks' #1216

Closed AbdulMustafa97 closed 3 years ago

AbdulMustafa97 commented 3 years ago

I am getting this type of error for a lot of other cleverhans packages just like cleverhans.utils_tf, cleverhans.model, cleverhans.utils_keras.

I am running on Google Colaboratory using following libraries versions: CleverHans 4.0.0 Tensorflow 2.6, 2.4, 1.13 tried different versions. Python 3.7.11

@aam-at @esigler @catherio @nottombrown @goodfeli Capture

AbdulMustafa97 commented 3 years ago

@tejuafonja Can you please help to resolve this error?

Thanks.

AbdulMustafa97 commented 3 years ago

There was a mismatch in the TensorFlow and Cleverhans library. Fix this bug with downgrade the CleverHans to 3.0 and TensorFlow to 1.14.

tejuafonja commented 3 years ago

Hi @AbdulMustafa97, thanks for reporting this error and I'm happy to hear that you were able to resolve it.

tejuafonja commented 3 years ago

Hi @AbdulMustafa97, thanks for reporting this error and I'm happy to hear that you were able to resolve it.