xmengli/H-DenseUNet

test.py error

Hung-Hsiang-617 opened this issue · 6 comments

When I run test.py. The error occur below.

File "test.py", line 4, in
from keras import backend as K
File "Keras-2.0.8/keras/init.py", line 4, in
from . import activations
File "Keras-2.0.8/keras/activations.py", line 6, in
from .engine import Layer
File "Keras-2.0.8/keras/engine/init.py", line 3, in
from .topology import InputSpec
File "Keras-2.0.8/keras/engine/topology.py", line 8, in
import yaml
File "Keras-2.0.8/yaml/init.py", line 2, in
from error import *
ModuleNotFoundError: No module named 'error'

My version: python 3.6.8
tensorflow 1.5.1
tensorflow-gpu 1.2.1
keras 2.0.8

I can not find the solution to solve it.

try python2

Thank you. I already solved the problems.

@Hung-Hsiang-617 How did you solve it? I have encountered the same problem.

just use python 2 and keras 2.0.8 . I thinks this code can not run in python 3.

This code can not run in Python 3.

I would like to ask, can I only use Python 2 or is Python 2.7 also acceptable?