tensorflow / tensorflow/privacy
ModuleNotFoundError: No module named 'tensorflow.compat.v1
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.
Thank you in advance,
Tarik
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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