Giter Club home page Giter Club logo

Comments (13)

tvdboom avatar tvdboom commented on May 18, 2024

What OS are you on? Is it macOS? Also, can you check in your site-packages directory if the atom directory is present? Also, how can you run import atom; atom.__version__ 5.1.1 if you weren't able to import it in the first place?

from atom.

Selphie14100 avatar Selphie14100 commented on May 18, 2024

using Win 10. It is in site-packages directory.
If I use pip to show it I get
(basicai) C:\Users\User>pip show atom_ml
WARNING: Ignoring invalid distribution -ttpx (c:\users\user\anaconda3\envs\basicai\lib\site-packages)
Name: atom-ml
Version: 5.1.1
Summary: A Python package for fast exploration of machine learning pipelines
Home-page:
Author:
Author-email: Mavs [email protected]
License:
Location: c:\users\user\anaconda3\envs\basicai\lib\site-packages

I am trying to use it in a jupyter notebook

from atom.

tvdboom avatar tvdboom commented on May 18, 2024

Ok, so it is installed but for some reason it can not be imported. Maybe your pythonpath is wrong? what happens when you copy the atom-ml directory from site-packages to your current working directory?

from atom.

Selphie14100 avatar Selphie14100 commented on May 18, 2024

I get this

ModuleNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_16608\3307495225.py in
----> 1 import atom

~\atom_init_.py in
8 """
9
---> 10 from atom.api import ATOMClassifier, ATOMModel, ATOMRegressor
11 from atom.utils import version

~\atom\api.py in
14 from sklearn.base import clone
15
---> 16 from atom.atom import ATOM
17 from atom.basetransformer import BaseTransformer
18 from atom.utils import INT, SCALAR, SEQUENCE, TARGET, Predictor

~\atom\atom.py in
22 from sklearn.utils.metaestimators import available_if
23
---> 24 from atom.baserunner import BaseRunner
25 from atom.basetransformer import BaseTransformer
26 from atom.branch import Branch

~\atom\baserunner.py in
21 from sklearn.utils.metaestimators import available_if
22
---> 23 from atom.basemodel import BaseModel
24 from atom.basetracker import BaseTracker
25 from atom.basetransformer import BaseTransformer

~\atom\basemodel.py in
21
22 import dill as pickle
---> 23 import mlflow
24 import numpy as np
25 import pandas as pd

ModuleNotFoundError: No module named 'mlflow'

from atom.

tvdboom avatar tvdboom commented on May 18, 2024

oke, in this case you are missing some dependencies. are you sure you installed atom in the same environment your kernel is on? could you try and reinstall atom again and see if the output changed? or just install mlflow separately.

from atom.

Selphie14100 avatar Selphie14100 commented on May 18, 2024

I'm new at this but as I can install other packages happily and I'm getting errors with this one is the problem more likely to be with the package in some way? I'm not keen on putting directories and files all over the place. I'm trying to keep it tidy in virtual environments.

from atom.

Selphie14100 avatar Selphie14100 commented on May 18, 2024

I have tried installing it in another virtual environment by itself and got
~\atom\utils.py in
28
29 import mlflow
---> 30 import modin.pandas as md
31 import numpy as np
32 import pandas as pd

ModuleNotFoundError: No module named 'modin'

from atom.

tvdboom avatar tvdboom commented on May 18, 2024

are you using pip or conda? In the new env the error is clear. you are missing the modin package, which is a dependency of atom. The question is why isn't it being installed with the package. I tried it myself in a new virtual env and it works fine, so I am not sure it's the package

from atom.

Selphie14100 avatar Selphie14100 commented on May 18, 2024

I've been using pip rather than conda

from atom.

Selphie14100 avatar Selphie14100 commented on May 18, 2024

Tried with conda
(basicai) C:\Users\User>conda config --set channel_priority strict

(basicai) C:\Users\User>conda install atom-ml
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  • atom-ml

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

from atom.

tvdboom avatar tvdboom commented on May 18, 2024

you need to use conda install -c conda-forge atom-ml. But still, it should work with pip. It looks to me that the issue is related to environments. I think you didn't install atom in the same env as your kernel is running. That's why, when you import atom from the directory you copy pasted, it misses some dependencies.

from atom.

Selphie14100 avatar Selphie14100 commented on May 18, 2024

Agreed there is something environmental going on.. However I've got it running on Google Colab so all Good!!! Thank you for your help. This can be closed as far as I am concerned

from atom.

tvdboom avatar tvdboom commented on May 18, 2024

alright. don't hesitate to open a new issue if something else arises

from atom.

Related Issues (18)

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.