Skip to content

Issue with Installing multilabel-oversampling  #1

@naram92

Description

@naram92

Hello,

I hope this message finds you well. I recently encountered an issue while trying to install the multilabel-oversampling package directly from the GitHub repository using pip.

Specifically, during the installation process, I received a ModuleNotFoundError indicating that the numpy module was not found. It seems that the package attempts to import numpy during the build/setup phase before numpy is installed, even though numpy is listed as a dependency in install_requires in setup.py.

Here's the error message I received for reference:
File "/private/var/folders/9y/pzqtcdlx1jv2lcr6z_6sq6jm0000gn/T/pip-req-build-ktfxzxk3/multilabel_oversampling/multilabel_oversampling.py", line 1, in
import numpy as np
ModuleNotFoundError: No module named 'numpy'
[end of output]

To resolve the issue, I tried the following:

  • Listed numpy at the beginning of my requirements.txt file to ensure it's installed first.
  • Manually installed numpy and other dependencies before trying to install multilabel-oversampling.
  • Attempted to comment out the numpy imports temporarily to bypass the error.

While I eventually found a workaround, it would be helpful for other users if this issue could be addressed directly in the repository. Perhaps there's a way to ensure that the package doesn't attempt to import dependencies during the build/setup phase or to handle this in a way that doesn't result in an error.

Thank you for your attention to this matter, and I appreciate the work you've put into the multilabel-oversampling package!

Best regards,

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