alievk / avatarify-python

Avatars for Zoom, Skype and other video-conferencing apps.
Other
16.29k stars 4.08k forks source link

ModuleNotFoundError: No module named 'modules' #198

Open jeffrywu28 opened 4 years ago

jeffrywu28 commented 4 years ago

Traceback (most recent call last): File "afy/cam_fomm.py", line 175, in from afy import predictor_local File "C:\Users\MyComputer\avatarify\afy\predictor_local.py", line 4, in from modules.keypoint_detector import KPDetector ModuleNotFoundError: No module named 'modules'

jamjs98764 commented 4 years ago

Same I got this as well. Seems like it is expecting a "modules" directory in avatarify/afy?

GiuseppeGiacoppo commented 4 years ago

Do you have fommdir inside scriptsdir? Try to move it to avatarifydir

jeffrywu28 commented 4 years ago

Do you have fommdir inside scriptsdir? Try to move it to avatarifydir

No i dont have

GiuseppeGiacoppo commented 4 years ago

Then I suppose you need to check why the script didn't download the fomm project. It's downloaded with git clone command in install script

alievk commented 4 years ago

This issue usually arises from two things:

  1. You didn't install git.
  2. You installed git but Anaconda prompt can't find it for some reason. Try to run gitin the prompt to find this out.
jamjs98764 commented 4 years ago

My Anaconda environment is able to find git so I am not sure why it isnt working. There doesnt seem to be the "fomm" directory in the master branch as well. Is that a potential reason?

jeffrywu28 commented 4 years ago

Here my capture... Untitled

jeffrywu28 commented 4 years ago

This issue usually arises from two things:

  1. You didn't install git.
  2. You installed git but Anaconda prompt can't find it for some reason. Try to run gitin the prompt to find this out.

i have re-install avatarify 3 times, in windows 2 times with same error. the last one i install it at my linux (first try it can run, but second try they are error with different line)

Yorktech commented 4 years ago

I had this error, so I reran a clean install and then I had the yaml module not found error I ran these commands pip install pyyaml pip install requests pip install cv2 pip install scipy pip install face_alignment pip install sklearn pip install pandas I also copied the 7 files from the modules folder into the fomm folder.

This now works

jamjs98764 commented 4 years ago

After running "scripts/install_windows.bat", my avatarify virtual env loses git. And I see the following conflicting messages. I think the .bat file recreates the avatarify virtual env without git so git clone fails. Anyway I can go around this?

image

I've tried copying the modules files from https://github.com/AliaksandrSiarohin/first-order-model but his version of OcclusionAwareGenerator does not have "encode_source".

sudoRhaToyz commented 4 years ago

please help me out i am having issue running avatarify

Traceback (most recent call last): File "afy/cam_fomm.py", line 4 in import yaml ModuleNotFoundError: No module named 'yaml'

jamjs98764 commented 4 years ago

please help me out i am having issue running avatarify

Traceback (most recent call last): File "afy/cam_fomm.py", line 4 in import yaml ModuleNotFoundError: No module named 'yaml'

You can check whether your git is installed properly noting that the .bat files are creating a virtual environment. In my case, all virtual environments don't come with git by default. So I had to open the .bat files as text and added "conda install -c anaconda git" after "conda activate avatarify"

sudoRhaToyz commented 4 years ago

please help me out i am having issue running avatarify Traceback (most recent call last): File "afy/cam_fomm.py", line 4 in import yaml ModuleNotFoundError: No module named 'yaml'

You can check whether your git is installed properly noting that the .bat files are creating a virtual environment. In my case, all virtual environments don't come with git by default. So I had to open the .bat files as text and added "conda install -c anaconda git" after "conda activate avatarify"

@jamjs98764 thanks so much for replying but i have tried again but still same issue

vuexiaob commented 4 years ago

modules在fomm文件夹中,可以把整个modules文件拷贝到afy文件夹即可

PuvShur commented 3 years ago

hello after fixing all these bugs I got another " File "afy/cam_fomm.py", line 75, in load_images if img.ndim == 2: AttributeError: 'NoneType' object has no attribute 'ndim'" can anyone help me

JohanAR commented 3 years ago

@PuvShur how did you fix this error, i.e. "No module named 'modules'"? I'm trying to figure out if this still exists or if it can be closed. Regarding your new error, I guess you might have a broken image in the avatars folder. I'm adding a check to the code so that it doesn't crash when this happens #345

PuvShur commented 3 years ago

@JohanAR, when installing avatarify, I downloaded something to the fomm folder, I created a modules folder in the C: \ Users \ **** \ miniconda3 directory and copied this folder and its contents there

Erik1346 commented 2 years ago

I have an issue no module name request I don't know how to fix it

vuexiaob commented 2 years ago

您好,您的来信已收到,谢谢!

