Welcome to iraf.net Friday, April 26 2024 @ 03:46 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 Error cannot open device
   
rwatkins77
 06/07/2011 09:56PM (Read 9922 times)  
+----
Newbie

Status: offline


Registered: 06/07/2011
Posts: 9
I successfully installed IRAF and ds9 on my Mac Pro (Mac OSX 10.5.8). Both programs work fine independently, but I can't get IRAF to talk to ds9. When I try the display task I just get "ERROR: cannot open device (node!imtool,,512,512)". I am sure that ds9 is open when I start IRAF. I've tried various "fixes" that I've found on the web but nothing works. I've also tried reinstalling different versions of IRAF and ds9 but I always get the same error. I currently have IRAF V2.15.1a and ds9 7.0beta. Does someone have some suggestions as to how I can diagnose and fix what is wrong?

Rick Watkins Dept. of Physics Willamette University
 
Profile Email
 Quote
fitz
 06/07/2011 09:56PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I can verify that at least the OSX 10.6 version of DS9 v7beta appears to work but I don't have a 10.5 machine to use.A 'cannot open device' generally means the display server cannot be found. Since there are no fifos on OSX, the default display is done through unix sockets (/tmp/.IMT<uid>Wink, so both the IRAF and DS9 need to be run as the same user for the userid to match. This protocol can be overridden in a number of ways, most easily through an IMTDEV environment variable to specify some other device (e.g. an inet socket port number). Be sure you do NOT specify this environment variable (i.e. a "cl> show IMTDEV" should be an error). Otherwise, the dev$graphcap file can specify another device, but since the error message doesn't print another device I don't think this is happening.I do notice that using the "-inet_only" flag to DS9 won't connect, but forcing the connection by using "ds9 -unix_only" will work for me. Since this is a beta release you might report the problem to SAO if the -unix_flag works. Are there X resources or other flags or variables that might be set (e.g. in your .cshrc or a scisoft (?) init file) that could be forcing the connection to be a certain type? Are you starting ds9 yourself or using some helper app? Is there a ".IMT<uid>" file created in /tmp with your userid (likely to be 501)??

 
Profile Email
 Quote
rwatkins77
 06/07/2011 09:56PM  
+----
Newbie

Status: offline


Registered: 06/07/2011
Posts: 9
I've also tried ds9 6.2 and had the same problem, so I don't think it's the version of ds9I checked that the environment variable IMTDEV is not specified. I tried the -unix_only flag and that didn't work. I am starting ds9 myself. I checked /tmp and there isn't a ".IMT<uid>". I don't know of anything that could be forcing the connection to be different type, but I'm not sure. I'm not using scisoft. I've been using the bash shell and I don't have anything out of the ordinary in my ".profile". I've also tried working in the tcsh but with the same result.

Rick Watkins Dept. of Physics Willamette University
 
Profile Email
 Quote
fitz
 06/07/2011 09:56PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try this: Start DS9 using[code:1:50e02c93ef]% ds9 -unix_only &[/code:1:50e02c93ef]Once it starts, there should be a /tmp/.IMT501 (or some other number) file created. If not, this is either a DS9 problem you need to report to SAO, or a resource setting. Try also[code:1:50e02c93ef]% xrdb -query | grep -i unix[/code:1:50e02c93ef]which should return nothing to indicate you haven't reset the unix socket to be something else. Also, I was using the 'darwin' binaries and not the 'macosx' form of DS9.

 
Profile Email
 Quote
rwatkins77
 06/07/2011 09:56PM  
+----
Newbie

Status: offline


Registered: 06/07/2011
Posts: 9
I tried ds9 -unix_only and the .IMT file wasn't created. I reinstalled ds9 6.2 (using the darwinleapard.6.2 from the ds9 downloads) and tried that and it also doesn't create a fileI tried the xrdb code you gave and got nothing returned. Is there a way to check the resource settings?Thanks so much for your help

Rick Watkins Dept. of Physics Willamette University
 
Profile Email
 Quote
fitz
 06/07/2011 09:56PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The "xrdb -query" will dump all the active X resources.The other way to approach this is to force the use of the inet sockets, e.g.[code:1:7cf19726ae]
% ds9 -inet_only & # start DS9 using only inet sockets
% export IMTDEV=inet:5137 # set Bash shell variable to force inet
% cl
cl> display dev$pix 1
[/code:1:7cf19726ae]If you're using a C-shell use "setenv IMTDEV = inet:5137" to set the variable, this is used to tell IRAF to display to port 5137 on the local machine (which should be opened by the '-inet_only" flag by default).I remember the unix socket display being broken once before but I'm not sure if it was a version glitch or resolved as some sort of user environment thing. SAO might remember.

 
Profile Email
 Quote
rwatkins77
 06/07/2011 09:56PM  
+----
Newbie

Status: offline


Registered: 06/07/2011
Posts: 9
Before this goes any further I want to check that I'm installing ds9 correctly. All I did is move both the ds9 binary and the file ds9.zip to /usr/local/bin is that correct?Thanks

Rick Watkins Dept. of Physics Willamette University
 
Profile Email
 Quote
fitz
 06/07/2011 09:56PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Right, that should be all you need. Do a "which ds9" to then make sure you're running the /usr/local/bin/ds9 and not some other version in your path (or else explicitly type /usr/local/bin/ds9 to start it). Be sure you installed the ds9.zip file from the same version, I've seen mismatched files cause other error messages in the past (i.e. don't use whatever existing ds9.zip you have, download it again if needed).

 
Profile Email
 Quote
rwatkins77
 06/07/2011 09:56PM  
+----
Newbie

Status: offline


Registered: 06/07/2011
Posts: 9
Unfortunately, the inet route also doesn't work. I still get the same error.

Rick Watkins Dept. of Physics Willamette University
 
Profile Email
 Quote
fitz
 06/07/2011 09:56PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
You could always just try XImtool to rule out a problem on the iraf side (see ftp://iraf.noao.edu/iraf/x11iraf/x11iraf-v2.0BETA-bin.macintel.tar.gz), or go back to even an older DS9 version.

 
Profile Email
 Quote
rwatkins77
 06/07/2011 09:56PM  
+----
Newbie

Status: offline


Registered: 06/07/2011
Posts: 9
I tried XImtool and it works just fine. Are there any disadvantages to just using XImtool instead of ds9?Thanks

Rick Watkins Dept. of Physics Willamette University
 
Profile Email
 Quote
fitz
 06/07/2011 09:56PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The GUI is a matter of personal taste and XImtool doesn't support things like regions, but for basic image display/cursor read they should be equivalent. This does indicate a problem in DS9 though which SAO might be able to sort out. Older versions of DS9 for 10.5 can be found at http://hea-www.harvard.edu/RD/ds9/archive/darwinleopard/ (the v5.7 binary worked for me as I remember).

 
Profile Email
 Quote
   
Content generated in: 0.62 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login