Comments (7)
You can try setting the UNIXODBC_INCLUDE_DIR
environment variable before calling the cmake
command.
from turbodbc.
Glad you got it running!
from turbodbc.
That's weird; travis CI does not complain about it and I can compile things on my MacBook as well.
I think the issue may be that you are using iodbc
to build turbodbc. This issue provides some background information. iodbc
uses a 32 bit wchar_t type for wide SQL strings, while unixodbc
and Microsoft's original ODBC use 16 bit types (such as unsigned short
).
I'd recommend to install unixodbc
, since that's the thing turbodbc is tested with. iodbc
is no longer shipped with recent versions of OSX.
You don't see the issue with 1.0.5 because 1.0.5 did not use wide strings at all. You don't see the issue on Centos because it uses unixodbc
.
from turbodbc.
You are exactly right, I looked at the cmake output and it shows:
-- Detecting unixODBC library
-- Found header files at: /Library/Frameworks/iODBC.framework/Headers
-- Found library at: /usr/local/lib/libodbc.dylib
Funny thing is, I do have unixODBC installed, but Homebrew probably did not link it or something.
Changing the paths in the CMakeCache.txt file fixes the issue.
from turbodbc.
Nope, links from homebrew were just fine, /usr/local/lib/libodbc.dylib
points to unixODBC, however the unixODBC headers are at /usr/local/include
from turbodbc.
So the headers used for compiling are different from the library that is linked? That sounds a little problematic to me ;-).
from turbodbc.
Got rid of iODBC, now it works fine
-- Detecting unixODBC library
-- Found header files at: /usr/local/include
-- Found library at: /usr/local/lib/libodbc.dylib
from turbodbc.
Related Issues (20)
- 4..5.10 produces ImportError with pyarrow-11.0.0 and Python 3.10 on Linux-x86_64 HOT 4
- Issues Parsing Multiple Result Sets HOT 2
- To build turbodbc with arrow support with pyarrow 12.0.0
- Add pyarrow 12.0.0 support
- How to set pre-connect connection attributes? HOT 1
- Advanced use: Arrow 'double' type as supported dtype -> is not a pyarrow dtype? HOT 1
- Using more than 2 threads
- How to deal with Snowflake string length reporting HOT 2
- turbodbc does not play well with poetry HOT 6
- Support pyarrow=14.0.1 HOT 2
- Does turbodbc still need boost as a dependency?
- executemany does not execute sql statement HOT 3
- release 4.10.1 broke pip/poetry installation because of missing dependency. HOT 6
- Can't resolve correct pyarrow verision with pip and pyproject.toml
- Numpy version issue when installing turbodbc
- 4.11.0 Installation error: fatal error C1083: Cannot open include file: 'simdutf.h': No such file or directory HOT 7
- Return pyarrow.RecordBatchReader from cursor.fetcharrowbatches
- Turbodbc + pyarrow installation issue HOT 6
- Support downloading off git/archive HOT 1
- NumPy 2.0 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turbodbc.