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

Module not found error #691

Open
Samaybobo opened this issue Dec 23, 2023 · 26 comments
Open

Module not found error #691

Samaybobo opened this issue Dec 23, 2023 · 26 comments

Comments

@Samaybobo
Copy link

(avatarify) C:\Users\LAMAR\avatarify-python>run_windows.bat
[1703360958.695988] Loading Predictor
Traceback (most recent call last):
File "afy/cam_fomm.py", line 216, in
from afy import predictor_local
File "C:\Users\LAMAR\avatarify-python\afy\predictor_local.py", line 4, in
from modules.keypoint_detector import KPDetector
ModuleNotFoundError: No module named 'modules'

@Lilneo786
Copy link

You may need to install missing modules using pip if they are not already installed. You can use the following command to install packages:

pip install package_name
install the required packages for the 'avatarify' project.

make sure configs are right for our python script, especially if it relies on relative imports or specific directory structures.

Verify that the 'modules/keypoint_detector.py' file or module actually exists in the 'modules' directory.

@Samaybobo
Copy link
Author

pip install package_name

it didnt work

@Lilneo786
Copy link

it may be helpful to share more details about the project structure and dependencies, as well as the relevant portions of the code within 'predictor_local.py' and 'keypoint_detector.py'. This information can assist in diagnosing the problem more accurately.

@Samaybobo
Copy link
Author

from modules.keypoint_detector import KPDetector
from modules.generator_optim import OcclusionAwareGenerator
from sync_batchnorm import DataParallelWithCallback
import numpy as np

else:
from afy import predictor_local
predictor = predictor_local.PredictorLocal(
**predictor_args
)

@Lilneo786
Copy link

you're trying to import the 'KPDetector' and 'OcclusionAwareGenerator' classes from the 'modules' package, but you're also attempting to import 'predictor_local' from 'afy' based on some condition. However, there is a slight issue with the structure of your code.

from modules.keypoint_detector import KPDetector
from modules.generator_optim import OcclusionAwareGenerator
from sync_batchnorm import DataParallelWithCallback
import numpy as np

# Check some condition
if some_condition:
    from afy import predictor_local
    predictor = predictor_local.PredictorLocal(**predictor_args)
else:
    # Continue with other code if the condition is not met
    # Your code here

Make sure to replace some_condition with your actual condition that determines whether to import 'predictor_local'.
Let me know if this fixes it

@Samaybobo
Copy link
Author

pls im not really good in coding, i dont understand any code im just trying to use the software......but ill appreciate if you can assist me further outside this platform so that i can share my screen with you can just assist

@Lilneo786
Copy link

I'm sorry I won't be able to help outside of Github

@Samaybobo
Copy link
Author

so what will i do now?

@Lilneo786
Copy link

maybe somebody else here can help. im sorry once again

@Samaybobo
Copy link
Author

alright, thanks, i appreciate

@SanPatrick01
Copy link

Download anydesk and share thr address on it

@Samaybobo
Copy link
Author

106251575

@Samaybobo
Copy link
Author

im online now

@Samaybobo
Copy link
Author

lifeofthegoat this is my reddit username lets talk there

@Mohammedsagito
Copy link

am also facing same issue can you please help me out..

@Mohammedsagito
Copy link

1727257002 please this my anydesk id as well

@SanPatrick01
Copy link

‪+234 811 513 3627‬

Send to my whatsappp so we won't miss time please

@SanPatrick01
Copy link

image

@Mohammedsagito
Copy link

Mohammedsagito commented Dec 27, 2023 via email

@Updatedme
Copy link

(avatarify) C:\Users\LAMAR\avatarify-python>run_windows.bat
[1703360958.695988] Loading Predictor
Traceback (most recent call last):
File "afy/cam_fomm.py", line 216, in
from afy import predictor_local
File "C:\Users\LAMAR\avatarify-python\afy\predictor_local.py", line 4, in
from modules.keypoint_detector import KPDetector
ModuleNotFoundError: No module named 'modules'

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact
https://wa.me/message/GXQYWX4XRTXGB1

@Updatedme
Copy link

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact
https://wa.me/message/GXQYWX4XRTXGB1

@Updatedme
Copy link

1727257002 please this my anydesk id as well

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact
https://wa.me/message/GXQYWX4XRTXGB1

@Updatedme
Copy link

am also facing same issue can you please help me out..

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact
https://wa.me/message/GXQYWX4XRTXGB1

1 similar comment
@Updatedme
Copy link

am also facing same issue can you please help me out..

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact
https://wa.me/message/GXQYWX4XRTXGB1

@Updatedme
Copy link

lifeofthegoat this is my reddit username lets talk there

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact
https://wa.me/message/GXQYWX4XRTXGB1

@Morten202
Copy link

1727257002 please this my anydesk id as well

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact https://wa.me/message/GXQYWX4XRTXGB1

If anyone ever deal with this guy na scammer... don't ever deal or send money to him. he don't know anything.

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

6 participants