turbodbc icon indicating copy to clipboard operation
turbodbc copied to clipboard

Can't install `turbodbc` on MacOS using pipenv

Open KevinEsh opened this issue 2 years ago • 1 comments

Brief explanation:

Hi guys, I was trying to install latest versionturbodbc==4.3.5 via pipenv on my MacBook Pro Monterey. I followed steps as docs explains but receive an error while compilation is ongoing. Any kind of help would be greatly appreciated. Thank you in advance.

Steps followed until fail:

  1. Clang preinstalled when macbook was handover: clang --version prints
Apple clang version 13.0.0 (clang-1300.0.27.3)
Target: x86_64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Not sure how ITG team installed clang. I guess they executed this command

  1. Install Homebrew
  2. Install pyenv: brew install pyenv
  3. Install python & pip: pyenv install 3.9.11
  4. Install pipenv: brew install pipenv
  5. Install boost: brew install boost
  6. Install unixodbc: brew install unixodbc
  7. Set-up virtual environment: pipenv --python 3.9.11
  8. Install numpy & pyarrow from internal source: pipenv install numpy pyarrow --index=https://software.a.[...]
  9. Install turbodbc from internal source: pipenv install turbodbc --index=https://software.a.[...]

Error message:

[...]
      ld: warning: directory not found for option '-Lbuild/lib.macosx-12.3-x86_64-3.9'
      ld: library not found for -lturbodbc.cpython-39-darwin
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      error: command '/usr/bin/clang++' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> turbodbc

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Technical details:

OS: macOS 12.3.1 21E258 x86_64 Host: MacBookPro16,1 Kernel: 21.4.0 CPU: Intel i9-9880H (16) @ 2.30GHz GPU: Intel UHD Graphics 630, AMD Radeon Pro 5500M

KevinEsh avatar May 10 '22 01:05 KevinEsh

Hi @KevinEsh

you may want to reevaluate if your issue is fixed with 4.5.4, the following fix https://github.com/blue-yonder/turbodbc/pull/359 may also has addressed your issue.

Nicoretti avatar Aug 11 '22 15:08 Nicoretti