funsearch
funsearch copied to clipboard
No module named 'funsearch implementation'; 'funsearch' is not a package
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
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
@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 ?
Just to confirm:
- you added two init files, one on the implementation folder (and the file was empty), and
- one on the funsearch folder (and the file contains the line
from .implementation import *). - And you modified the name of the file funsearch.py to fun_search.py
And you still got the exactly same error
Just to confirm:
- you added two init files, one on the implementation folder (and the file was empty), and
- one on the funsearch folder (and the file contains the line
from .implementation import *).- 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'
Move your funsearch folder to the implementation folder. Or you may copy everything in the implementation folder to one step up.
@Rubiel1 Yes, after doing all of that, I still get the same error.
@psikosen did you also try what @HJ9412 suggested?
@pwnedzen this is a slightly different error message. Can you try what @HJ9412 suggested?
@Rubiel1 Thanks I got it !
@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!
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 ?
Hello, I have been trying to setup funsearch on my local as well but have been facing the same issue. Could you please assist me with the same? I have tried placing two init files as suggested earlier and even tried eliminating the implementation folder altogether, just keeping all the code under the funsearch folder but still face the same issue.