Skip to content

the modAL package has been changed into modal in the pip repository  #170

Open

Description

@daniELgrailDev

import modAL is not working. Most of the modules that is found in the official documentation is not working

Activity

  1. fritshermans commented on Jun 2, 2023

    @fritshermans

    this is pretty serious as packages depending on modal cannot be installed properly now

  2. cosmic-cortex commented on Jun 2, 2023

    @cosmic-cortex
    Member

    The new package name is modAL-python. I have indicated this in the docs and in #168, but I won't close this issue for more visibility.

  3. kcambrek commented on Jun 15, 2023

    @kcambrek

    import modAL still seems not to work. I tried different versions of modAL-python.

    `----> 4 from modAL.models import ActiveLearner
    5 from modAL.uncertainty import uncertainty_sampling

    ModuleNotFoundError: No module named 'modAL'
    `

    import modal results in `---> 12 from modAL.utils.validation import check_class_labels, check_class_proba
    13 from modAL.uncertainty import uncertainty_sampling
    14 from modAL.disagreement import vote_entropy_sampling, max_std_sampling

    ModuleNotFoundError: No module named 'modAL'`

    Changing the name package folder from "modal" to "modAL" worked..

  4. pabvald commented on Jun 28, 2023

    @pabvald

    @kcambrek I believe that having install modal interfers with the import of modAL-python. I deleted the virtual enviroment and reinstalled all the requirements, including modAL-python>=0.4.1. The problem was solved.

    If you don't want to delete the whole enviroment and install the packages, maybe try:

    pip uninstall modal
    pip install --force-reinstall --no-cache-dir modAL-python>=0.4.1
    
  5. Jalkhov commented on Jul 10, 2023

    @Jalkhov

    Changing the name package folder from "modal" to "modAL" worked..

    Doing this i am getting AttributeError: 'ActiveLearner' object has no attribute 'bootstrap_init'

  6. mwalmsley commented on Apr 20, 2024

    @mwalmsley

    Could we update the docs to the new package name? This puzzled me for a little while.

    https://modal-python.readthedocs.io/en/latest/content/overview/Installation.html#

    Happy to PR if helpful

  7. h4gen commented on Apr 25, 2024

    @h4gen

    Poetry as package manager:
    from modAL.models import ActiveLearner -> ModuleNotFoundError: No module named 'modAL'
    from modal.models import ActiveFeedback ->

          3 import numpy as np
    ----> 4 from modAL.acquisition import max_EI
          5 from modAL.disagreement import max_std_sampling, vote_entropy_sampling
          6 from modAL.models.base import BaseCommittee, BaseLearner
    
    ModuleNotFoundError: No module named 'modAL'
    

    I cannot get it to run. From my point of view the library is completely unusable at the moment.

  8. yhfwww commented on Dec 10, 2024

    @yhfwww

    This problem still exists

  9. Christian-Wenski-BKV commented on Jan 6, 2025

    @Christian-Wenski-BKV

    Installing modAL like this: pip install modAL-python
    fixed the ModuleNotFoundError: No module named 'modAL' problem for me.

  10. ValentinCousin-betclic commented on Jan 29, 2025

    @ValentinCousin-betclic

    If you still have the problem, you should try installing modAL before installing numpy. It fixed the error on my side.

  11. edsml-bc123 commented on Feb 13, 2025

    @edsml-bc123

    If you still have the problem, you should try installing modAL before installing numpy. It fixed the error on my side.

    Finally fixed, appreciate!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions