Giter Club home page Giter Club logo

Comments (7)

lucasbissaro avatar lucasbissaro commented on May 22, 2024 3

I had this problem and found out that my file was named autokeras.py, so when I imported the lib, I was actually importing my own file. Changing the file name solved the problem.

from autokeras.

jrenouard avatar jrenouard commented on May 22, 2024

Hey,
I get pretty much the same issue with the first example on MacOSX 10.12
I installed autokeras via a pip3 install autokerasand my python version is a fresh 3.6 from python.org

When I try to run the very first example I get this error:

Traceback (most recent call last):
  File "autokeras.py", line 1, in <module>
    import autokeras as ak
  File "/Users/julien/travail/python/autokeras.py", line 3, in <module>
    clf = ak.ImageClassifier()
AttributeError: module 'autokeras' has no attribute 'ImageClassifier'

from autokeras.

haifeng-jin avatar haifeng-jin commented on May 22, 2024

@jrenouard
Thank you for your report but we really cannot reproduce the error.
Would you use "python3 -m pip install autokeras" to install, and use "python3" to run the mnist.py?
So that it can make sure the package is installed for the same interpreter you use to run the script.
Thanks.

from autokeras.

abhisingh007224 avatar abhisingh007224 commented on May 22, 2024

I followed your steps but still getting the same eroor

from autokeras.

albert-92 avatar albert-92 commented on May 22, 2024

I'm getting the same error AttributeError: module 'autokeras' has no attribute 'ImageClassifier' on Ubuntu 18.04.

On Windows 10 it works just fine.

I tried pip3 install autokeras and python3 -m pip install autokeras.

from autokeras.

abhisingh007224 avatar abhisingh007224 commented on May 22, 2024

But in Mac it is still showing error

from autokeras.

haifeng-jin avatar haifeng-jin commented on May 22, 2024

hi @albert-92 @abhisingh007224 , I really cannot reproduce this error. Maybe it is related to the conda environment?

Would you please run the following script with the same python interpreter and paste the output here?
Thank you for your help!

import sys
print(sys.version)
import pkg_resources
pkg_resources.get_distribution("autokeras").version
import autokeras
print(autokeras.__dict__)

from autokeras.

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.