tensorflow / tensorflow/privacy

ModuleNotFoundError: No module named 'tensorflow.compat.v1

Open
#145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2k
Forks
477
Avg merge
22h 12m
Merged PRs (30d)
1

Description

Hi,

I encountered a problem where tensorflow.compat.v1 cannot be loaded when running the bolton subpackage yet can be loaded when running the mnist_dpsg_tutorial.py. I have not found any solution or explanation as to why this would be happening, I have tried reinstalling dependencies, tensorflow and tensorflow privacy yet none have changed the result. The module can also be loaded in the python3 shell.

tutorial.txt
bolton.txt

Thank you in advance,
Tarik

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the environment and import paths used by the bolton subpackage and mnist_dpsg_tutorial.py, using the attached bolton.txt and tutorial.txt for the reported commands and errors. Reproduce the tensorflow.compat.v1 import failure in the bolton context, then verify that the same import works there as it does in the Python shell and tutorial.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.