Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Error occurring during the execution of an example program on Apple M2 max

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
32/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
build-system

调研方向

Start by reproducing the README.md example after pip3 install python-dp on the stated Apple M2 Max and inspect the import from pydp/init.py and the packaged pydp.so. Review build_PyDP.sh and its reported errors, then confirm that the installed package imports and the README example runs successfully on this platform.

由索引模型根据 Issue 内容生成。

描述

Type: Question :grey_question:

Description

When I execute the following program written in README.md,

import pydp as dp
from pydp.algorithms.laplacian import BoundedMean

x = BoundedMean(0.6, 1, 10)

x = BoundedMean(0.6)

x.quick_result(input_data)

I have the following error.

 File "/opt/homebrew/lib/python3.11/site-packages/pydp/__init__.py", line 1, in <module>
    from .pydp import *
ImportError: dlopen(/opt/homebrew/lib/python3.11/site-packages/pydp/pydp.so, 0x0002): tried: '/opt/homebrew/lib/python3.11/site-packages/pydp/pydp.so' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/python3.11/site-packages/pydp/pydp.so' (no such file), '/opt/homebrew/lib/python3.11/site-packages/pydp/pydp.so' (not a mach-o file)

How to Reproduce

  1. Excute pip3 install python-dp
  2. Go to '.' (root directory)
  3. Copy the code in README.md (the above code)
  4. Execute it

Expected Behavior

The code will execute without an error.

System Information

  • Processor: Apple M2 Max
  • OS: macOS Ventura 13.0
  • Language Version: Python 3.11.3
  • Package Manager Version: pip3

Additional Context

I tried these commands , but execution of 'build_PyDP.sh' generated errors.

主要语言
Python
星标
550
派生
143
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

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

OpenMined/PyDP 的其他 Issue

查看 OpenMined/PyDP 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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