Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add macOS support #11

Open
soleo opened this issue Nov 21, 2018 · 16 comments
Open

add macOS support #11

soleo opened this issue Nov 21, 2018 · 16 comments

Comments

@soleo
Copy link

soleo commented Nov 21, 2018

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
Copy link
Collaborator

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

@soleo
Copy link
Author

soleo commented Nov 23, 2018

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
Copy link
Collaborator

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
Copy link

wanderlp commented Jan 4, 2019

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
Copy link

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

@fwahl711
Copy link

fwahl711 commented Apr 2, 2019

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
Copy link
Collaborator

jsagrera commented Apr 2, 2019

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
Copy link

fwahl711 commented Apr 2, 2019

@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
Copy link
Collaborator

jsagrera commented Apr 2, 2019

macOS support is something we have in the pipeline ;)

@fwahl711
Copy link

fwahl711 commented Apr 2, 2019

ok, thanks a lot for your work.

@mdgart
Copy link

mdgart commented Apr 17, 2019

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
Copy link
Collaborator

-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
Copy link

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

@jsagrera
Copy link
Collaborator

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
Copy link

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

@guofengzhao-walmart
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants