Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Run the code in the shell, but not work in the pycharm #14

Closed
Amanda2024 opened this issue Jan 13, 2022 · 2 comments
Closed

Run the code in the shell, but not work in the pycharm #14

Amanda2024 opened this issue Jan 13, 2022 · 2 comments

Comments

@Amanda2024
Copy link

Amanda2024 commented Jan 13, 2022

Description

I can run this code in the shell command,

but with the same remote settings and Conda environment in the Pycharm, it always occurs:

raise HydraException(f"Error calling '{cls}' : {e}") from e hydra.errors.HydraException: Error calling 'mtrl.experiment.metaworld.Experiment' : Error calling 'metaworld.MT10' : Error loading module 'metaworld.MT10'

How to reproduce

python main.py setup=metaworld env=metaworld-mt10 agent=state_sac experiment.num_eval_episodes=1 experiment.num_train_steps=2000000 setup.seed=1 replay_buffer.batch_size=1280 agent.multitask.num_envs=10 agent.multitask.should_use_disentangled_alpha=True agent.multitask.should_use_task_encoder=True agent.encoder.type_to_select=film agent.multitask.should_use_multi_head_policy=False agent.multitask.task_encoder_cfg.model_cfg.pretrained_embedding_cfg.should_use=True agent.multitask.task_encoder_cfg.model_cfg.output_dim=6

System information

  • MTRL Version : 1
  • Python version : 3.6.13
@shagunsodhani
Copy link
Contributor

Hey @Amanda-1997 Thanks for your question. The issue might be because of some configuration issues with your PyCharm setup. I am not much familiar with PyCharm. Feel free to (re)-open the issue if you have any other questions.

@JosselinSomervilleRoberts

Hi @Amanda-1997 I have the same error in VSCode, where you able to fix your problem? Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants