'PosixPath' object has no attribute 'endswith' when init with nfs server
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 48.7k
- Forks
- 7.7k
- PR merge metrics
- No merged PRs in 30d
Description
🐛 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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in qlib/init.py at init and _mount_nfs_uri, following the qlib-server README configuration that enables the NFS server. Inspect how mount_path is produced before the endswith call and reproduce the failure with the shown ONLINE_CONFIG. Done means qlib.init completes without the PosixPath AttributeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100