Giter Club home page Giter Club logo

Comments (8)

JanaMi99 avatar JanaMi99 commented on May 17, 2024 4

@oren1k Hi, I had the same issue. Just replace from regression import HungaBungaRegressor with from .regression import HungaBungaRegressor in __init__.py. Do the same for all local file imports (classification in __init__.py, core and params in classification.py and regression.py)

from hungabunga.

danpol avatar danpol commented on May 17, 2024

PR #8 should resolve the issue :)

from hungabunga.

henaraihan avatar henaraihan commented on May 17, 2024

I was getting the same error. Using the above solution, it worked fine but now I am getting another error:
5
C:\Users.....\lib\site-packages\hunga_bunga_init_.py in ()
4 from multiprocessing import cpu_count
5 from sklearn.base import BaseEstimator
----> 6 from regression import HungaBungaRegressor
7 from classification import HungaBungaClassifier
8
C:\Users......\site-packages\hunga_bunga\regression.py in ()
20
21
---> 22 from .core import *
23 from .params import *
24
SystemError: Parent module '' not loaded, cannot perform relative import

from hungabunga.

danpol avatar danpol commented on May 17, 2024

I think you should remove pip version (pip uninstall hunga-bunga) and install the package again from source (python setup.py install).

from hungabunga.

alxgal avatar alxgal commented on May 17, 2024

Hi,
I pulled PR#8 and manually installed hunga_bunga via python setup.py install as described.
However, I still get the ModuleNotFoundError: No module named 'hunga_bunga'
I tried to pip install hunga-bunga again and got the message that the requirements are already satisfied for hunga-bunga.
I now have the file "hunga_bunga-0.1-py3.7.egg" in my python site-packages directory.
Any ideas on how to solve this?
Thanks in advance!

from hungabunga.

danpol avatar danpol commented on May 17, 2024

Ok, I played with this repo a bit—it contains an enormous amount of bugs. I'll close PR#8 not to give hope that it solves all problems :)

from hungabunga.

AbdullahKeteldijk avatar AbdullahKeteldijk commented on May 17, 2024

You should change the line to:

from hunga_bunga.regression import HungaBungaRegressor

You should repeat that multiple times for all occurrences of that error and you should probably also pip install tabulate.

from hungabunga.

kennedykwangari avatar kennedykwangari commented on May 17, 2024

Tried all the options explained above but still facing the same error while importing.

from regression import HungaBungaRegressor

ModuleNotFoundError: No module named 'regression'

from hungabunga.

Related Issues (13)

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.