Skip to content

'PosixPath' object has no attribute 'endswith' when init with nfs server #1101

@jingmouren

Description

@jingmouren

🐛 Bug Description

Follow qlib-server ReadMe to init
import qlib
ONLINE_CONFIG = {***}
qlib.init(**ONLINE_CONFIG)

get this error
'PosixPath' object has no attribute 'endswith'
qlib/init.py", line 66, in init
_mount_nfs_uri(provider_uri, C.dpm.get_data_uri(_freq), C["auto_mount"])
qlib/init.py", line 116, in _mount_nfs_uri
_mount_path = mount_path[:-1] if mount_path.endswith("/") else mount_path
AttributeError: 'PosixPath' object has no attribute 'endswith'

How to solve?

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