문의사항
Python 3.6.7 64 비트와 LabVIEW 2019 SP1 64 비트를 사용하고 있습니다.
다음과 같은 Python 스크립트로 파일을 호출하려고 할 때 :
def file () :
f = open ( "filename.txt" , 'w' )
f.write ( 'hi' )
f.write ( 'hi2' )
f.close ()
f = open ( "d : filename.txt" , 'r' )
a = f.read ()
f.close ()
return a
LabVIEW에서 다음 1671 에러 코드가 나타납니다.
Python Node in LV64 - Python.vi<APPEND>
Module Path: D:\..\Data\MyPython\LV2019_Classes\
Files.y
Function Name: file
Python returned the following error: <class 'PermissionError'>
[Errno 13] Permisission denied: 'filename.txt'