Skip to content

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

@tak-ka3

Description

@tak-ka3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Question ❔Question about implementation or some technical aspect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions