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

Cannot install under OSX Mojave (10.14) using pip and python 3.7 #15

Closed
misan opened this issue Jun 20, 2019 · 9 comments
Closed

Cannot install under OSX Mojave (10.14) using pip and python 3.7 #15

misan opened this issue Jun 20, 2019 · 9 comments

Comments

@misan
Copy link

misan commented Jun 20, 2019

I have installed octomap before but once I type
$ pip3 install python-fcl

It fails with this output:

Collecting python-fcl
Using cached https://files.pythonhosted.org/packages/d6/1a/51e9a3cf8473f297226396ad508702483f4fe3df9bb60676b35d2aca340d/python-fcl-0.0.12.tar.gz
Requirement already satisfied: numpy in /Users/misan/Library/Python/3.7/lib/python/site-packages (from python-fcl) (1.16.4)
Requirement already satisfied: cython in /Users/misan/Library/Python/3.7/lib/python/site-packages (from python-fcl) (0.29.10)
Building wheels for collected packages: python-fcl
Building wheel for python-fcl (setup.py) ... error
ERROR: Complete output from command /usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/rz/kw6z5q015bx5_zhls77kznz00000gn/T/pip-install-zz_36jyd/python-fcl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/rz/kw6z5q015bx5_zhls77kznz00000gn/T/pip-wheel-w3h9lffv --python-tag cp37:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/fcl
copying fcl/collision_data.py -> build/lib.macosx-10.14-x86_64-3.7/fcl
copying fcl/version.py -> build/lib.macosx-10.14-x86_64-3.7/fcl
copying fcl/init.py -> build/lib.macosx-10.14-x86_64-3.7/fcl
running build_ext
cythoning fcl/fcl.pyx to fcl/fcl.cpp
building 'fcl.fcl' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/fcl
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/include -I/usr/local/include -I/usr/include/eigen3 -I/Users/misan/Library/Python/3.7/lib/python/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c fcl/fcl.cpp -o build/temp.macosx-10.14-x86_64-3.7/fcl/fcl.o -std=c++11
In file included from fcl/fcl.cpp:619:
In file included from /Users/misan/Library/Python/3.7/lib/python/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/misan/Library/Python/3.7/lib/python/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /Users/misan/Library/Python/3.7/lib/python/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:
/Users/misan/Library/Python/3.7/lib/python/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with "
^
fcl/fcl.cpp:627:10: fatal error: 'fcl/data_types.h' file not found
#include "fcl/data_types.h"
^~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
error: command 'clang' failed with exit status 1

ERROR: Failed building wheel for python-fcl
Running setup.py clean for python-fcl
Failed to build python-fcl
Installing collected packages: python-fcl
Running setup.py install for python-fcl ... error
ERROR: Complete output from command /usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/rz/kw6z5q015bx5_zhls77kznz00000gn/T/pip-install-zz_36jyd/python-fcl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/rz/kw6z5q015bx5_zhls77kznz00000gn/T/pip-record-oh_p8l97/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/fcl
copying fcl/collision_data.py -> build/lib.macosx-10.14-x86_64-3.7/fcl
copying fcl/version.py -> build/lib.macosx-10.14-x86_64-3.7/fcl
copying fcl/init.py -> build/lib.macosx-10.14-x86_64-3.7/fcl
running build_ext
skipping 'fcl/fcl.cpp' Cython extension (up-to-date)
building 'fcl.fcl' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/fcl
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/include -I/usr/local/include -I/usr/include/eigen3 -I/Users/misan/Library/Python/3.7/lib/python/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c fcl/fcl.cpp -o build/temp.macosx-10.14-x86_64-3.7/fcl/fcl.o -std=c++11
In file included from fcl/fcl.cpp:619:
In file included from /Users/misan/Library/Python/3.7/lib/python/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/misan/Library/Python/3.7/lib/python/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /Users/misan/Library/Python/3.7/lib/python/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:
/Users/misan/Library/Python/3.7/lib/python/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with "
^
fcl/fcl.cpp:627:10: fatal error: 'fcl/data_types.h' file not found
#include "fcl/data_types.h"
^~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command "/usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/rz/kw6z5q015bx5_zhls77kznz00000gn/T/pip-install-zz_36jyd/python-fcl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/rz/kw6z5q015bx5_zhls77kznz00000gn/T/pip-record-oh_p8l97/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/rz/kw6z5q015bx5_zhls77kznz00000gn/T/pip-install-zz_36jyd/python-fcl/

@misan
Copy link
Author

misan commented Jun 20, 2019

Ok, I need to install fcl first, and before that libccd ... pip does not do that apparently :-(

@misan misan closed this as completed Jun 20, 2019
@misan
Copy link
Author

misan commented Jun 20, 2019

Ok, I closed it too early. I am still stuck at the same point now that I have installed eigen, libccd and fcl.

And I am in fact not able to see any data_types.h in fcl include files.

@misan misan reopened this Jun 20, 2019
@misan
Copy link
Author

misan commented Jun 20, 2019

I guess there is a versioning problem.

$ brew install fcl

did the trick for me.

@misan misan closed this as completed Jun 20, 2019
@menglaili
Copy link

I have installed eigen, fcl using Homebrew and libccd using Makefile, but I still face the same problem. What versions do you choose for these dependencies?

@Amar1729
Copy link

Amar1729 commented May 7, 2020

This isn't in the bullets under FCL's releases, but it looks like in version 0.6.0 data_types.h was renamed to common/types.h.

@menglaili I think when this issue was originally opened, homebrew-core had FCL version 0.5.0 (whereas current is 0.6.1).

Installing python-fcl works for me if I checkout back to [email protected] with homebrew and build that, but I guess this library should probably be updated to reflect the new file location.

Looks like there are two open PRs for updating to 0.6.0: https://github.com/BerkeleyAutomation/python-fcl/pulls

@Aniwax
Copy link

Aniwax commented Nov 26, 2020

Why is this issue closed? Since python-fcl doesn't work with [email protected] yet?
Btw, brew install [email protected] is not working for me. Can someone give me a hint on how to install the 0.5.0 version from the zip file?

@Amar1729
Copy link

@Aniwax I literally checked out the homebrew repo back in time --

  1. cd to homebrew's repo (typically /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula)

  2. determine the last commit for fcl.rb 5.x (git log -- fcl.rb and read the log messages) and checkout to that commit

  • in this case i used git checkout 75dc086c11
  1. install fcl normally brew install fcl
    a. pin the formula so it doesn't auto upgrade (brew pin fcl)

  2. checkout back to master (git checkout master)

This is a bit of a hack since homebrew no longer keeps old versions except for very highly-used formuale.

@Amar1729
Copy link

This issue is probably still relevant until pull #20 or #21 are finished.

@Aniwax
Copy link

Aniwax commented Nov 30, 2020

Thanks a lot! @Amar1729

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

4 participants