Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'funsearch implementation'; 'funsearch' is not a package #4

Open
psikosen opened this issue Jan 15, 2024 · 10 comments
Open

Comments

@psikosen
Copy link

psikosen commented Jan 15, 2024

Is the requirements file missing I keep getting implementation.funsearch is missing

Traceback (most recent call last): File /Users/user1/Documents/fun/funsearch/implementation/funsearch-py", line 20, in < module> from funsearch. implementation import code manipulation File "/Users/user1/Documents/fun/funsearch/implementation/funsearch.py", line 20, in ‹module> from funsearch. implementation import code_manipulation ModuleNotFoundError: No module named 'funsearch implementation'; 'funsearch' is not a package

@psikosen psikosen changed the title fun search is missing No module named 'funsearch implementation'; 'funsearch' is not a package Jan 15, 2024
@Rubiel1
Copy link

Rubiel1 commented Jan 16, 2024

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

@psikosen
Copy link
Author

psikosen commented Jan 16, 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 ?

@Rubiel1
Copy link

Rubiel1 commented Jan 17, 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

@pwnedzen
Copy link

pwnedzen commented Jan 17, 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' 

@HJ9412
Copy link

HJ9412 commented Jan 17, 2024

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

@psikosen
Copy link
Author

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

@Rubiel1
Copy link

Rubiel1 commented Jan 17, 2024

@psikosen did you also try what @HJ9412 suggested?

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

@psikosen
Copy link
Author

@Rubiel1 Thanks I got it !

@pwnedzen
Copy link

@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!

@HAFDIAHMED
Copy link

hello @psikosen and @Rubiel1 please guys i got the same issue also i followed all the steps from @Rubiel1 but still the same issue would any please write his own code worked ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants