Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#454 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
32/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
build-system

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
550
Fork
143
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenMined/PyDP

Tutte le issue di OpenMined/PyDP

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.