notebooks icon indicating copy to clipboard operation
notebooks copied to clipboard

DrizzlePac: CalledProcessError (OSX Big Sur)

Open Ragadeepika-Pucha opened this issue 4 years ago • 6 comments

I am getting the following error when I am trying to import astrodrizzle.

CalledProcessError: Command '('/usr/bin/otool', '-L', '/Users/raga.pucha/anaconda3/envs/astroconda/lib/python3.6/lib-dynload/_tkinter.cpython-36m-darwin.so')' returned non-zero exit status 1.

Ragadeepika-Pucha avatar Nov 24 '20 22:11 Ragadeepika-Pucha

@samanthalh ?

pllim avatar Nov 24 '20 23:11 pllim

Hello! Thanks for reporting this issue, @Ragadeepika-Pucha. I'm going to bring this to the attention of the DrizzlePac software folks (@stsci-hack and @mcara) but I would strongly urge you to create a helpdesk ticket. The ticket will go directly to DrizzlePac experts, and response times will be faster on that platform.

samanthalh avatar Nov 30 '20 15:11 samanthalh

@samanthalh The error started after i updated the mac OS from catalina to Big Sur - but, after facing a few problems, I downgraded back to catalina. Now, drizzlepac is working fine again.

Ragadeepika-Pucha avatar Dec 11 '20 22:12 Ragadeepika-Pucha

CC: @jhunkeler

mcara avatar Dec 11 '20 22:12 mcara

https://github.com/spacetelescope/stsci.tools/blob/b770597a46f20bab170913dfd43fc51a5b58fd34/lib/stsci/tools/capable.py#L79

I don't have access to a machine running Big Sur but one or more of the following are true:

  • otool no longer lives in /usr/bin
  • tkinter library isn't there or the file is damaged
  • Xcode and "command line tools" are not installed and/or not configured

Without the actual error text it's hard to say.

jhunkeler avatar Dec 13 '20 00:12 jhunkeler

I had the same issue and solved it by reinstalling Xcode. In my case, Xcode was broken after I upgraded to Big Sur; it caused exactly this error. Removing old broken Xcode, downloading and installing a new copy solved this problem. It takes some time to install and start Xcode, though. After Xcode started, ipython started to work and drizzlepac was able to be imported. Hope this helps.

wenlong2 avatar Oct 25 '21 19:10 wenlong2