xrootd now needs to be installed separately
未关闭
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
调研方向
从 Getting Started.ipynb 开始,尤其是第 10 个单元格,并在 Codespaces 中复现远程 ROOT 文件访问。检查项目如何配置其 Codespaces 或分析环境,并确保包含 XRootD Python 绑定。完成的标准是笔记本单元格能够打开远程文件且不会出现 ModuleNotFoundError。
由索引模型根据 Issue 内容生成。
描述
Environment: (where does this bug occur, have you tried other environments)
- Which branch (often
mainfor latest released): main - Environment: Codespaces
Steps to reproduce: (give a step by step account of how to trigger the bug)
- Open project in codespaces (it opens fine)
- Try running notebooks cells that open remote root file
- This produces an error:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
File /opt/conda/envs/analysis/lib/python3.12/site-packages/uproot/extras.py:98, in XRootD_client()
97 try:
---> 98 import XRootD
99 import XRootD.client
ModuleNotFoundError: No module named 'XRootD'
The above exception was the direct cause of the following exception:
ModuleNotFoundError Traceback (most recent call last)
/workspaces/python-analysis-bootcamp/Getting Started.ipynb Cell 10 line 1
----> [1](vscode-notebook-cell://codespaces%2Bjubilant-palm-tree-5rjr5g9rv7344x6/workspaces/python-analysis-bootcamp/Getting%20Started.ipynb#X12sdnNjb2RlLXJlbW90ZQ%3D%3D?line=0) events = ur.open(server + dir + file + ':events')
File /opt/conda/envs/analysis/lib/python3.12/site-packages/uproot/reading.py:143, in open(path, object_cache, array_cache, custom_classes, decompression_executor, interpretation_executor, **options)
134 if not uproot._util.isstr(file_path) and not (
135 hasattr(file_path, "read") and hasattr(file_path, "seek")
136 ):
137 raise ValueError(
138 "'path' must be a string, pathlib.Path, an object with 'read' and "
139 "'seek' methods, or a length-1 dict of {file_path: object_path}, "
140 f"not {path!r}"
141 )
--> 143 file = ReadOnlyFile(
...
ModuleNotFoundError: Install XRootD python bindings with:
conda install -c conda-forge xrootd
- 主要语言
- Jupyter Notebook
- 星标
- 2
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
eic/python-analysis-bootcamp 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 20/100
查看 eic/python-analysis-bootcamp 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 1/5 1 小时以内 新手友好度 92/100
-
难度 1/5 1-3 小时 新手友好度 86/100
DavidAnson/markdownlint-cli2#940 ·
-
难度 1/5 1 小时以内 新手友好度 72/100
EclipseFdn/open-vsx.org#13385 · 1 条评论 ·
-
bug ci good first issue
难度 2/5 1-3 小时 新手友好度 88/100