gjshegz1 commented 1 year ago

Pip cv2 refused to install

vuexiaob commented 1 year ago

您好,您的来信已收到,谢谢!

gjshegz1 commented 1 year ago

Please how do I fix this On Fri, Dec 16, 2022 at 4:40 PM vuexiaob @.***> wrote:

您好,您的来信已收到,谢谢!

— Reply to this email directly, view it on GitHub https://github.com/alievk/avatarify-python/issues/198#issuecomment-1355098820, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4ZE6BCWFNW4T35EP635UPTWNSENHANCNFSM4NR2Q5SA . You are receiving this because you commented.Message ID: @.***>

badmuspro commented 1 year ago

E8B625E1-06A5-46C4-A67E-5110616C974B This is what I got when I run_windows.bat please help

nuelljune commented 1 year ago

E8B625E1-06A5-46C4-A67E-5110616C974B This is what I got when I run_windows.bat please help

did you get help for this? im also stuck here

vuexiaob commented 1 year ago

您好,您的来信已收到,谢谢!

goldddd244 commented 1 year ago

hello, pls am stuck here (avatarify) C:\Users\HP\avatarify-python>run_windows.bat [1675832575.880838] Loading Predictor Traceback (most recent call last): File "afy/cam_fomm.py", line 216, in from afy import predictor_local File "C:\Users\HP\avatarify-python\afy\predictor_local.py", line 4, in from modules.keypoint_detector import KPDetect

gjshegz1 commented 1 year ago

Just start over with this method https://github.com/technopremium/avatarify-python-youtube/blob/master/README.md

if it works please let me know

Timily01 commented 1 year ago

Someone should assist me pls...no module named modules found IMG_20230211_180701_7

danzil676 commented 1 year ago

I had this error, so I reran a clean install and then I had the yaml module not found error I ran these commands pip install pyyaml pip install requests pip install cv2 pip install scipy pip install face_alignment pip install sklearn pip install pandas I also copied the 7 files from the modules folder into the fomm folder.

This now works

decided to try this solution and got to install cv2 but keep showing this below

(avatarify) C:\Users\PHAVOUR OTF\avatarify-python>pip install cv2 ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none) ERROR: No matching distribution found for cv2

did you specify any version when installing cv2?

vuexiaob commented 1 year ago

您好,您的来信已收到,谢谢!

danzil676 commented 1 year ago

modules在fomm文件夹中,可以把整个modules文件拷贝到afy文件夹即可

找不到 fomm 文件夹或模块,我知道这是因为 scripts\run_windows.bat 没有下载到最后,我该如何纠正? 请需要一些帮助

lewis30adams commented 1 year ago

having same issues here

vuexiaob commented 1 year ago

您好,您的来信已收到,谢谢!

lewis30adams commented 1 year ago

ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none) ERROR: No matching distribution found for cv2

lewis30adams commented 1 year ago

@vuexiaob i cant understand you, could you help me with translation

JohanAR commented 1 year ago

@lewis30adams I put it into google translate, appears to be some kind of auto-reply just saying the message has been received.

lewis30adams commented 1 year ago

On Tue, May 2, 2023 at 6:21 PM Johan @.***> wrote:

@lewis30adams https://github.com/lewis30adams I put it into google translate, appears to be some kind of auto-reply just saying the message has been received.

— Reply to this email directly, view it on GitHub https://github.com/alievk/avatarify-python/issues/198#issuecomment-1531857914, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6Z5EJW2HUXY7PAXHDMFOJLXEE675ANCNFSM4NR2Q5SA . You are receiving this because you were mentioned.Message ID: @.***>

Please do you know how I could get my software installed without errors

iam6ix commented 1 year ago

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

please do something about this

emmaezeiru commented 1 year ago

where did you get the modules files

vuexiaob commented 1 year ago

您好,您的来信已收到,谢谢!

abc906093117 commented 1 year ago

I found the reason why, it's because the scripts/install_windows.bat file was not executed successfully. Please go to the 'avatarify-python' directory and execute the git command 'git clone https://github.com/alievk/first-order-model.git fomm' to solve the problem. Please note that my installation method mainly refers to #573 image

vuexiaob commented 1 year ago

您好,您的来信已收到,谢谢!

tobatosin commented 1 year ago

File "cam_fomm.py", line 16, in import normalize_kp ModuleNotFoundError: No module named 'normalize_kp'

pls how do i solve this

vuexiaob commented 1 year ago

您好,您的来信已收到,谢谢!

SanPatrick01 commented 1 year ago

Type in English... church YouTube for my video

Brownlyn-Codelabs commented 10 months ago

Get your installation, easy step by step tutorial here. anyDesk or come in person. call 0552366834 or whatsapp. Thank you. avatarify, DeepFake, Voice cloning. all here.