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

ModuleNotFoundError: No module named 'yaml' #199

Closed
fazelukario opened this issue Jun 3, 2020 · 36 comments
Closed

ModuleNotFoundError: No module named 'yaml' #199

fazelukario opened this issue Jun 3, 2020 · 36 comments

Comments

@fazelukario
Copy link

(base) E:\avatarify>run_windows.bat --is-client --in-addr tcp://2.tcp.eu.ngrok.io:10176 --out-addr tcp://0.tcp.eu.ngrok.io:12257
Traceback (most recent call last):
File "afy/cam_fomm.py", line 4, in
import yaml
ModuleNotFoundError: No module named 'yaml'

@alievk
Copy link
Owner

alievk commented Jun 4, 2020

Any errors during installation?

@Yorktech
Copy link

Yorktech commented Jun 4, 2020

I had this error too. I did the following

pip install pyyaml
pip install requests
pip install cv2
pip install scipy
pip install face_alignment
pip install sklearn
pip install pandas

And then all was well

@schapsis
Copy link

schapsis commented Jun 5, 2020

Same problem here - @Yorktech solution didn't work -
\avatarify>call python afy/cam_fomm.py --config fomm/config/vox-adv-256.yaml --relative --adapt_scale --no-pad --checkpoint vox-adv-cpk.pth.tar --is-client --in-addr tcp://0.tcp.ngrok.io:14762 --out-addr tcp://0.tcp.ngrok.io:14704
Traceback (most recent call last):
File "afy/cam_fomm.py", line 4, in
import yaml
ModuleNotFoundError: No module named 'yaml'

@alievk
Copy link
Owner

alievk commented Jun 7, 2020

This errors usually arise from conda environment not properly set up.
What if you open Miniconda prompt and type:

conda activate avatarify
python -c 'import yaml'

@schapsis
Copy link

schapsis commented Jun 9, 2020

This is what I see
avatarify> python -c 'import yaml'
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'yaml'

@alievk
Copy link
Owner

alievk commented Jun 9, 2020

This is weird. Try

conda activate avatarify
pip install -r requirements.txt

@RajDeora
Copy link

I just keep getting this
Could not find conda environment: avatarify
You can list all discoverable environments with conda info --envs.

@RajDeora
Copy link

pip install cv2

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

@RajDeora
Copy link

now I'm getting an error saying no module named zmq found

@alievk
Copy link
Owner

alievk commented Jun 12, 2020

@RajDeora It means you didn't install the conda environment. Please look at the installation output carefully, there should be an error.

@hdihribejdbdib
Copy link

Hi, I installed this program on Kali Linux

(base) ┌──(root@root)-[/home/linux/avatarify]
└─# bash run.sh
[1617107389.867889] Loading Predictor
run.sh: line 151: 1905 Killed python afy/cam_fomm.py --config $FOMM_CONFIG --checkpoint $FOMM_CKPT --virt-cam $CAMID_VIRT --relative --adapt_scale $@

                                        But I get this error when running            

(base) ┌──(root@root)-[/home/linux/avatarify]
└─# python afy/cam_fomm.py --config

Traceback (most recent call last):
File "/home/linux/avatarify/afy/cam_fomm.py", line 11, in
from afy.videocaptureasync import VideoCaptureAsync
ModuleNotFoundError: No module named 'afy'

(base) ┌──(root@linux)-[/home/linux/avatarify]
└─#

This module is in the file, but still gives this error

@JohanAR
Copy link
Collaborator

JohanAR commented Apr 6, 2021

@hdihribejdbdib make sure you follow the instructions for how to install and run avatarify-python

@Kingso42
Copy link

traceback (most recent call last):
File "afy/cam_fomm.py", line 9, in ‹module›
import cv?
Modul eNotFoundError: No module named 'cv2'

@Kingso42
Copy link

Please what can I do ?

@geekedpriest
Copy link

  • Is Avatarify working now, please I need some help, been trying to install it but I'm stuck image

@Kingburger104
Copy link

Mine is not really working out as well it say the same thing also

@Kingburger104
Copy link

Uploading image.jpg…

@jones1447
Copy link

[ ] Is Avatarify working now, please I need some help, been trying to install it but I'm stuck image

Hello do this or hmu on WhatsApp to fix ‪+234 907 273 1453‬

@jones1447
Copy link

[ ] Is Avatarify working now, please I need some help, been trying to install it but I'm stuck image

Import all the pips and also in the environment variable at control panel change the onedrive to only one input

@songjoongki1300
Copy link

Details

@danzil676
Copy link

This is weird. Try

conda activate avatarify
pip install -r requirements.txt

This is weird. Try

conda activate avatarify
pip install -r requirements.txt

did the run_windowns.bat after successful installation but showing, need help pls

