Apr-17-2021, 08:40 PM
Hello everyone
I downloaded a Github repo.
this is the main directory
I will get an error that
What could be the reason? I am not allowed to use the name "utils" as folder
Thank you very much :)
Best Regards
Chris
I downloaded a Github repo.
this is the main directory
Quote:baselines common configs envs firl fuck logs README.md run.sh utils
import sys, os, time 6 7 for i in sys.path: 8 print(i) 9 10 import numpy as np 11 import torch 12 import gym 13 from ruamel.yaml import YAML 14 15 from firl.divs.f_div import f_div_loss, f_div_current_state_loss 16 from firl.divs.ipm import ipm_loss 17 from firl.models.reward import MLPReward 18 from firl.models.discrim import SMMIRLDisc as Disc 19 from firl.models.discrim import SMMIRLCritic as Critic 20 from common.sac import ReplayBuffer, SAC 21 22 import envs 23 from envs.tasks.grid_task import expert_density 24 #from utils import system, collect, logger, eval 25 from fk import system 26 #from utils.plots.train_plot import plot, plot_disc, plot_submission 27 #from utils import plot_submission 28 from sklearn import neighborsIn line 24 (uncomment)
I will get an error that
Output:Traceback (most recent call last):
File "firl/irl_density.py", line 24, in <module>
from utils import system, collect, logger, eval
ImportError: cannot import name 'system'
I copied the folder into "fk" folder in this case its working 
What could be the reason? I am not allowed to use the name "utils" as folder
Thank you very much :)
Best Regards
Chris