Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'trace' #56

Open
Chauban opened this issue Jan 19, 2022 · 8 comments
Open

ImportError: cannot import name 'trace' #56

Chauban opened this issue Jan 19, 2022 · 8 comments

Comments

@Chauban
Copy link

Chauban commented Jan 19, 2022

I use the whole new conda environment, but when run the example video transfer command, error occurs:

    from tensorflow_estimator.python.estimator import estimator
  File "C:\Users\XU\.conda\envs\anime\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 36, in <module>
    from tensorflow.python.profiler import trace
ImportError: cannot import name 'trace'

(anime) E:\AI_art\AnimeGANv2-master>

How to solve it please? Thanks

@2076263413
Copy link

Do you know how to slove it?Thanks

@TachibanaYoshino
Copy link
Owner

That should be the wrong version of your installation package.

@2076263413
Copy link

oh,what version of package do you use?Thanks.
图片

@2076263413
Copy link

Thank you for your help!

@Chauban
Copy link
Author

Chauban commented Jan 30, 2022

Thank you for your help!

Yes, I have same version of yours. I have not addressed yet

@Chauban
Copy link
Author

Chauban commented Jan 30, 2022

That should be the wrong version of your installation package.

I use the same version as the page said*-*

@Bazifrasool
Copy link

Bazifrasool commented Jul 15, 2023

Hi , I was using Anaconda and seems it installed the wrong version of tensorflow-estimator for tensorflow 1.15
spyder-ide/spyder#17783 (comment)
This solved it @Chauban

@MeraMeskul
Copy link

MeraMeskul commented Nov 13, 2023

Hi there,
I was struggling with different old repo, and trying to make it work.
I get the same error, whole error message is :

from tensorflow.python.profiler import trace

2023-11-13 16:25:06.338656: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'trace' from 'tensorflow.python.profiler' (D:\Anaconda3_2022.10\envs\py37\lib\site-packages\tensorflow_core\python\profiler\__init__.py)

When I check it, there is no trace.py file on that folder.
I am using Anaconda Prompt / Spyder with Python 3.7.16
I am using tensorflow 1.15.0.
When I control the other library version some of them were different than I downgraded some of them to make it work, still the same problem.
Am I missing something here or what?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants