AttributeError: module 'visualdl.server' has no attribute 'app'
XYZ-916 opened this issue · 1 comments
XYZ-916 commented
import visualdl
visualdl.server.app.run('/home/aistudio/log',
host="127.0.0.1",
port=8080,
cache_timeout=20)
运行上述代码块会报下列错误:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/tmp/ipykernel_160/2194601888.py in <module>
1 import visualdl
----> 2 visualdl.server.app.run('/home/aistudio/log',
3 host="127.0.0.1",
4 port=8080,
5 cache_timeout=20)
AttributeError: module 'visualdl.server' has no attribute 'app'
测试环境:AI Studio
rainyfly commented
你好,import visualdl.server.app ,要获取app模块需要import进来先