exosite-archive / chube

Object-oriented bindings for the Linode API
MIT License
26 stars 3 forks source link

Installation on Mavericks fails #11

Closed awilliams closed 9 years ago

awilliams commented 10 years ago

Using OS X 10.9.2 and Python 2.7.5, the command sudo pip install chube fails with the following error:

/usr/local/bin/pip run on Mon Mar 17 13:00:12 2014
Requirement already satisfied (use --upgrade to upgrade): chube in /Library/Python/2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): linode-python>=1.0 in /Library/Python/2.7/site-packages (from chube)
Requirement already satisfied (use --upgrade to upgrade): PyYAML>=3.10 in /Library/Python/2.7/site-packages (from chube)
Downloading/unpacking pycurl>=7.10 (from chube)
  Getting page https://pypi.python.org/simple/pycurl/
  URLs to search for versions for pycurl>=7.10 (from chube):
  * https://pypi.python.org/simple/pycurl/
  Analyzing links from page https://pypi.python.org/simple/pycurl/
    Skipping link https://pypi.python.org/packages/2.6/p/pycurl/pycurl-7.19.0.2.win32-py2.6.exe#md5=125dc00488a543788ebdedec8465534b (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Skipping link https://pypi.python.org/packages/2.6/p/pycurl/pycurl-7.19.0.3.win32-py2.6.exe#md5=a1dbbdf183c525e85de7038bd1f2f04f (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Skipping link https://pypi.python.org/packages/2.6/p/pycurl/pycurl-7.19.3.1.win32-py2.6.exe#md5=6a7423ee6916ecffc00d26d667b14207 (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Skipping link https://pypi.python.org/packages/2.6/p/pycurl/pycurl-7.19.3.win32-py2.6.exe#md5=86dc7d4484c0b41da7568644164e1b32 (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Skipping link https://pypi.python.org/packages/2.7/p/pycurl/pycurl-7.19.0.2.win32-py2.7.exe#md5=374fd1dd1d5934522b73f4c994856be4 (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Skipping link https://pypi.python.org/packages/2.7/p/pycurl/pycurl-7.19.0.3.win32-py2.7.exe#md5=55559246b2bc3f518b2ce82cb9934463 (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Skipping link https://pypi.python.org/packages/2.7/p/pycurl/pycurl-7.19.3.1.win32-py2.7.exe#md5=a04be4550de35ecde11e3e70dc53b138 (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Skipping link https://pypi.python.org/packages/2.7/p/pycurl/pycurl-7.19.3.win32-py2.7.exe#md5=4bbb209836e32dd2bf730efb20850f1a (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Skipping link https://pypi.python.org/packages/3.2/p/pycurl/pycurl-7.19.3.1.win32-py3.2.exe#md5=1edcec141fea88ac4aa34207608d0aa2 (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Skipping link https://pypi.python.org/packages/3.2/p/pycurl/pycurl-7.19.3.win32-py3.2.exe#md5=95979e8267caadeab6357b0bf2abc39b (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Skipping link https://pypi.python.org/packages/3.3/p/pycurl/pycurl-7.19.3.1.win32-py3.3.exe#md5=4a6510a45d452eafbd432a6c97f86e70 (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Skipping link https://pypi.python.org/packages/3.3/p/pycurl/pycurl-7.19.3.win32-py3.3.exe#md5=411b3f5199f971fcb16ca263397033b7 (from https://pypi.python.org/simple/pycurl/); unknown archive format: .exe
    Found link https://pypi.python.org/packages/source/p/pycurl/pycurl-7.18.2.tar.gz#md5=819a591aabcade5122bbd476165cb72f (from https://pypi.python.org/simple/pycurl/), version: 7.18.2
    Found link https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.0.1.tar.gz#md5=bf737819edcd5b3d9d93b9fc4cd8e003 (from https://pypi.python.org/simple/pycurl/), version: 7.19.0.1
    Found link https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.0.2.tar.gz#md5=518be33976dbc6838e42495ada64b43f (from https://pypi.python.org/simple/pycurl/), version: 7.19.0.2
    Found link https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.0.3.tar.gz#md5=3c3e6033185a49438820af215a936120 (from https://pypi.python.org/simple/pycurl/), version: 7.19.0.3
    Found link https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.0.tar.gz#md5=074cd44079bb68697f5d8751102b384b (from https://pypi.python.org/simple/pycurl/), version: 7.19.0
    Found link https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.3.1.tar.gz#md5=6df8fa7fe8b680d93248da1f8d4fcd12 (from https://pypi.python.org/simple/pycurl/), version: 7.19.3.1
    Found link https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.3.tar.gz#md5=b9091b7438d3de1552e28862d2971cd1 (from https://pypi.python.org/simple/pycurl/), version: 7.19.3
  Using version 7.19.3.1 (newest of versions: 7.19.3.1, 7.19.3, 7.19.0.3, 7.19.0.2, 7.19.0.1, 7.19.0, 7.18.2)
  Downloading from URL https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.3.1.tar.gz#md5=6df8fa7fe8b680d93248da1f8d4fcd12 (from https://pypi.python.org/simple/pycurl/)
  Running setup.py (path:/private/tmp/pip_build_root/pycurl/setup.py) egg_info for package pycurl
    Using curl-config (libcurl 7.30.0)
    running egg_info
    creating pip-egg-info/pycurl.egg-info
    writing pip-egg-info/pycurl.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pycurl.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pycurl.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/pycurl.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/pycurl.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/pycurl.egg-info/SOURCES.txt'
  Source in /private/tmp/pip_build_root/pycurl has version 7.19.3.1, which satisfies requirement pycurl>=7.10 (from chube)
