I had to upgrade my Mac to OS X 10.15 and it blew up my Anaconda distribution which has forced me to reinstall everything from scratch.
Now whether I install larch from source or by using conda, I get the following error:
Traceback (most recent call last):
File "/Users/jterry/anaconda3/lib/python3.7/ctypes/__init__.py", line 97, in CFUNCTYPE
return _c_functype_cache[(restype, argtypes, flags)]
KeyError: (None, (<class 'epics.dbr.access_rights_handler_args'>,), 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/jterry/anaconda3/bin/larch", line 11, in <module>
load_entry_point('xraylarch==0.9.46', 'console_scripts', 'larch')()
File "/Users/jterry/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Users/jterry/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
return ep.load()
File "/Users/jterry/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2443, in load
return self.resolve()
File "/Users/jterry/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/Users/jterry/anaconda3/lib/python3.7/site-packages/larch/__init__.py", line 50, in <module>
from . import builtins
File "/Users/jterry/anaconda3/lib/python3.7/site-packages/larch/builtins.py", line 33, in <module>
from . import epics
File "/Users/jterry/anaconda3/lib/python3.7/site-packages/larch/epics/__init__.py", line 9, in <module>
import epics
File "/Users/jterry/anaconda3/lib/python3.7/site-packages/epics/__init__.py", line 29, in <module>
from . import ca
File "/Users/jterry/anaconda3/lib/python3.7/site-packages/epics/ca.py", line 761, in <module>
dbr.access_rights_handler_args)
File "/Users/jterry/anaconda3/lib/python3.7/site-packages/epics/dbr.py", line 339, in make_callback
return ctypes.CFUNCTYPE(None, args)(func)
File "/Users/jterry/anaconda3/lib/python3.7/ctypes/__init__.py", line 99, in CFUNCTYPE
class CFunctionType(_CFuncPtr):
TypeError: item 1 in _argtypes_ passes a struct/union with a bitfield by value, which is unsupported.
I think that line 11 is: load_entry_point('xraylarch==0.9.46', 'console_scripts', 'larch')()
Any ideas on how to address this issue?
Thanks,
Jeff
Jeff Terry
Professor of Physics, Illinois Institute of Technology