Error message?

322 views
Skip to first unread message

HYL

unread,
Jul 14, 2014, 2:14:30 AM7/14/14
to mplusau...@googlegroups.com

I was trying to load "MplusAutomation" package, but then it keeps giving me the same error message as follows:


Error : .onLoad failed in loadNamespace() for 'tcltk', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libX11.6.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so
  Reason: image not found
Error: package or namespace load failed for ‘MplusAutomation’


Would you please let me know why this error message might have occurred?? I've installed the latest version of R on Mac Mavericks in case it might fix the problem. Since I'm new to Mplus as well as MplusAutomation package, I have no clue why only this package didn't launch properly. Thanks for your help in advance!!





michael.hallquist

unread,
Jul 17, 2014, 9:30:16 AM7/17/14
to mplusau...@googlegroups.com
I suspect there is a problem with your X11 installation, or perhaps a collision between installed versions of Tcl/Tk. This is not really an MplusAutomation issue, but an issue with your setup of Tcl/Tk. Given the "image not found" error for libX11.6.dylib, if it were me, I would reinstall X11. If you have additional problems, you might post your question to stackoverflow or to R help, as those folks might have more experience with Tcl/Tk problems.

Best,
Michael

Tom Carpenter

unread,
Aug 11, 2014, 3:08:18 PM8/11/14
to mplusau...@googlegroups.com
Curious if this ever got fixed. I am running a clean install of R and Rstudio (most recent versions) on a Mac OSX and got the same message:

Loading required package: plyr
Loading required package: boot
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libX11.6.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so
  Reason: image not found
Error: package or namespace load failed for ‘MplusAutomation’

Joshua Wiley

unread,
Aug 11, 2014, 6:48:46 PM8/11/14
to Tom Carpenter, mplusau...@googlegroups.com
Hi Tom,

I would start by checking with:

library(tcltk)

works in a clean session.  AFAIK with recent versions of R, you are not supposed to have to install separately (see: http://cran.r-project.org/bin/macosx/tools/) but I do not use a Mac.

If you cannot load and use the tcltk package itself, that will need to get debugged first.

Cheers,

Josh



--
You received this message because you are subscribed to the Google Groups "MplusAutomation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mplusautomati...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Joshua F. Wiley
Ph.D. Student, UCLA Department of Psychology
http://joshuawiley.com/
Senior Analyst, Elkhart Group Ltd.
http://elkhartgroup.com
Office: 260.673.5518

Tom Carpenter

unread,
Aug 11, 2014, 6:53:03 PM8/11/14
to mplusau...@googlegroups.com
Thanks Joshua, 

It will not load TCLTK. I ran a clean session and this happened:

> library(tcltk)
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libX11.6.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/tcltk/libs/tcltk.so
  Reason: image not found
Error: package or namespace load failed for ‘tcltk’

It would also not let me install the package on its own:

> install.packages('tcltk')
Installing package into ‘/Users/carpet/Library/R/3.1/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘tcltk’ is not available (for R version 3.1.1)

I would love for this to work if anyone has any ideas!

seyfullah Tıngır

unread,
Nov 19, 2014, 10:53:08 PM11/19/14
to mplusau...@googlegroups.com
Hi all, 

Any solutions so far for this problem? 

I have had the same problem.

Best.

Seyf. 

Joshua Wiley

unread,
Nov 19, 2014, 11:19:05 PM11/19/14
to seyfullah Tıngır, mplusau...@googlegroups.com
Hi Seyf,

This is an issue with tcltk, not MplusAutomation, usually related to XQuartz/X11 app.  See this page for some more information and suggestions on how to work it out:


Cheers,

Josh



--
You received this message because you are subscribed to the Google Groups "MplusAutomation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mplusautomati...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tom Carpenter

unread,
Nov 19, 2014, 11:25:02 PM11/19/14
to Joshua Wiley, seyfullah Tıngır, mplusau...@googlegroups.com
I got it to work by downloading Quartz. I didn't realize it but it is not on OS X by default anymore!

Tom Carpenter
You received this message because you are subscribed to a topic in the Google Groups "MplusAutomation" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mplusautomation/xb0A40C90sk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mplusautomati...@googlegroups.com.

Joshua Wiley

unread,
Nov 19, 2014, 11:38:58 PM11/19/14
to Tom Carpenter, seyfullah Tıngır, mplusau...@googlegroups.com
Tom, so do I understand correctly that Quartz used to be on by default but now needs to be explicitly downloaded and installed?  This question has come up a lot so I'm hoping to put some better guidance on why it happens and what to do, but I don't use Mac so its been hard for me to say much other than what I can find online.

Thanks!

Josh

Tom Carpenter

unread,
Nov 19, 2014, 11:39:45 PM11/19/14
to Joshua Wiley, seyfullah Tıngır, mplusau...@googlegroups.com
I cannot speak to whether it used to be on Mac, but that is my understanding. All that I know is that once I downloaded it, everything worked!

Tom Carpenter


Reply all
Reply to author
Forward
0 new messages