Error 'MATLAB:err_while_looking_up_function' while using readtable.
古いコメントを表示
I just upgraded to MATLAB 2018 and now when I try to use readtable, it gives the following error:
Error using readtable (line 197)
An error occurred while trying to determine whether "readData" is a function name
Note: readtable detected the following parameters:
'Delimiter', ',', 'HeaderLines', , 'ReadVariableNames', true, 'Format', ''
Line 197 in readtable is (to only uncommented line in the whole function):
t = table.readFromFile(filename,varargin);
Anyone knows what causes this error?
8 件のコメント
dpb
2018 年 4 月 30 日
No, but that's the same way readtable has been implemented from beginning so it's not that there's a change at that level.
I'd guess it's an installation issue, is it any file or just a specific file?
Do you have previous release still installed to compare to for the same file just to prove it isn't the file options or somesuch?
Tim VW
2018 年 4 月 30 日
Edoardo Giusto
2018 年 5 月 22 日
Hi everyone, it happens to me also. But ONLY on Linux. I have Matlab R2018a installed both on a Mac and a Linux machine. The one in Linux does not work. The strange thing is that version R2017b was actually working. I suppose some bug has been introduced.
Derrick
2018 年 6 月 8 日
Same here, works with previous versions but not 2018a. It doesn't do it to all files though, it is selective in my case, but 2017b will open all of them just fine. Sometimes restoredefaultpath will fix the issue (at least with some files).
Nimit Dhulekar
2018 年 6 月 8 日
Can you upload a file that exhibits this issue? Also, this might be just an installation issue. Please try re-installing MATLAB.
Jackson
2018 年 7 月 17 日
Hello, I have this error with a fresh install of R2018a on a fresh install of Ubuntu 18.04. The offending file is attached. All my code worked very well in R2015b, which I was previously using.
Joe Wishon
2018 年 8 月 24 日
I am having same issue with fresh install of R2018a in Windows 10. Not a problem with R2017b.
採用された回答
その他の回答 (1 件)
Ilario Gelmetti
2022 年 1 月 24 日
As OP specified that Support pointed him to a Linux distro-specific issue, here is how I solve this issue on Arch Linux:
Preloading libfreetype library prepending this
LD_PRELOAD=/usr/lib/libfreetype.so.6
to the terminal command I use for running Matlab.
So for R2018a the full command is:
LD_PRELOAD=/usr/lib/libfreetype.so.6 /usr/local/MATLAB/R2018a/bin/matlab
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!