Giter Site home page Giter Site logo

Comments (10)

scao0208 avatar scao0208 commented on May 23, 2024 2

I am afraid if the script won't run when not in the same folder with modAL, the problem is not solved yet :( Unfortunately, I was unable to reproduce this error on a freshly installed machine, so I still don't know what might went wrong.

In your script, which one did you try?

import modAL

or

from modAL.models import ActiveLearner

Hey I think it may be "pip install modAL-python"

from modal.

cosmic-cortex avatar cosmic-cortex commented on May 23, 2024 1

I had the same/similar issue and fixed it by renaming the install folder from modAL to modal, maybe everyone stick to lowercase for package names in future?

There was a change in PyPI, modAL has been moved under the name modAL-python. The package modal is a different one! (See #170.)

from modal.

swayson avatar swayson commented on May 23, 2024 1

Wow, so the docs is wrong? it is not pip install modAL but "pip install modAL-python".
The latter resolved the issue for me.

from modal.

cosmic-cortex avatar cosmic-cortex commented on May 23, 2024

What did you import specifically? Can you post the exact log with the import and the error message as well? Also, can you execute the

from modAL.models import ActiveLearner

command in a Python console?

I suspect this is a problem with the setup script. I have encountered this issue a long ago, but this was solved since then and I was unable to reproduce it, so I have no idea what went wrong.

Did you install the latest version, which is 0.3.4? (You can check it with pip freeze | grep modAL.)

from modal.

notebooklinda avatar notebooklinda commented on May 23, 2024

Thanks for your reply! The modAL version is the latest version. I eventually solved it by placing the modAL folder in the same path as the python script that imports modAL. I think it this case the path matters.

from modal.

cosmic-cortex avatar cosmic-cortex commented on May 23, 2024

I am afraid if the script won't run when not in the same folder with modAL, the problem is not solved yet :(
Unfortunately, I was unable to reproduce this error on a freshly installed machine, so I still don't know what might went wrong.

In your script, which one did you try?

import modAL

or

from modAL.models import ActiveLearner

from modal.

notebooklinda avatar notebooklinda commented on May 23, 2024

Both, and they gave me the same error message.
I used a virtualenv, and after running pip install modAL in my virtualenv, I could find modAL was installed and located in site-packages
my working directory is
(activelr) notebooklinda@notebooklinda:/Documents/02-750_automation_of_biological_research/TA$
modAL is located at
(activelr) notebooklinda@notebooklinda:
/Documents/02-750_automation_of_biological_research/TA$ locate -b modAL
/home/notebooklinda/Documents/02-750_automation_of_biological_research/TA/activelr/lib/python3.5/site-packages/modAL
/home/notebooklinda/Documents/02-750_automation_of_biological_research/TA/activelr/lib/python3.5/site-packages/modAL-0.3.4.dist-info

After I copy the entire modAL directory to my working directory, I am able to import modAL.

from modal.

kevinkit avatar kevinkit commented on May 23, 2024

I had the same issue when using Spyder and closing the Console / Restaring the Kernel. Restaring Spyder seems to fix this issue.

An easy check is to start the command tool in your virtual environment and check if you are able to import modAL there.

from modal.

mgfcatherall avatar mgfcatherall commented on May 23, 2024

I had the same/similar issue and fixed it by renaming the install folder from modAL to modal, maybe everyone stick to lowercase for package names in future?

from modal.

evaZQR avatar evaZQR commented on May 23, 2024

I had the same/similar issue and fixed it by renaming the install folder from modAL to modal, maybe everyone stick to lowercase for package names in future?

There was a change in PyPI, modAL has been moved under the name modAL-python. The package modal is a different one! (See #170.)

I had the same problem,but I can't find the 'modAL.model',but i can find "modal",not 'modAL',it seems like that they are not the same package?

from modal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.