Open abdul-mannan-khan opened 3 months ago
Hi, I am facing similar issue and am unable to resolve it yet. Could you please let me know if you find a solution.
Thanks!
No. David Scaramuzza team needs to take a look at it as installation is very old.
Hi, I am facing similar issue and am unable to resolve it yet. Could you please let me know if you find a solution. Thanks!!!
I encountered the same issues, and here’s how I solved them.
For the first issue, you can refer to this discussion: flightmare issue #208.
After that, you might encounter a second issue, as described in flightmare issue #175. By applying the changes mentioned there, you should be able to resolve the problem completely.
By the way, python_version == 3.6
I encountered the same issues, and here’s how I solved them.
The first issue is not caused by CMake, but by pybind11. You can refer to this discussion: flightmare issue #208. Simply follow the proposed solution or try running
pip install pybind11==2.12
to downgrade pybind11.After that, you might encounter a second issue, as described in flightmare issue #175. By applying the changes mentioned there, you should be able to resolve the problem completely.
By the way,
python_version == 3.6
thank you for your record! what's the ubuntu version did you used? i encounter the same problem but can't make it
I encountered the same issues, and here’s how I solved them. The first issue is not caused by CMake, but by pybind11. You can refer to this discussion: flightmare issue #208. Simply follow the proposed solution or try running to downgrade pybind11.
pip install pybind11==2.12
After that, you might encounter a second issue, as described in flightmare issue #175. By applying the changes mentioned there, you should be able to resolve the problem completely. By the way,python_version == 3.6
thank you for your record! what's the ubuntu version did you used? i encounter the same problem but can't make it
I used Ubuntu 20.04 to solve the issue.
I encountered the same issues, and here’s how I solved them. The first issue is not caused by CMake, but by pybind11. You can refer to this discussion: flightmare issue #208. Simply follow the proposed solution or try running to downgrade pybind11.
pip install pybind11==2.12
After that, you might encounter a second issue, as described in flightmare issue #175. By applying the changes mentioned there, you should be able to resolve the problem completely. By the way,python_version == 3.6
thank you for your record! what's the ubuntu version did you used? i encounter the same problem but can't make it
I used Ubuntu 20.04 to solve the issue.
thank you for your quick reply! so you successfully install flightmare in ubuntu20.04 and python3.6 right?(congratulations!!!)
i am trying to do the same thing but fail for days
did you complete the full installation merely by Install with pip and the two changes(pybind==2.12 and master to main), i retry many times but keep failing T_T, looking forward to your reply, congratulates for your success again!
thank you for your quick reply! so you successfully install flightmare in ubuntu20.04 and python3.6 right?(congratulations!!!)
i am trying to do the same thing but fail for days
did you complete the full installation merely by Install with pip and the two changes(pybind==2.12 and master to main), i retry many times but keep failing T_T, looking forward to your reply, congratulates for your success again!
Yes, please proceed based on the documentation for Install with pip and make the necessary adjustments: first, change the file flightlib/cmake/pybind11_download.cmake from master to v2.12; second, change flightlib/cmake/gtest_download.cmake from master to main. Maybe you can also post the error message.
I tried again and confirmed that I only need to modify these two documents in ubuntu20.04 or ubuntu22.04 and python3.6 .
Yes, please proceed based on the documentation for Install with pip and make the necessary adjustments: first, change the file flightlib/cmake/pybind11_download.cmake from master to v2.12; second, change flightlib/cmake/gtest_download.cmake from master to main. Maybe you can also post the error message.
I tried again and confirmed that I only need to modify these two documents in ubuntu20.04 or ubuntu22.04 and python3.6 .
thank you for your time for retrying the installation again!
however, i still got these errors below
1, after "pip install ." in /flightlib, got this failed to build opencv-python error and i found an issue perfectly match my error infomation in #209 , like AnasAbdelR point that the issue may caused by unproper opencv-python version, so i try "pip install opencv-python==4.6" and "pip install opencv-python-headless==4.6" then, both install succesfully and then i retry "pip install ." in flightlib, there is no error!
but when i "pip install -e ." in flightrl (because pip install . will rise "No module named 'rpg_baselines.common'" error then), and then "python3 run_drone_control.py --train 0", i will get the dump error below (it confused me because i encounter this error before when i try to use python3.7 to install flightmare, at thar trail i got the exactly error)
so anyway, i still can't run the flightmare at last, maybe i should change another environment for my research haha T_T
soooooo much thanks for your time, i am great appreciate!!!! wish you can get your ideal experiment result!
Yes, I also encountered the issue you mentioned. I originally thought you would solve it, so it's great to hear that you've managed to resolve the OpenCV-Python error. For your last issue, you can solve it by running:
pip uninstall ruamel.yaml
pip install ruamel.yaml==0.16.13
Finally, you will get it working.
Yes, I also encountered the issue you mentioned. I originally thought you would solve it, so it's great to hear that you've managed to resolve the OpenCV-Python error. For your last issue, you can solve it by running:
pip uninstall ruamel.yaml
pip install ruamel.yaml==0.16.13
Finally, you will get it working.
follow your command i successfully run the demo finally! can't be more appreciate for your kind instruction ! you save me from desperate!!!!!!!!!!!!!!!!!!!!!!!!!!
so for the afterward researchers who struggle to install flightmare in ubuntu20.04 and python3.6, please just follow our discussion and try one more time before you give up!
thank you Jinwei !!!
Yes, I also encountered the issue you mentioned. I originally thought you would solve it, so it's great to hear that you've managed to resolve the OpenCV-Python error. For your last issue, you can solve it by running:
pip uninstall ruamel.yaml
pip install ruamel.yaml==0.16.13
Finally, you will get it working.follow your command i successfully run the demo finally! can't be more appreciate for your kind instruction ! you save me from desperate!!!!!!!!!!!!!!!!!!!!!!!!!!
so for the afterward researchers who struggle to install flightmare in ubuntu20.04 and python3.6, please just follow our discussion and try one more time before you give up!
thank you Jinwei !!!
Have you ever encountered such an error when installing flightmare, I fell into the trap of pain just like you
flightlibitializeConnections()': unity_bridge.cpp:(.text+0x3ff): undefined reference to
zmqpp::socket::::basic_string<char, std::char_traitszm(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator< /usr/bin/ld: unity_bridge.cpp:(.text+0x545): undefined reference to
zmcribe(std::flightlibndleSettings()': unity_bridge.cpp:(.text+0x28f4): undefined reference to
zmqpp::messageunsigned long const&) const'
/usr/bin/ld: libflightlib.a(unity_bridge.cpp.o): in function flightlibndInitialSettings()': unity_bridge.cpp:(.text+0x32ae): undefined reference to
zmqpp::message:cxx11::basic_string<char, std::char_traitsflightlibtPointCloud(flightlib::PointCloudMessage_t&, float)': unity_bridge.cpp:(.text+0x3a8f): undefined reference to
zmqpp::message:cxx11::basic_string<char, std::char_traitsflightlibtRender(unsigned long)': unity_bridge.cpp:(.text+0x48bc): undefined reference to
zmqpp::message:flightlibndleOutput()': unity_bridge.cpp:(.text+0x4a92): undefined reference to
zmqpp::messageunsigned long const&) const'
collect2: error: ld returned 1 exit status
gmake[2]: [CMakeFiles/test_unity_bridge.dir/build.make:156:test_un1
gmake[1]: [CMakeFiles/Makefile2:307:CMakeFiles/test_unity_bridge.d
gmake[1]: *** 正在等待未完成的任务....
[ 94%] Building CXX object CMakeFiles/test_lib.dir/tests/envs/quadrotorv.cpp.o
[ 95%] Building CXX object CMakeFiles/test_lib.dir/tests/envs/vec_env.c
[ 97%] Linking CXX shared module ../lib.linux-x86_64-3.6/flightgym.cpytnux-gnu.so
lto-wrapper: warning: using serial compilation of 4 LTRANS jobs
[ 98%] Building CXX object CMakeFiles/test_lib.dir/tests/objects/quadro
[ 98%] Built target flightgym
[100%] Linking CXX executable test_lib
/usr/bin/ld: warning: libzmq.so.3, needed by /usr/lib/gcc/x86_64-linux-86_64-linux-gnu/libzmqpp.so, may conflict with libzmq.so.5
/usr/bin/ld: libflightlib.a(unity_bridge.cpp.o): in function flightlibitializeConnections()': unity_bridge.cpp:(.text+0x3ff): undefined reference to
zmqpp::socket::::basic_string<char, std::char_traitszm(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator< /usr/bin/ld: unity_bridge.cpp:(.text+0x545): undefined reference to
zmcribe(std::flightlibndleSettings()': unity_bridge.cpp:(.text+0x28f4): undefined reference to
zmqpp::messageunsigned long const&) const'
/usr/bin/ld: libflightlib.a(unity_bridge.cpp.o): in function flightlibndInitialSettings()': unity_bridge.cpp:(.text+0x32ae): undefined reference to
zmqpp::message:__cxx11::basic_string<char, std::char_traitsflightlibtPointCloud(flightlib::PointCloudMessage_t&, float)': unity_bridge.cpp:(.text+0x3a8f): undefined reference to
zmqpp::message:cxx11::basic_string<char, std::char_traitsflightlibtRender(unsigned long)': unity_bridge.cpp:(.text+0x48bc): undefined reference to
zmqpp::message:flightlibndleOutput()': unity_bridge.cpp:(.text+0x4a92): undefined reference to
zmqpp::messageunsigned long const&) const'
collect2: error: ld returned 1 exit status
gmake[2]: [CMakeFiles/test_lib.dir/build.make:268:test_lib] 错误 1
gmake[1]: [CMakeFiles/Makefile2:278:CMakeFiles/test_lib.dir/all] 错
gmake: * [Makefile:146:all] 错误 2
Traceback (most recent call last):
File "ERROR: Failed building wheel for flightgym
Have you ever encountered such an error when installing flightmare, I fell into the trap of pain just like you
sorry i didn't meet the same error. the error info seems like a conflict of different version of zmqpp packages? ( in your message,'/usr/bin/ld: warning: libzmq.so.3, needed by /usr/lib/gcc/x86_64-linux-86_64-linux-gnu/libzmqpp.so, may conflict with libzmq.so.5') maybe reinstall zmqpp could help
Hello, Thank you so much for sharing this amazing work. Really grateful for this. I tried to install it following the installation guides give here and got following error:
To resolve this issue, I changed the conda environment from Python 3.6 to 3.8. Then, I got an issue of
googletest
repository. I downloaded it locally. Then, I hit an issue inCMakeLists.txt
file inflightlib
. So, I modifed it to:Then, I also faced issue with
setup.py
file in flightlib. So, I changed it toThen, I ran into issues with dependencies, i resolved them by running
Finally, I got successful installation. However, when I tried to run
I got a problem
ModuleNotFoundError: No module named 'tensorflow'
. Upon further reading, I found that I cannot install Tensorflow 1 version because it is not compatible for Python 3.8. This repository is using Tensorflow 1. In conclusion, this repository is not working Python 3.6 and if we use Python 3.8, we get issues with Tensorflow 1. Any solution? Thank you.