xrootd now needs to be installed separately

未关闭
#4 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
jupyter-notebook, python
领域
tooling

调研方向

从 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 main for 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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

eic/python-analysis-bootcamp 的其他 Issue

查看 eic/python-analysis-bootcamp 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。