Skip to content

executing in windows cmd #58

Description

@fersegundo2

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!

Activity

  1. StealUrKill commented on Sep 6, 2024

    @StealUrKill

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

  2. Dissociable commented on Nov 7, 2024

    @Dissociable

    @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.

  3. StealUrKill commented on Nov 7, 2024

    @StealUrKill

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions