-
Notifications
You must be signed in to change notification settings - Fork 389
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 run simulation on linux Fedora #182
Comments
After running this command: "conda install -c conda-forge libstdcxx-ng=12" the example script runs but without the correct simulation, it only shows a xyz axis and nothing else in the sim window. |
this is really a video driver/OpenGL issue (used by PyBullet, which is turn used by this repo), one thing you can try, if you are using an NVIDIA card is: if you receive a "Failed to create and OpenGL context" message, launch nvidia-settings and under "PRIME Profiles" select "NVIDIA (Performance Mode)", reboot and try again. |
Hi @JacopoPan, Thanks for your reply. I'm not using a NVIDIA card but a multi-core GPU, I dual booted my macbook M1. So i guess there is no fix then for the driver/OpenGL issue. |
I am not sure, I have seen the "Failed to create and OpenGL context" on Ubuntu a few times but it was always related to problems with the graphics (nothing specific to this repo or PyBullet). I am on MacBook M2 myself: everything in this repo except the betaflight SITL works well on macOS. |
I have now downloaded into Ubuntu, and still got the same error: (drones) ubuntu@localhost: Are there options to adjust the graphics and load the rendering with something else? I tried some suggestions from other issues but nothing worked yet. |
@LucasPeters00 this really looks like an issue with your OpenGL installation but I can assure you that PyBullet (and it's OpenGL renderer GUI) work well on both Ubuntu and Apple Silicon/macOS (because that is what I am using as well) but I never tried with Ubuntu on Apple Silicon. |
@JacopoPan What kind of graphics driver do you use for the simulation? For me creating the openGL context and loading the swrast driver fails maybe it has to do with a different version |
On macOS, PyBullet simply uses
On Ubuntu (for me, on Lenovo with Intel CPU, Nvidia GPU), it creates GL 3.3 context
It really seems that you are having problems running PyBullet https://github.com/bulletphysics/bullet3 (the physics engine and GUI used in this package), not this package per se |
I was getting the same error of the OP on Fedora 39.
|
This worked for me in arch linux |
When i try to run an example script it fails to run the simulation. I use Linux Fedora on my macbook. The code is tested for ubuntu but I can't dual boot my laptop with ubuntu. Is there a way to work around this problem or is it not possible with Fedora? I tried installing the missing package manually but that does not do anything.
the error:
(drones) lucaspeters@lucaspeters-macbookpro:~/Desktop/PDM/gym-pybullet-drones/gym_pybullet_drones/examples$ python3 pid.py
pybullet build time: Dec 7 2023 21:58:45
[INFO] BaseAviary.init() loaded parameters from the drone's .urdf:
[INFO] m 0.027000, L 0.039700,
[INFO] ixx 0.000014, iyy 0.000014, izz 0.000022,
[INFO] kf 0.000000, km 0.000000,
[INFO] t2w 2.250000, max_speed_kmh 30.000000,
[INFO] gnd_eff_coeff 11.368590, prop_radius 0.023135,
[INFO] drag_xy_coeff 0.000001, drag_z_coeff 0.000001,
[INFO] dw_coeff_1 2267.180000, dw_coeff_2 0.160000, dw_coeff_3 -0.110000
startThreads creating 1 threads.
starting thread 0
started thread 0
argc=2
argv[0] = --unused
argv[1] = --start_demo_name=Physics Server
ExampleBrowserThreadFunc started
X11 functions dynamically loaded using dlopen/dlsym OK!
X11 functions dynamically loaded using dlopen/dlsym OK!
MESA-LOADER: failed to open asahi: /home/lucaspeters/.conda/envs/drones/lib/libstdc++.so.6: version
GLIBCXX_3.4.30' not found (required by /usr/lib64/dri/asahi_dri.so) (search paths /usr/lib64/dri, suffix _dri) failed to load driver: asahi MESA-LOADER: failed to open swrast: /home/lucaspeters/.conda/envs/drones/lib/libstdc++.so.6: version
GLIBCXX_3.4.30' not found (required by /usr/lib64/dri/swrast_dri.so) (search paths /usr/lib64/dri, suffix _dri)failed to load driver: swrast
Creating context
Failed to create GL 3.3 context ... using old-style GLX context
Failed to create an OpenGL context
The text was updated successfully, but these errors were encountered: