Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install, at least on Alpine Linux #213

Closed
2 tasks done
bryankaplan opened this issue Jul 4, 2024 · 1 comment
Closed
2 tasks done

Unable to install, at least on Alpine Linux #213

bryankaplan opened this issue Jul 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@bryankaplan
Copy link

bryankaplan commented Jul 4, 2024

Describe the bug

I am attempting to install under Alpine Linux.

$ pip install layoutparser
[…]
    import distutils.core                                                       
ModuleNotFoundError: No module named 'distutils'

That makes sense, because distutils has been removed from python as per PEP 632. It would appear setuptools is a dependency, so I installed that and retried.

$ pip install setuptools
[…]
Successfully installed setuptools-70.2.0

$ pip install layoutparser
[…]
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

Here's the traceback.

Checklist

  • I have searched related issues but cannot get the expected help.
  • The bug has not been fixed in the latest version, see the Layout Parser Releases

To Reproduce
Steps to reproduce the behavior:

  1. Use Alpine.
  2. Create and activate a virtual environment.
  3. Attempt to pip install layoutparser.

Environment

  1. Platform: Alpine Linux v3.20
  2. Layout Parser version: 0.3.4

Error traceback
https://paste.rs/11Fje

@bryankaplan bryankaplan added the bug Something isn't working label Jul 4, 2024
@bryankaplan
Copy link
Author

I opened this ticket too hastily. It's actually opencv-python bug #988.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant