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

Ilegal Instruction when testing the installation code #195

Open
Escoastin opened this issue Jul 19, 2024 · 15 comments
Open

Ilegal Instruction when testing the installation code #195

Escoastin opened this issue Jul 19, 2024 · 15 comments

Comments

@Escoastin
Copy link

Having followed all the installation instructions at myosuite.readthedocs.io/en/latest/install.html ,
I executed the following code
Picture1

as follows:
Picture2

and I get the following error message:

Picture3

After consulting ChatGPT, it recommended the following code to verify whether the computer architecture is compatible:

Picture4

I get this:
Picture5

Does anyone know how to proceed because it is very difficult to determine.

@Vittorio-Caggiano
Copy link
Collaborator

hi @Escoastin , can you add which operating system and python version are you using?

@Escoastin
Copy link
Author

I'm using windows 10 Pro with Ubuntu installed on it (I downloaded it yesterday because I was struggling with the installation process on Windows)

Here is the OS according to Linux
6

and python
7

@Vittorio-Caggiano
Copy link
Collaborator

I see you use python 3.12... we never tested it with that version. Can you downgrade from 3.8 to 3.10?

@Escoastin
Copy link
Author

So here is another issue. I tried to downgrade but since I have to install Miniconda to activate the environment, it automatically updates it to Python3.12.4, which is confusing because I would like to use Python3.12 as you've suggested. Any way to get around this loop?

@Vittorio-Caggiano
Copy link
Collaborator

did you try to create an environment with a specific python version with

conda create --name myosuite python=3.8
conda activate myosuite

@Escoastin
Copy link
Author

Yes I did this and my version is now python 3.8.19
When I attempt to run the following test, I get the following error messages:
1
2

And then for this one, I get:
3
4

@Escoastin
Copy link
Author

So I've ditched the Linux thing to work on my Miniconda powershell on Windows. Looks like I'm not getting the illegal instruction thing and that it seems to generate something without the screen popping up:
PIC FOR GITHUV

I would think its a case of finding out why the mujoco screen isn't displaying the test, right?

@Vittorio-Caggiano
Copy link
Collaborator

Hi @Escoastin those tests are only to verify that all the environments are available and functioning correctly. In order to visualize the task you need to use the commands below:

from myosuite.utils import gym
env = gym.make('myoElbowPose1D6MRandom-v0')
env.reset()
for _ in range(1000):
  env.mj_render()
  env.step(env.action_space.sample()) # take a random action
env.close()

there are also colabs and tutorials

@Escoastin
Copy link
Author

Okay so I've finally fixed the display issue and am doing the visualizations of the task as you suggested. For the code above, do I type it into MyoSuite environment on Python in the terminal or I execute it elsewhere? (I am new to this so I'm still getting used to everything)

@Vittorio-Caggiano
Copy link
Collaborator

That code is for a python terminal. We need to make it more clear in the Readme.

@Escoastin
Copy link
Author

Okay everything seems to work properly. One last question concerning the terminal part: Once I finish the for loop code, how do I enter the env.close() part in the terminal without it running? Or is that just how it works?

@Vittorio-Caggiano
Copy link
Collaborator

what do you mean? env.close() is run within the python terminal after the for loop

@Escoastin
Copy link
Author

Okay no issue. I've encountered a new problem which is annoying because it feels as if everytime I progress there's something that pulls me back. I was able to run the tests perfectly 3 days ago but now after wanting to run this code:
TEST CODE

It doesn't even go past the gym part. It takes me back to root:
NEW PROBLEM

I verified the installation of the requirements and they are all satisfied.

@Vittorio-Caggiano
Copy link
Collaborator

this should not be happening. It is quite challenging for us to debug what is happening. We run tests against windows installation and everything should be working. Can you try for now to use Colabs for now and post more info when you manage to do some more troubleshooting?

@Escoastin
Copy link
Author

Okay I will use Colabs until I find a solution. Thank you very much!

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

2 participants