Installing collected packages: pycurl
  Running setup.py install for pycurl
    Running command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/pycurl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-J7_g9t-record/install-record.txt --single-version-externally-managed --compile
    Using curl-config (libcurl 7.30.0)
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-intel-2.7
    creating build/lib.macosx-10.9-intel-2.7/curl
    copying python/curl/__init__.py -> build/lib.macosx-10.9-intel-2.7/curl
    running build_ext
    building 'pycurl' extension
    creating build/temp.macosx-10.9-intel-2.7
    creating build/temp.macosx-10.9-intel-2.7/src
    cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DPYCURL_VERSION="7.19.3.1" -DHAVE_CURL_SSL=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/pycurl.c -o build/temp.macosx-10.9-intel-2.7/src/pycurl.o
    clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
    clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
    error: command 'cc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/pycurl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-J7_g9t-record/install-record.txt --single-version-externally-managed --compile:
    Using curl-config (libcurl 7.30.0)

running install

running build

running build_py

creating build

creating build/lib.macosx-10.9-intel-2.7

creating build/lib.macosx-10.9-intel-2.7/curl

copying python/curl/__init__.py -> build/lib.macosx-10.9-intel-2.7/curl

running build_ext

building 'pycurl' extension

creating build/temp.macosx-10.9-intel-2.7

creating build/temp.macosx-10.9-intel-2.7/src

cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DPYCURL_VERSION="7.19.3.1" -DHAVE_CURL_SSL=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/pycurl.c -o build/temp.macosx-10.9-intel-2.7/src/pycurl.o

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'cc' failed with exit status 1

----------------------------------------
Cleaning up...
  Removing temporary dir /private/tmp/pip_build_root...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/pycurl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-J7_g9t-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/pycurl
Exception information:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip-1.5.2-py2.7.egg/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip-1.5.2-py2.7.egg/pip/commands/install.py", line 279, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/Library/Python/2.7/site-packages/pip-1.5.2-py2.7.egg/pip/req.py", line 1380, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/Library/Python/2.7/site-packages/pip-1.5.2-py2.7.egg/pip/req.py", line 699, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/Library/Python/2.7/site-packages/pip-1.5.2-py2.7.egg/pip/util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/pycurl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-J7_g9t-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/pycurl
danslimmon commented 10 years ago

I can't reproduce this on my laptop (same versions of OS X & Python), but it sounds like this Does the installation work with the environment variables described there, i.e.

export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments

If so, I can document that.

danslimmon commented 9 years ago

Closing out this ticket for inactivity