Skip to content

AttributeError: module 'tensorflow' has no attribute 'contrib' #9

@Annaisavailable

Description

@Annaisavailable

Hello! I ran into an issue when trying to execute the command 'SDL_VIDEODRIVER="dummy" python scripts/run.py --agent_cfg basic.yaml --scenario_cfg standard.yaml --mode eval' and received the following error message in the terminal: 'AttributeError: module 'tensorflow' has no attribute 'contrib''. Upon searching for a solution, I discovered that tf2 has removed tf.contrib. The suggested fix is to downgrade to tf1; however, it appears that tf1 is not compatible with Python 3.8, which is the version used in my conda environment. I am uncertain how to proceed and would appreciate guidance on solving this problem.

Please let me know if you have any suggestions or require further information. I would like to submit this as an issue on Github. Thank you for your help in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions