Closed NicolasLaporte closed 6 years ago
Hi Nicolas I am afraid that this is not a mosfire DRP problem, but rather a problem with the Tk backend.
It is widely reported on the internet. Just google the error that you see at the beginning: "Class TKApplication is implemented in both"
To see if the error is really related to Tk, try this: $ python
import matplotlib matplotlib.use('TkAgg') from matplotlib import pyplot as plt ( you should see the error here ) plt.plot([1,2,3], [1,2,3]) [<matplotlib.lines.Line2D object at 0x111e0f588>] plt.show() ( here you should see the segmentation fault )
It doesn't have a trivial solution. You might want to google the problem and see how it has been solved by a number of users. How recent is your conda installation? I actually thought that the problem has been solved recently, but I am not 100% sure.
Another temporary solution would be to switch to a different backend, such as Qt4: Find the line in the driver file that specifies the backend, and replace it with Qt4Agg.
Finally, if nothing works, and you need to get to your data quickly, disable the interactive fitting, and run the wavelength solution automatically.
Dear Luca,
Many thanks for your mail,
I changed to Qt4Agg and now it works !
Cheers, Nicolas
From: lucarizzi notifications@github.com<mailto:notifications@github.com> Reply-To: Keck-DataReductionPipelines/MosfireDRP reply@reply.github.com<mailto:reply@reply.github.com> Date: Monday, 15 January 2018 at 15:32 To: Keck-DataReductionPipelines/MosfireDRP MosfireDRP@noreply.github.com<mailto:MosfireDRP@noreply.github.com> Cc: Nicolas Laporte n.laporte@ucl.ac.uk<mailto:n.laporte@ucl.ac.uk>, Author author@noreply.github.com<mailto:author@noreply.github.com> Subject: Re: [Keck-DataReductionPipelines/MosfireDRP] Segmentation fault when oppening GUI window (#109)
Hi Nicolas I am afraid that this is not a mosfire DRP problem, but rather a problem with the Tk backend.
It is widely reported on the internet. Just google the error that you see at the beginning: "Class TKApplication is implemented in both"
To see if the error is really related to Tk, try this: $ python
import matplotlib matplotlib.use('TkAgg') from matplotlib import pyplot as plt ( you should see the error here ) plt.plot([1,2,3], [1,2,3]) [<matplotlib.lines.Line2D object at 0x111e0f588>] plt.show() ( here you should see the segmentation fault )
It doesn't have a trivial solution. You might want to google the problem and see how it has been solved by a number of users. How recent is your conda installation? I actually thought that the problem has been solved recently, but I am not 100% sure.
Another temporary solution would be to switch to a different backend, such as Qt4: Find the line in the driver file that specifies the backend, and replace it with Qt4Agg.
Finally, if nothing works, and you need to get to your data quickly, disable the interactive fitting, and run the wavelength solution automatically.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Keck-DataReductionPipelines/MosfireDRP/issues/109#issuecomment-357715094, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ah0K8OiZ1RhipmhIRBNH5l9lvNKKtGNlks5tK295gaJpZM4Redz6.
Sorry to bother you with this (stupid) question, but when I am trying to run the interactive wavelength calibration I got a Segmentation Fault error after the following steps : `objc[1548]: Class TKApplication is implemented in both /Users/nlaporte/anaconda/lib/libtk8.6.dylib and /usr/lib/libtk8.5.dylib. One of the two will be used. Which one is undefined.
objc[1548]: Class TKMenu is implemented in both /Users/nlaporte/anaconda/lib/libtk8.6.dylib and /usr/lib/libtk8.5.dylib. One of the two will be used. Which one is undefined.
objc[1548]: Class TKContentView is implemented in both /Users/nlaporte/anaconda/lib/libtk8.6.dylib and /usr/lib/libtk8.5.dylib. One of the two will be used. Which one is undefined.
objc[1548]: Class TKWindow is implemented in both /Users/nlaporte/anaconda/lib/libtk8.6.dylib and /usr/lib/libtk8.5.dylib. One of the two will be used. Which one is undefined.
2018-01-15 14:01:30,367 - MosfireDrpLog.