OpenInformix / IfxPy

Informix native Python driver for scalable enterprise and IoT solutions.
Other
46 stars 22 forks source link

add macOS support #11

Open soleo opened 5 years ago

soleo commented 5 years ago

Cannot install ifxpy package from macOS High Sierra

$ pip install ifxpy
Collecting ifxpy
  Could not find a version that satisfies the requirement ifxpy (from versions: )
No matching distribution found for ifxpy
deokershesh commented 5 years ago

Thanks for interest on MacOS. Currently its not supported/tested on MacOS, we should support at the earliest possible.

soleo commented 5 years ago

Is there anything I can help to make it possible? If I compile with macOS Informix SDK Developer Edition, what kind of issues would potentially occur?

deokershesh commented 5 years ago

Please give it a try, other than nuisance of Python itself, it should be smooth. If you face any problem do let me know.

wanderlp commented 5 years ago

I got same message "Could not find a version that satisfies the requirement ifxpy (from versions: )" I'm using Windows 10 64 bits, Python 3.5.4

mdrnchmstry11 commented 5 years ago

@deokershesh any update at when MacOS support will be available?

fwahl711 commented 5 years ago

I would also be interested in macOS support. I could compile it following the Linux compiling instructions but its nowhere as nice as pip install ....

Compiling went smooth but when using, I get the following error:

ImportError: dlopen(.../venv/lib/python3.7/site-packages/IfxPy-3.0.3-py3.7-macosx-10.14-x86_64.egg/IfxPy.cpython-37m-darwin.so, 2): Library not loaded: idmrs09a.dylib
  Referenced from: .../venv/lib/python3.7/site-packages/IfxPy-3.0.3-py3.7-macosx-10.14-x86_64.egg/IfxPy.cpython-37m-darwin.so
  Reason: image not found

I would be up for contributing to getting it to work on macOS if you tell me what is needed.

jsagrera commented 5 years ago

Not much experience with macOS, but that library that is complaining about (Library not loaded: idmrs09a.dylib) is the Informix driver manager replacement. It may not be as simple as that, but just in case, does the DYLD_LIBRARY_PATH env variable include the $INFORMIXDIR/lib/cli directory?

fwahl711 commented 5 years ago

@jsagrera thanks for the fast reply. yes, that was the problem.

How much work would it be to add a macOS version to pip (PyPI)?

jsagrera commented 5 years ago

macOS support is something we have in the pipeline ;)

fwahl711 commented 5 years ago

ok, thanks a lot for your work.

mdgart commented 5 years ago

I was able to build it for OSX and install it, but now when I try to connect with the same connection string that work on linux, I get this error:

env/lib/python3.7/site-packages/IfxPyDbi.py", line 499, in connect raise _get_exception(inst) IfxPyDbi.Error: ifx_pydb::Error: Exception(' SQLCODE=-11060') 127.0.0.1 - - [17/Apr/2019 11:52:40] "GET /dmsoq HTTP/1.1" 500 -

Same code works on linux and window, any idea?

jsagrera commented 5 years ago

-11060 is way too generic. Can you try enabling tracing in the ODBC.INI. unixODBC should came with isql (even on MacOS). isql is a good tool to test that the Informix ODBC driver before jumping into the Python module.

lniklison commented 5 years ago

@wanderlp did you solve this? I'm getting the same error with Python 3.7

jsagrera commented 5 years ago

Have you tried using the driver from isql/iusql to test the connection? There are lots of reasons why -11060 can be throwed, so we would need a little bit more info to help you out.

flypenguin commented 3 years ago

what's the status here? I'd need it ... desperately :)

guofengzhao-walmart commented 2 years ago

Any update on this, as more than a year has passed?