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

executing in windows cmd #58

Open
fersegundo2 opened this issue May 29, 2024 · 3 comments
Open

executing in windows cmd #58

fersegundo2 opened this issue May 29, 2024 · 3 comments

Comments

@fersegundo2
Copy link

fersegundo2 commented May 29, 2024

I have limited technical knowledge

I installed correctly in a cmd in windows (I run it as admin)

after that "deface" is not recognized as a command. Maybe its as easy as setting some directory to PATH (or alternatively typing the whole path to where it is).

I tried "pip where deface" ... says its not there

I know it was installed to: "C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface"

I tried getting into this directory and typing "deface". It also does not find it

then I tried " python3 deface.py" this is the output:

PS C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface> python3 deface.py D:\Downloads\villalba.mp4
Traceback (most recent call last):
File "C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface\deface.py", line 17, in
from deface import version
File "C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface\deface.py", line 17, in
from deface import version
ImportError: cannot import name 'version' from partially initialized module 'deface' (most likely due to a circular import) (C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface\deface.py)
PS C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface>

I don't know what else to try on windows. I will try to install a virtual ubuntu and try there, but it would be nice if there was a fool-proof way to easily use this tool in windows

Thank you for your efforts!

@StealUrKill
Copy link

What python are you using. Your directory looks way different than mine and the package works flawless.

@Dissociable
Copy link

@fersegundo2 You may be using pyenv, if so, execute pyenv rehash and you're good to go (deface file.mp4)

Also, I noticed that I need to install rembg[gpu] so deface can use the GPU without errors (pip install rembg[gpu] onnx onnxruntime-gpu)

@StealUrKill You may want to add rembg[gpu] to the readme file, thanks.

@StealUrKill
Copy link

@fersegundo2 You may be using pyenv, if so, execute pyenv rehash and you're good to go (deface file.mp4)

Also, I noticed that I need to install rembg[gpu] so deface can use the GPU without errors (pip install rembg[gpu] onnx onnxruntime-gpu)

@StealUrKill You may want to add rembg[gpu] to the readme file, thanks.

I am not familiar with rembg[gpu]. Using pip install onnxruntime-gpu has worked fine for me.

And do you mean the readme on my forked version? I am not the original creator/maintainer for deface.

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

3 participants