Skip to content

Cannot Import Library on Mac #288

@NateSolon

Description

@NateSolon

Description

When I tried to run the carrets_demo notebook, I was unable to import pydp.

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-9b364303ce89> in <module>
----> 1 import pydp as dp

/opt/anaconda3/lib/python3.7/site-packages/pydp/__init__.py in <module>
----> 1 from .pydp import *

ImportError: dlopen(/opt/anaconda3/lib/python3.7/site-packages/pydp/pydp.so, 2): no suitable image found.  Did find:
	/opt/anaconda3/lib/python3.7/site-packages/pydp/pydp.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
	/opt/anaconda3/lib/python3.7/site-packages/pydp/pydp.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00

How to Reproduce

  1. Clone PyDP repo.
  2. Install PyDP with pip install python-dp. I also tried python -m pip install python-dp --force-reinstall.
  3. Try to run import pydp as dp.

Expected Behavior

The library imports without error.

System Information

  • OS: macOS
  • OS Version: Mojave 10.14.6
  • Language Version: Python 3.7.4
  • Package Manager Version: Conda 4.8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good first issue 🎓Perfect for beginners, welcome to OpenMined!HacktoberfestOpen for hacktoberfest 2020Status: Available 👋Available for assignment, who wants it?Type: Bug 🐛Some functionality not working in the codebase as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions