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

'LeaderboardEvaluator' object has no attribute 'manager' #65

Open
SExpert12 opened this issue Jun 27, 2024 · 8 comments
Open

'LeaderboardEvaluator' object has no attribute 'manager' #65

SExpert12 opened this issue Jun 27, 2024 · 8 comments

Comments

@SExpert12
Copy link

Hi,
I got this error when I run sh leaderboard/scripts/data_collection.sh:
init statistics_manager
begin
Traceback (most recent call last):
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 519, in main
leaderboard_evaluator = LeaderboardEvaluator(arguments, statistics_manager)
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 123, in init
self.module_agent = importlib.import_module(module_name)
File "/home/ryzen/miniconda3/envs/TCPagent/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/ryzen/TCP/leaderboard/team_code/roach_ap_agent.py", line 17, in
from roach.criteria import run_stop_sign
ModuleNotFoundError: No module named 'roach'
Exception ignored in: <function LeaderboardEvaluator.del at 0x7f1d54cd43b0>
Traceback (most recent call last):
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 150, in del
self._cleanup()
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 162, in _cleanup
if self.manager and self.manager.get_running_status()
AttributeError: 'LeaderboardEvaluator' object has no attribute 'manager'
Traceback (most recent call last):
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 529, in
main()
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 525, in main
del leaderboard_evaluator
UnboundLocalError: local variable 'leaderboard_evaluator' referenced before assignment

And although this is correct, I comment this line and then I got this error:
init statistics_manager
begin
Traceback (most recent call last):
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 519, in main
leaderboard_evaluator = LeaderboardEvaluator(arguments, statistics_manager)
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 123, in init
self.module_agent = importlib.import_module(module_name)
File "/home/ryzen/miniconda3/envs/TCPagent/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/ryzen/TCP/leaderboard/team_code/roach_ap_agent.py", line 17, in
from roach.criteria import run_stop_sign
ModuleNotFoundError: No module named 'roach'
Exception ignored in: <function LeaderboardEvaluator.del at 0x7f4ea2923b90>
Traceback (most recent call last):
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 150, in del
self._cleanup()
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 162, in _cleanup
if self.manager and self.manager.get_running_status()
AttributeError: 'LeaderboardEvaluator' object has no attribute 'manager'

How to resolve this now?

@HXTYI
Copy link

HXTYI commented Jul 11, 2024

I meet the same problem, have you solved this ?

@SExpert12
Copy link
Author

Not yet.

@SExpert12
Copy link
Author

Okay. Let me check.

@HXTYI
Copy link

HXTYI commented Jul 12, 2024

I am also reproducing this project recently. Maybe we can have more communication and reproduce it together. My email is [email protected].

@SExpert12
Copy link
Author

Hi, actually right now I am trying to reproduce the results from this repo:
https://github.com/T3AS/Benchmarking-QRS-2022/tree/master
I am constantly getting issues for environment.
What is your project requirement? Mine are carla simulator with continuous action state and multi agent scenario at the intersection. So as per my requirement this repo is very useful to me but I am stuck related to create the environment.

@HXTYI
Copy link

HXTYI commented Jul 12, 2024

I also met the problem that ModuleNotFoundError: No module named 'roach'. I added in the path, but its not work.

@SExpert12
Copy link
Author

Can you tell me what is your project? I mean basic configuration about your project.

@penghao-wu
Copy link
Collaborator

Hi, I got this error when I run sh leaderboard/scripts/data_collection.sh: init statistics_manager begin Traceback (most recent call last): File "leaderboard/leaderboard/leaderboard_evaluator.py", line 519, in main leaderboard_evaluator = LeaderboardEvaluator(arguments, statistics_manager) File "leaderboard/leaderboard/leaderboard_evaluator.py", line 123, in init self.module_agent = importlib.import_module(module_name) File "/home/ryzen/miniconda3/envs/TCPagent/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/home/ryzen/TCP/leaderboard/team_code/roach_ap_agent.py", line 17, in from roach.criteria import run_stop_sign ModuleNotFoundError: No module named 'roach' Exception ignored in: <function LeaderboardEvaluator.del at 0x7f1d54cd43b0> Traceback (most recent call last): File "leaderboard/leaderboard/leaderboard_evaluator.py", line 150, in del self._cleanup() File "leaderboard/leaderboard/leaderboard_evaluator.py", line 162, in _cleanup if self.manager and self.manager.get_running_status() AttributeError: 'LeaderboardEvaluator' object has no attribute 'manager' Traceback (most recent call last): File "leaderboard/leaderboard/leaderboard_evaluator.py", line 529, in main() File "leaderboard/leaderboard/leaderboard_evaluator.py", line 525, in main del leaderboard_evaluator UnboundLocalError: local variable 'leaderboard_evaluator' referenced before assignment

And although this is correct, I comment this line and then I got this error: init statistics_manager begin Traceback (most recent call last): File "leaderboard/leaderboard/leaderboard_evaluator.py", line 519, in main leaderboard_evaluator = LeaderboardEvaluator(arguments, statistics_manager) File "leaderboard/leaderboard/leaderboard_evaluator.py", line 123, in init self.module_agent = importlib.import_module(module_name) File "/home/ryzen/miniconda3/envs/TCPagent/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/home/ryzen/TCP/leaderboard/team_code/roach_ap_agent.py", line 17, in from roach.criteria import run_stop_sign ModuleNotFoundError: No module named 'roach' Exception ignored in: <function LeaderboardEvaluator.del at 0x7f4ea2923b90> Traceback (most recent call last): File "leaderboard/leaderboard/leaderboard_evaluator.py", line 150, in del self._cleanup() File "leaderboard/leaderboard/leaderboard_evaluator.py", line 162, in _cleanup if self.manager and self.manager.get_running_status() AttributeError: 'LeaderboardEvaluator' object has no attribute 'manager'

How to resolve this now?

Have you added the TCP path to PYTHONPATH like this export PYTHONPATH=$PYTHONPATH:PATH_TO_TCP?

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

3 participants