C:\Users\PHAVOUR OTF\avatarify-python>run_windows.bat
[1680774538.474808] Loading Predictor
Traceback (most recent call last):
File "afy/cam_fomm.py", line 216, in
from afy import predictor_local
File "C:\Users\PHAVOUR OTF\avatarify-python\afy\predictor_local.py", line 8, in
import face_alignment
File "C:\Users\PHAVOUR OTF.conda\envs\avatarify\lib\site-packages\face_alignment_init_.py", line 7, in
from .api import FaceAlignment, LandmarksType, NetworkSize
File "C:\Users\PHAVOUR OTF.conda\envs\avatarify\lib\site-packages\face_alignment\api.py", line 3, in
from skimage import io
File "C:\Users\PHAVOUR OTF.conda\envs\avatarify\lib\site-packages\skimage_shared\lazy.py", line 62, in getattr
return importlib.import_module(f'{package_name}.{name}')
File "C:\Users\PHAVOUR OTF.conda\envs\avatarify\lib\importlib_init_.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\PHAVOUR OTF.conda\envs\avatarify\lib\site-packages\skimage\io_init
.py", line 7, in
from .manage_plugins import *
File "C:\Users\PHAVOUR OTF.conda\envs\avatarify\lib\site-packages\skimage\io\manage_plugins.py", line 23, in
from .collection import imread_collection_wrapper
File "C:\Users\PHAVOUR OTF.conda\envs\avatarify\lib\site-packages\skimage\io\collection.py", line 12, in
from PIL import Image, version as pil_version
File "C:\Users\PHAVOUR OTF.conda\envs\avatarify\lib\site-packages\PIL\Image.py", line 100, in
from . import _imaging as core
ImportError: DLL load failed: The specified module could not be found.

(avatarify) C:\Users\PHAVOUR OTF\avatarify-python>

@askimono23
Copy link

I had this error too. I did the following

pip install pyyaml pip install requests pip install cv2 pip install scipy pip install face_alignment pip install sklearn pip install pandas

And then all was well

all out once or one after the others

@Musicfansforlife
Copy link

This is what am getting when installing i spent 2 two days try different methods and my system config is GeForce 3080Ti 12th Gen Intel Core i9

please i need this

Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: -

@JohanAR
Copy link
Collaborator

JohanAR commented Jun 1, 2023

@Musicfansforlife out of curiosity, what makes you say that you "need" avatarify? Do you mean that you have a business use for it?

Also I'm pretty sure there is an issue report for getting stuck on "solving environment", you might want to check that one out instead of commenting on a closed report about a completely different issue :)

@stanleyotf
Copy link

stanleyotf commented Jun 1, 2023 via email

@Musicfansforlife
Copy link

am stuck on solving environment during installation

@Musicfansforlife
Copy link

am talking about avatarify

@stanleyotf
Copy link

stanleyotf commented Jun 1, 2023 via email

@veragreg
Copy link

veragreg commented Jun 3, 2023

Who is this

Better alternative is DEEPFAKE, I CAN HELP TO INSTALL IT

On Thu, Jun 1, 2023, 4:54 PM Musicfansforlife @.> wrote: am talking about avatarify — Reply to this email directly, view it on GitHub <#199 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7LXOYNQEHVWLQHLWLDWISDXJC3MXANCNFSM4NSBXLWA . You are receiving this because you commented.Message ID: @.>

WHO THE HELL IS THIS YOU CANT COMPARE DEEPFAKE TO AVARTARIFY ARE YOU OKAY BRO?

@songjoongki1300
Copy link

songjoongki1300 commented Jun 4, 2023 via email

@joedicks911
Copy link

IMG-20231011-WA0015.jpg

Please, how do I fix this ?

@SanPatrick01
Copy link

Colab Avatarify installation on CPU laptops
https://youtu.be/gfPs3tiXYOk

@skixmr
Copy link

skixmr commented Oct 22, 2023

Do you to install DEEPFAKE?

On Thu, Jun 1, 2023, 3:18 PM Johan @.> wrote: @Musicfansforlife https://github.com/Musicfansforlife out of curiosity, what makes you say that you "need" avatarify? Do you mean that you have a business use for it? Also I'm pretty sure there is an issue report for getting stuck on "solving environment", you might want to check that one out instead of commenting on a closed report about a completely different issue :) — Reply to this email directly, view it on GitHub <#199 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7LXOYIWWHG2LOSUA23T4FDXJCQCHANCNFSM4NSBXLWA . You are receiving this because you are subscribed to this thread.Message ID: @.>

I'd want to.

@SanPatrick01
Copy link

Yes I do
But nah if your laptop meet the requirements and I will love to explain how it works too

Connect with me on WhatsApp

‪+234 811 513 3627‬

@Kingburger104
Copy link

Kingburger104 commented Oct 24, 2023 via email

@skixmr
Copy link

skixmr commented Oct 24, 2023

hmu on sc dawg
playmaker.xmr
Thanks man

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