I have been using the nptdms module to do analysis of TDMS files without issue for several years. Recently, I got an error when trying to read a TDMS file for the first time. I import TdmsFile from nptdms:
from nptdms import TdmsFile
I try to read it:
tdms_file = TdmsFile.read(path_to_my_tdms_file)
and then get the following error:
type object 'TdmsFile' has no attribute 'read'
I am using  python v3.6.10, with Anaconda and the nptdms v0.12.0.
Yes, this issue is recent and real. A re-install of nptdms via pip does appear to solve it. (even though pip claimed it was up to date as of version 0.17.1)
Unable to apply method "read" to TdmsFile from nptdms