# error solving
## On mac Error: stdio.h missing 
- Solution: run: ```xcode-select --install```
- link: https://stackoverflow.com/questions/19580758/gcc-fatal-error-stdio-h-no-such-file-or-directory 
## Error: zsh segmentation fault
- conda install "libblas=*=*mkl"
## Error: TypeError: Descriptors cannot not be created directly
- pip install protobuf==3.20
## Python AttributeError: module 'xxx' has no attribute 'xxx'
- use python 3.7
## segment fault

## AttributeError: 'NoneType' object has no attribute 'glGetError'
pip install PyOpenGL==3.1.1a1
## 'GLIBCXX_3.4.30' not found for librosa in conda virtual environment (after trying out a lot of solutions)
conda install -c conda-forge gcc=12.1.0
## to enable adroit, just install robohive
reference link: https://github.com/vikashplus/robohive
# Install RoboHive
cd ./large_rl/envs/adroit/robohive
# Install (editable) RoboHive
pip install -e .
# Demo an environment
python -m robohive.utils.examine_env -e FrankaReachRandom-v0
# RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xd .
pip install numpy --upgrade
# install mujoco_py
pip3 install -U 'mujoco-py<2.2,>=2.1'
# Cannot assign type 'void (const char *) except * nogil' to 'void (*)(const char *) noexcept nogil'. Exception values are incompatible. Suggest adding 'noexcept' to the type of 'c_error_callback'.
pip install "cython<3"

# how to create adroit python env
conda create -n adroit_test python=3.8.19
pip install -r requirements.txt
cd ./large_rl/envs/adroit/robohive
pip install -e .
pip3 install -U 'mujoco-py<2.2,>=2.1'
