Code Monkey home page Code Monkey logo

Comments (9)

Rubiel1 avatar Rubiel1 commented on June 19, 2024 1

Hi,

Take a look at this two links adding a init file and what to put on the init file

I added $ __init__.py$ files to their folders, and to use the dot notation I wrote
`` `from .implementation import * ``` on the init file of the folder funsearch.

From outside of the folder funsearch I can do:

from funsearch.implementation import programs_database_test as test and it gives me no problem.

Also, I renamed the funsearch.py file to fun_search.py (but this may not be necessary).

I originally solved it here in this post

from funsearch.

Rubiel1 avatar Rubiel1 commented on June 19, 2024 1

@psikosen did you also try what @HJ9412 suggested?

@pwnedzen this is a slightly different error message. Can you try what @HJ9412 suggested?

from funsearch.

psikosen avatar psikosen commented on June 19, 2024

@Rubiel1 I really appreciate your help. I tried this and I am still running into the same issues . Could you possibly send me or upload the repo with your changes if possible ?

from funsearch.

Rubiel1 avatar Rubiel1 commented on June 19, 2024

Just to confirm:

  1. you added two init files, one on the implementation folder (and the file was empty), and
  2. one on the funsearch folder (and the file contains the line from .implementation import *).
  3. And you modified the name of the file funsearch.py to fun_search.py

And you still got the exactly same error

from funsearch.

pwnedzen avatar pwnedzen commented on June 19, 2024

Just to confirm:

  1. you added two init files, one on the implementation folder (and the file was empty), and
  2. one on the funsearch folder (and the file contains the line from .implementation import *).
  3. And you modified the name of the file funsearch.py to fun_search.py

And you still got the exactly same error

I can confirm, I still get the same error

    from funsearch.implementation import code_manipulation
ModuleNotFoundError: No module named 'funsearch' 

from funsearch.

HJ9412 avatar HJ9412 commented on June 19, 2024

Move your funsearch folder to the implementation folder.
Or you may copy everything in the implementation folder to one step up.

from funsearch.

psikosen avatar psikosen commented on June 19, 2024

@Rubiel1 Yes, after doing all of that, I still get the same error.

from funsearch.

psikosen avatar psikosen commented on June 19, 2024

@Rubiel1 Thanks I got it !

from funsearch.

pwnedzen avatar pwnedzen commented on June 19, 2024

@psikosen did you also try what @HJ9412 suggested?

@pwnedzen this is a slightly different error message. Can you try what @HJ9412 suggested?

I just tried what @HJ9412 suggested, and it is now working. Thanks @Rubiel1 and @HJ9412!

from funsearch.

Related Issues (4)

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.