python binding install a total bust
Hi - has anyone successfully used the python binding on a mac. I carried out the install instructions per InterSystems documentation and it fails completely. 204 warnings and 9 errors. Obviously this was never tested by InterSystems. Is it even worth pursuing?
Thanks
It is definitely worth pursuing if you want to use it. Contact the WRC and give us the version you're using as well as the output from the failed install, and we'll be happy to help. FWIW, I've set it up on Windows and gotten it to work, but not on Mac.
First - thanks for the answer/comment.
i'm new to python and my version is Python 3.6.0 :: Anaconda custom (x86_64)
Mac OS is High Sierra 10.13.3
Latest cache release downloaded a few days ago.
The setup.py code immediately reported syntax errors which were easy enough to fix by using parens. for the print function. The raw-input function also had to be changed to just input. But these syntax errors did not give me confidence for the rest of the install and sure enough I got the warnings and errors as stated. Will try again and post the rather lengthy output.
I've been trying out python with jupyter notebooks and that works well. Also tensor flow and spark python. To my way of thinking the synergy between cache globals and the python list structure and the associated structures used by the machine learning libraries of tensor flow/spark is a big deal.
You mentioned that you ran setup.py, but you are running Python version 3.6.0.
I believe setup.py is the install for Python 2. Have you also tried running setup3.py? i.e.
Yes, if you're getting errors about print in Python 3, I second Iain's suggestion to look for the setup3.py script. I just did this successfully using an Anaconda 4.4 install of Python 3.6.1.
I encourage you to get in touch with the WRC, but if you post more information, we might be able to make some progress. For starters, what version of Caché and Python, and what kind of errors are you seeing?
I successfully built the binding using the following:
It looks like I got a total of eleven compiler warnings.
As described here, it's a bit tricky to actually use the binding with the system version of Python due to Apple's System Integrity Protection (SIP):
https://community.intersystems.com/post/installing-intersystems-python-b...
This may be fixable with some install_name_tool surgery, but a separate installation is recommended.