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

Failed building wheel for flightgym #1

Closed
yun-long opened this issue Aug 20, 2020 · 5 comments
Closed

Failed building wheel for flightgym #1

yun-long opened this issue Aug 20, 2020 · 5 comments

Comments

@yun-long
Copy link
Contributor

 CMake Error: The current CMakeCache.txt directory /tmp/pip-req-build-or5x44y6/externals/pybind11/CMakeCache.txt is different than the directory /home/sysadmin/GitHub/flightmare/flightlib/externals/pybind11 where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
  CMake Error at cmake/pybind11.cmake:16 (message):
    Download of Pybind11 failed: 1
  Call Stack (most recent call first):
    CMakeLists.txt:45 (include)
@yun-long
Copy link
Contributor Author

yun-long commented Aug 20, 2020

cd flightmare/flightlib/externals
rm -rf *
cd flightmare/flightlib/
pip install .

@yun-long yun-long closed this as completed Sep 2, 2020
antonilo pushed a commit that referenced this issue Mar 13, 2021
dhruv-robo added a commit to anish-bhattacharya/flightmare that referenced this issue Apr 18, 2023
@samaila53
Copy link

Hi, after following the flightmare install steps , i get this error:

Building wheels for collected packages: flightgym
Building wheel for flightgym (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/sam/anaconda3/envs/quad/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/sam/Bureau/flightmare/flightlib/setup.py'"'"'; file='"'"'/home/sam/Bureau/flightmare/flightlib/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-m2jlvmei
cwd: /home/sam/Bureau/flightmare/flightlib/
Complete output (106 lines):
running bdist_wheel
running build
running build_ext
Removing some cache file: /home/sam/Bureau/flightmare/flightlib/build/temp.linux-x86_64-3.6
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ====================== !Flightmare! ======================
-- ======> Setup Dependencies
-- Using system provided Eigen.
/usr/include/eigen3
-- Eigen3 include dir: /usr/include/eigen3
-- Getting Pybind11...
Cloning into 'pybind11-src'...
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
error: 3262 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Cloning into 'pybind11-src'...
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 1511 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Cloning into 'pybind11-src'...
Already on 'master'
-- Pybind11 downloaded!
-- pybind11 v2.12.0 dev1
-- Found PythonInterp: /home/sam/anaconda3/envs/quad/bin/python (found suitable version "3.6.13", minimum required is "3.6")
-- Found PythonLibs: /home/sam/anaconda3/envs/quad/lib/libpython3.6m.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Getting yaml-cpp...
-- Yaml downloaded!
-- Found OpenCV: /usr (found version "4.5.4")
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
INFOBuild time could be improved with ccache!
INFO sudo apt install ccache
-- ======> Setup Compilation
-- Enabling fast optimization flags!
-- The activated CXX RELEASE configuration is:
-DVERSION_INFO="0.0.1" -fPIC -Wall -DNDEBUG -fopenmp -Ofast -march=native
-- The activated CXX DEBUG configuration is:
-DVERSION_INFO="0.0.1" -fPIC -Wall -g -fopenmp
-- ======> Setup Build
-- Getting gtests...
Cloning into 'googletest-src'...
fatal: invalid reference: master
CMake Error at googletest-download/googletest-prefix/tmp/googletest-gitclone.cmake:40 (message):
Failed to checkout tag: 'master'

gmake[2]: *** [CMakeFiles/googletest.dir/build.make:98: googletest-prefix/src/googletest-stamp/googletest-download] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/googletest.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
CMake Error at cmake/gtest.cmake:17 (message):
Build step for googletest failed: 2
Call Stack (most recent call first):
CMakeLists.txt:192 (include)

-- Configuring incomplete, errors occurred!
See also "/home/sam/Bureau/flightmare/flightlib/build/temp.linux-x86_64-3.6/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "", line 1, in
File "/home/sam/Bureau/flightmare/flightlib/setup.py", line 106, in
zip_safe=False,
File "/home/sam/anaconda3/envs/quad/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/sam/anaconda3/envs/quad/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/sam/anaconda3/envs/quad/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/home/sam/anaconda3/envs/quad/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/sam/anaconda3/envs/quad/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/home/sam/anaconda3/envs/quad/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/sam/anaconda3/envs/quad/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/sam/anaconda3/envs/quad/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/sam/anaconda3/envs/quad/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/sam/anaconda3/envs/quad/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/sam/Bureau/flightmare/flightlib/setup.py", line 59, in run
self.build_extension(ext)
File "/home/sam/Bureau/flightmare/flightlib/setup.py", line 89, in build_extension
cmake_args, cwd=self.build_temp, env=env)
File "/home/sam/anaconda3/envs/quad/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/home/sam/Bureau/flightmare/flightlib', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/sam/Bureau/flightmare/flightlib/build/lib.linux-x86_64-3.6/', '-DPYTHON_EXECUTABLE=/home/sam/anaconda3/envs/quad/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.

ERROR: Failed building wheel for flightgym

Ho do solve it?

@savvas-ap
Copy link

savvas-ap commented Nov 7, 2023

I have found this issue that has helped me to overcome the specific problem (the file you need is in flightmare/flightlib/cmake/gtest_download.cmake), however, there is another is another problem after that (specifically:

fatal error: zmqpp/zmqpp.hpp: No such file or directory
19 | #include <zmqpp/zmqpp.hpp>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
).
google/googletest#3663

Has anyone found a global solution on this issue?

@omarmradi
Copy link

omarmradi commented Nov 22, 2023

Step 1:
vi /home/omar/flightmare/flightlib/cmake/gtest_download.cmake
change MASTER to MAIN

as per google/googletest#3663

Step 2:
git clone https://github.com/zeromq/zmqpp.git
cd zmqpp
make
make check
sudo make install
make installcheck

Step 3:
cd ../flightlib
pip install . --verbose

@savvas-ap
Copy link

@omarmradi thank you very much!
I also leave here this issue, that helped me solve the problem appeared later on, in case that it helps someone else too:
zeromq/zmqpp#246

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