frictionlessdata / datapackage-py

A Python library for working with Data Packages.
https://frictionlessdata.io
MIT License
189 stars 44 forks source link

pip install datapackage fails on OSX 10.14.1 #230

Closed phetzel1 closed 5 years ago

phetzel1 commented 5 years ago

Upon running pip install datapackage on Mac OSX 10.14.1, I received an error revolving around the package cchardet.

The error when building cchardet is summarized below:

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
  ld: library not found for -lstdc++
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  error: command 'g++' failed with exit status 1

I have already went through the step of running xcode-select --install with no success.

akariv commented 5 years ago

Might be you have an old version of XCode installed on your machine?

roll commented 5 years ago

@phetzel1 Take a look on this solution - https://stackoverflow.com/questions/52509602/cant-compile-c-program-on-a-mac-after-upgrade-to-mojave. @lwinfree has successfully resolved the same issue using it.

Please re-open if it doesn't help

lwinfree commented 4 years ago

I updated to OSX 10.14.6 and updated my Python too and then had this error again when trying pip install datapackage. So I had to remember how I fixed it before, which was annoying, so now that I have fixed it again, I decided to write it down here for posterity.

step 1: to make sure you have the latest x-code, run in terminal: xcode-select --install step 2: go to https://developer.apple.com/download/more/ and download the command line tools (note, you can also get the latest x-code from this site) step 3: in terminal, run open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

Now you should be able to install datapackage again!

roll commented 4 years ago

@lwinfree Probably it makes sense to PR it also to the README (as a OSx note) - https://github.com/frictionlessdata/datapackage-py#installation