Skip to content

[BUG]: Quit using raw file path to prevent pickle load error #236

@YoshiRi

Description

@YoshiRi

Category

  • Perception
    • Detection
    • Tracking
    • Prediction
    • Classification
  • Sensing

Description

When download pickle file and run evaluation, I encountered following error:

/home/autoware/autoware.proj/data/log/result_archive/perception.object_recognition.objects/perception_eval_log/result/20250809_102244/log
[Errno 13] Permission denied: '/home/autoware'

This is caused by following state:

if not osp.exists(self.log_directory):
os.makedirs(self.log_directory)
if not osp.exists(self.visualization_directory):
os.makedirs(self.visualization_directory)

I think there are several problems:

  • pickle loads calls __init__ process
  • __init__ use raw path

Expected behavior

I want to load pickle object without error.

Currently I am not sure we can bypass __init__ execution during pickle loading,

  1. (minimal) Just add try-catch to correspond statement to prevent error→ PR
  2. quit use raw home path and use expandvar in pathlib

Actual behavior

Screenshots

To Reproduce

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions