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

Unable to install on OSX #6

Closed
hexedpackets opened this issue Aug 28, 2015 · 7 comments
Closed

Unable to install on OSX #6

hexedpackets opened this issue Aug 28, 2015 · 7 comments

Comments

@hexedpackets
Copy link

Trying to do a pip install on OSX results in the following error:

Collecting timelib
  Using cached timelib-0.2.4.zip
Building wheels for collected packages: timelib
  Running setup.py bdist_wheel for timelib
  Complete output from command /usr/local/opt/python/bin/python2.7 -c "import setuptools;__file__='/private/var/folders/b8/dj_1yffn6rdg2150gb7yvypc0000gn/T/pip-build-zKfzpQ/timelib/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/b8/dj_1yffn6rdg2150gb7yvypc0000gn/T/tmpChfBwipip-wheel-:
  running bdist_wheel
  running build
  running build_ext
  building 'timelib' extension
  creating build
  creating build/temp.macosx-10.10-x86_64-2.7
  creating build/temp.macosx-10.10-x86_64-2.7/ext-date-lib
  clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_STRING_H=1 -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c ext-date-lib/astro.c -o build/temp.macosx-10.10-x86_64-2.7/ext-date-lib/astro.o
  In file included from ext-date-lib/astro.c:26:
  In file included from ext-date-lib/timelib.h:24:
  ext-date-lib/timelib_structs.h:24:10: fatal error: 'timelib_config.h' file not found
  #include "timelib_config.h"
           ^
  1 error generated.
  error: command 'clang' failed with exit status 1

  ----------------------------------------
  Failed building wheel for timelib
Failed to build timelib
Installing collected packages: timelib
  Running setup.py install for timelib
    Complete output from command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/b8/dj_1yffn6rdg2150gb7yvypc0000gn/T/pip-build-zKfzpQ/timelib/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/b8/dj_1yffn6rdg2150gb7yvypc0000gn/T/pip-P7rc09-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'timelib' extension
    clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_STRING_H=1 -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c ext-date-lib/astro.c -o build/temp.macosx-10.10-x86_64-2.7/ext-date-lib/astro.o
    In file included from ext-date-lib/astro.c:26:
    In file included from ext-date-lib/timelib.h:24:
    ext-date-lib/timelib_structs.h:24:10: fatal error: 'timelib_config.h' file not found
    #include "timelib_config.h"
             ^
    1 error generated.
    error: command 'clang' failed with exit status 1

    ----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/b8/dj_1yffn6rdg2150gb7yvypc0000gn/T/pip-build-zKfzpQ/timelib/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/b8/dj_1yffn6rdg2150gb7yvypc0000gn/T/pip-P7rc09-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/b8/dj_1yffn6rdg2150gb7yvypc0000gn/T/pip-build-zKfzpQ/timelib

This is on 10.10.4 with Python 2.7.10 installed from Homebrew.

@sp-juan-hernandez
Copy link

+1

osx 10.10.5
python 2.7.10

@sca4
Copy link

sca4 commented Jan 14, 2016

Anyone find any solutions to this?

@binarylogic
Copy link

Same here :(

@oDaruma
Copy link

oDaruma commented Mar 21, 2016

The problem is "include_dirs" is on the wrong location

Download the package with

pip download timelib

Edit the setup.py

change the 'setup' section like this

setup(name="timelib",
version="0.2.4",
description="parse english textual date descriptions",
author="Ralf Schmitt",
author_email="[email protected]",
url="https://github.com/pediapress/timelib/",
ext_modules=[Extension("timelib", sources=sources,
libraries=libraries,
include_dirs=[".", "ext-date-lib"],
define_macros=[("HAVE_STRING_H", 1)])],
include_dirs=[".", "ext-date-lib"],
long_description=open("README.rst").read(),
license="zlib/php",
**extra)

save the code
make install

@Ch3LL
Copy link

Ch3LL commented Jan 17, 2018

any update on this? Would a simple PR with the workaround @maxchowhk points out be sufficient?

@funzoneq
Copy link

Can we get version 0.2.5 promoted to pypi?

@v0lk3r
Copy link
Contributor

v0lk3r commented Aug 28, 2020

Can we get version 0.2.5 promoted to pypi?

done

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

8 participants