Skip to content

Does python-magic work on Apple Silicon? #262

Closed
@soimkim

Description

@soimkim

When Python-magic is installed and executed on Apple Silicon(m1), the following bug occurs. Is there any workaround?

 ImportError: dlopen(/usr/local/Cellar/libmagic/5.41/lib/libmagic.dylib, 0x0006): tried: '/usr/local/Cellar/libmagic/5.41/lib/libmagic.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/libmagic.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libmagic.dylib' (no such file), '/usr/local/Cellar/libmagic/5.41/lib/libmagic.1.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/libmagic.1.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libmagic.1.dylib' (no such file)

failed to find libmagic.  Check your installation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions