AI Development/TensorFlow | TFLite
[Tensorflow] _getfullpathname: embedded null character
꾸준희
2017. 8. 21. 18:25
728x90
반응형
_getfullpathname: embedded null character 에러 시
C:\Anaconda3\lib\site-packages\matplotlib\font_manager.py
위치에 있는 font_manager.py 파일을 아래와 같이 변경
try:
for j in range(winreg.QueryInfoKey(local)[1]):
try:
key, direc, any = winreg.EnumValue( local, j)
if not is_string_like(direc):
continue
if not os.path.dirname(direc):
direc = os.path.join(directory, direc)
# direc = os.path.abspath(direc).lower()
# if os.path.splitext(direc)[1][1:] in fontext:
# items[direc] = 1
direc = direc.split('\0', 1)[0]
except EnvironmentError:
continue
except WindowsError:
continue
except MemoryError:
continue
return list(six.iterkeys(items))
인터넷에 돌아다니는 수정된 font_manager.py 파일을 받지 말고 직접 수정하도록 한다.
왜냐하면 인터넷에 돌아다니는 수정된 파일은 자기 matplotlib 파일의 버전과 맞지 않을 수 있기 때문이다. 버전이 맞지 않는데 다른 것을 가져와 덮어 씌워버리면, get_font 어쩌구 문제가 발생한다.
728x90
반응형