diStyApps / VisionCrafter

Craft your visions
130 stars 9 forks source link

[Bug]: No module named 'PySimpleGUI' #28

Open meerpack opened 1 year ago

meerpack commented 1 year ago

Is there an existing issue for this?

Bug Description

see console log

Step-by-step instructions to reproduce the issue.

Installation error

Expected Behavior

Retryed installation multiples with all necessary requirements. I still receive this error.

Current Behavior

see console log

Version or Commit where the problem happens

install

What platforms do you use Visioncrafter ?

Windows

What Python version are you running on ?

python 3.11

What GPU are you running Visioncrafter on?

rtx 3060

How much GPU VRAM are you running Visioncrafter on?

16gb

Console logs

Building wheel for diffq (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for diffq (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [27 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\diffq
      copying diffq\base.py -> build\lib.win-amd64-cpython-311\diffq
      copying diffq\diffq.py -> build\lib.win-amd64-cpython-311\diffq
      copying diffq\lsq.py -> build\lib.win-amd64-cpython-311\diffq
      copying diffq\torch_pack.py -> build\lib.win-amd64-cpython-311\diffq
      copying diffq\ts_export.py -> build\lib.win-amd64-cpython-311\diffq
      copying diffq\uniform.py -> build\lib.win-amd64-cpython-311\diffq
      copying diffq\utils.py -> build\lib.win-amd64-cpython-311\diffq
      copying diffq\__init__.py -> build\lib.win-amd64-cpython-311\diffq
      running egg_info
      writing diffq.egg-info\PKG-INFO
      writing dependency_links to diffq.egg-info\dependency_links.txt
      writing requirements to diffq.egg-info\requires.txt
      writing top-level names to diffq.egg-info\top_level.txt
      reading manifest file 'diffq.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files found matching 'examples\cifar\outputs\**'
      adding license file 'LICENSE'
      writing manifest file 'diffq.egg-info\SOURCES.txt'
      running build_ext
      building 'diffq.bitpack' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for diffq
Failed to build diffq
ERROR: Could not build wheels for diffq, which is required to install pyproject.toml-based projects
Downloading stable-diffusion-v1-5
Cloning into 'repos\animatediff\models\StableDiffusion\stable-diffusion-v1-5'...
remote: Enumerating objects: 194, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 194 (delta 1), reused 4 (delta 0), pack-reused 187
Receiving objects: 100% (194/194), 540.94 KiB | 1.68 MiB/s, done.
Resolving deltas: 100% (67/67), done.
Filtering content: 100% (4/4), 2.55 GiB | 16.48 MiB/s, done.
Downloading Motion Modules
Cloning into 'repos\animatediff\models\Motion_Module'...
remote: Enumerating objects: 11, done.
remote: Total 11 (delta 0), reused 0 (delta 0), pack-reused 11
Unpacking objects: 100% (11/11), 1.34 KiB | 65.00 KiB/s, done.
Filtering content: 100% (2/2), 3.11 GiB | 15.94 MiB/s, done.
Do you want to download toonyou model? (y/n):n
Skipping toonyou model download
Launching VisionCrafter
Traceback (most recent call last):
  File "C:\Users\Konzr\seait\VisionCrafter\main.py", line 1, in <module>
    import PySimpleGUI as sg
ModuleNotFoundError: No module named 'PySimpleGUI'
Press any key to continue . . .

Additional information

No response

AsaTyr2018 commented 11 months ago

Good day,

I have found several errors in your log. First of all, there is this message:

error: Microsoft Visual C++ 14.0 or greater is required.

You need to install or update your Visual C++.

Regarding PySimpleGUI, please provide a pip list (you can do this by entering pip list in the command prompt).

Next, there's an issue with the Python version itself. Python 11 has some known issues and is not recommended for current AI development. Please downgrade to version 3.10. Specifically, version 3.10.6 works best with most of the current AI builds.

Kind Regards AsaTyr

AsaTyr2018 commented 11 months ago

@meerpack Any Update in this Matter?

morriscox commented 1 month ago

The version of PySimpleGUI that is installed is 5.0.06 and the installer wants 4.60.5. The person who took PySimpleGUI closed source, and started charging a subscription, nuked everything in the repo so that people can't use the older versions.

https://www.reddit.com/r/Python/comments/1d8d4iv/psa_pysimplegui_has_deleted_almost_all_old_lgpl/ https://www.reddit.com/r/Python/comments/1apng8d/pysimplegui_now_closedsource/

https://docs.pysimplegui.com/en/latest/FAQ/ shows a change from the subscription model "helpful feedback from our users"... to licensed.

morriscox commented 1 month ago

You can replace PySimpleGUI with https://github.com/spyoungtech/FreeSimpleGUI