I tried to run local galaxy but cannot do that upon upgrade of MacOSX to El capitan recently.
Here is what I got once I type >sh run.sh
I tried to run local galaxy but cannot do that upon upgrade of MacOSX to El capitan recently.
Here is what I got once I type >sh run.sh
Yes, we've seen the exact same error.
I guess the reason is that Galaxy tries to use a slightly outdated version of amqp.
amqp 1.4.7 fixes the El Capitan incompatibility and should be used instead.
To fix this immediately for your current installation, this should work (though I haven't tried it yet):
in the file /Users/jaeilhan/Downloads/galaxy-dev/eggs/amqp-1.4.6-py2.7.egg/amqp/five.py replace the line:
libSystem = ctypes.CDLL('libSystem.dylib')
with:
libSystem = ctypes.CDLL(find_library('libSystem.dylib'))
We are aware of this and are working on the fix. It is possibly caused by Kombu and amqp having trouble on _some_ el capitans.
http://docs.celeryproject.org/projects/kombu/en/latest/changelog.html#version-3-0-27
"Fixed libSystem import error on some OS X 10.11 (El Capitan) installations."
Thanks for reporting
The fix for 15.10 is here and should be merged shortly once tests pass:
https://github.com/galaxyproject/galaxy/pull/1282
Older versions can simply modify eggs.ini as in that PR and should be able to use the newer eggs (however, you are strongly encouraged to update to the latest stable version, especially if developing in Galaxy).
I reinstalled the galaxy and got something different. (It seemed to work at the beginning)
That is still the same error. By reinstalling Galaxy you triggered a fresh download of all software it depends upon including the old version of amqp.
Now try to make the change I suggested and restart (not reinstall) Galaxy.
I see! However, I made the change you suggested as well but got the same error.
Unfortunately, I do not have access to our El Capitan test machine right now to verify this.
Can you try to change the line again and post the error message if it appears again? I would be surprised if it's the same as above.
I wonder if I did something wrong. Here is the part of the five.py file including the change I made.
if sys.version_info < (3, 3):
import platform
SYSTEM = platform.system()
if SYSTEM == 'Darwin':
import ctypes
from ctypes.util import find_library
libSystem = ctypes.CDLL(find_library('libSystem.dylib'))
CoreServices = ctypes.CDLL(find_library('CoreServices'),
use_errno=True)
mach_absolute_time = libSystem.mach_absolute_time
mach_absolute_time.restype = ctypes.c_uint64
absolute_to_nanoseconds = CoreServices.AbsoluteToNanoseconds
absolute_to_nanoseconds.restype = ctypes.c_uint64
absolute_to_nanoseconds.argtypes = [ctypes.c_uint64]
def _monotonic():
return absolute_to_nanoseconds(mach_absolute_time()) * 1e-9
and This is the error message I got. It seems to be same.