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

ImportError: Module use of python311.dll conflicts with this version of Python. #231

Closed
rpr13 opened this issue Nov 3, 2023 · 4 comments
Labels
stale Stale issue or inactive for long period of time

Comments

@rpr13
Copy link

rpr13 commented Nov 3, 2023

Cannot add sd-webui

Unpacking resources
Unpacking resources
Download complete!
Download Complete
created virtual environment CPython3.10.11.final.0-64 in 1182ms

  creator CPython3Windows(dest=D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv, clear=False, no_vcs_ignore=False, global=False)

  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\rpr\AppData\Local\pypa\virtualenv)

    added seed packages: pip==23.3.1, setuptools==68.2.2, wheel==0.41.2

  activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

Traceback (most recent call last):

  File "runpy.py", line 196, in _run_module_as_main

  File "runpy.py", line 86, in _run_code

  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\__main__.py", line 22, in <module>

    from pip._internal.cli.main import main as _main

  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_internal\cli\main.py", line 10, in <module>

    from pip._internal.cli.autocompletion import autocomplete

  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in <module>

    from pip._internal.cli.main_parser import create_main_parser

  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_internal\cli\main_parser.py", line 9, in <module>

    from pip._internal.build_env import get_runnable_pip

  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_internal\build_env.py", line 15, in <module>

    from pip._vendor.packaging.requirements import Requirement

  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_vendor\packaging\requirements.py", line 10, in <module>

    from pip._vendor.pyparsing import (  # noqa

  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_vendor\pyparsing\__init__.py", line 130, in <module>

    from .exceptions import *

  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_vendor\pyparsing\exceptions.py", line 14, in <module>

    from .unicode import pyparsing_unicode as ppu

ImportError: Module use of python311.dll conflicts with this version of Python.

Error: StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 1: 'Traceback (most recent call last):\r\n  File "runpy.py", line 196, in _run_module_as_main\r\n  File "runpy.py", line 86, in _run_code\r\n  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\__main__.py", line 22, in <module>\r\n    from pip._internal.cli.main import main as _main\r\n  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_internal\cli\main.py", line 10, in <module>\r\n    from pip._internal.cli.autocompletion import autocomplete\r\n  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in <module>\r\n    from pip._internal.cli.main_parser import create_main_parser\r\n  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_internal\cli\main_parser.py", line 9, in <module>\r\n    from pip._internal.build_env import get_runnable_pip\r\n  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_internal\build_env.py", line 15, in <module>\r\n    from pip._vendor.packaging.requirements import Requirement\r\n  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_vendor\packaging\requirements.py", line 10, in <module>\r\n    from pip._vendor.pyparsing import (  # noqa\r\n  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_vendor\pyparsing\__init__.py", line 130, in <module>\r\n    from .exceptions import *\r\n  File "D:\Applications\StabilityMatrix\Data\Packages\Stable Diffusion WebUI\venv\lib\site-packages\pip\_vendor\pyparsing\exceptions.py", line 14, in <module>\r\n    from .unicode import pyparsing_unicode as ppu\r\nImportError: Module use of python311.dll conflicts with this version of Python.\r\n'
   at StabilityMatrix.Core.Python.PyVenvRunner.PipInstall(String args, Action`1 outputDataReceived)
   at StabilityMatrix.Core.Models.Packages.BasePackage.InstallCudaTorch(PyVenvRunner venvRunner, IProgress`1 progress, Action`1 onConsoleOutput)
   at StabilityMatrix.Core.Models.Packages.A3WebUI.InstallPackage(String installLocation, TorchVersion torchVersion, IProgress`1 progress, Action`1 onConsoleOutput)
   at StabilityMatrix.Core.Models.Packages.A3WebUI.InstallPackage(String installLocation, TorchVersion torchVersion, IProgress`1 progress, Action`1 onConsoleOutput)
   at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress`1 progress)
   at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IReadOnlyList`1 steps)
@rpr13
Copy link
Author

rpr13 commented Nov 17, 2023

It was related to pyenv for windows.
After removing pyenv and it's PATH everything working again.

@catshitz
Copy link

It was related to pyenv for windows. After removing pyenv and it's PATH everything working again.

but the vapoursynth for svp4 tensor rife won't work.

Copy link

This issue is stale because it has been open 30 days with no activity. Remove the stale label or comment, else this will be closed in 5 days.

@github-actions github-actions bot added the stale Stale issue or inactive for long period of time label Aug 23, 2024
Copy link

This issue was closed because it has been stale for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale issue or inactive for long period of time
Projects
None yet
Development

No branches or pull requests

2 participants