tfmodel icon indicating copy to clipboard operation
tfmodel copied to clipboard

No module named 'utils'

Open Xaffle opened this issue 6 years ago • 2 comments

hello, tobe, while the tfmodel was installed successed using pip, the tfmodel command cannot be executed, the error infomation is: Traceback (most recent call last): File "c:\users###\appdata\local\continuum\anaconda3\envs\tfmodel\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "c:\users###\appdata\local\continuum\anaconda3\envs\tfmodel\lib\runpy.py", line 85, in run_code exec(code, run_globals) File "C:\Users###\AppData\Local\Continuum\anaconda3\envs\tfmodel\Scripts\tfmodel.exe_main.py", line 5, in File "c:\users###\appdata\local\continuum\anaconda3\envs\tfmodel\lib\site-packages\tfmodel\command.py", line 24, in from tfmodel.savedmodel_analyst import SavedmodelAnalyst File "c:\users###\appdata\local\continuum\anaconda3\envs\tfmodel\lib\site-packages\tfmodel\savedmodel_analyst.py", line 7, in from utils import ModelUtil ModuleNotFoundError: No module named 'utils'

Xaffle avatar Feb 20 '19 03:02 Xaffle

It seems to be the issue about compatibility of Python 3. We will test and try to fix that soon.

tobegit3hub avatar Feb 21 '19 02:02 tobegit3hub

https://github.com/tobegit3hub/tfmodel/blob/b57a3b765ff697bb767a5af54d1a33e9b2f56781/tfmodel/savedmodel_analyst.py#L8

edit above line to

- from utils import ModelUtil
+ from .utils import ModelUtil

lovepocky avatar Dec 25 '19 08:12 lovepocky