lks-ai / ComfyUI-StableAudioSampler

The New Stable Diffusion Audio Sampler 1.0 In a ComfyUI Node. Make some beats!
180 stars 13 forks source link

progressbar #7

Closed ioritree closed 2 weeks ago

ioritree commented 3 weeks ago
Collecting progressbar (from laion-clap==1.1.4->stable-audio-tools->-r requirements.txt (line 1))
  Using cached http://mirrors.aliyun.com/pypi/packages/a3/a6/b8e451f6cff1c99b4747a2f7235aa904d2d49e8e1464e0b798272aa84358/progressbar-2.5.tar.gz (10 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "D:\TEMP\pip-install-6d054hkt\progressbar_c40e21453ece474cafbfe32acd2111a5\setup.py", line 24, in <module>
          description=progressbar.__doc__.split('\n')[0],
      AttributeError: 'NoneType' object has no attribute 'split'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

+118cuda ,py310 ,windows11 appear this error message after progressbar

lks-ai commented 3 weeks ago

This looks like a stable audio tools library issues. Does this happen on install or on running the node?

ioritree commented 3 weeks ago

This looks like a stable audio tools library issues. Does this happen on install or on running the node?

on install

ghost commented 3 weeks ago

I had to manually download progressbar and edit the line in the file that causes the error to get that to work. For me it was a line about version I believe.

lks-ai commented 3 weeks ago

What line did you have to edit @cherrerajobs ?

ghost commented 2 weeks ago

Edit 3: @lks-ai Actually I think I eventually just ended up using this updated version which is backwards compatible: https://github.com/wolph/python-progressbar/

What a mess 😂

image

Original: In the case shown above I would just edit line 24 of setup.py to: description='Progress Bar',

https://pypi.org/project/progressbar/#files image

Then run comfy's python like: /editme/python_embeded/python.exe -m pip install . while in the directory where progressbar's setup.py is.

Edit: Same for line 25 if it causes issues as well. Edit 2: Also this is another one of those cases where you're installing a library that imports itself for some reason (line 5), I'm starting to dislike that design trope.

Reptiliano666 commented 2 weeks ago

Tengo el mismo problema con progressbar

ghost commented 2 weeks ago

@Reptiliano666 @ioritree @lks-ai

Try/Intenta: /comfyui_folder/python_embeded/python.exe -m pip install progressbar2

lks-ai commented 2 weeks ago

image Espanyol: Estoy trabajando en un sistema de deteccion y sugerencias para problemas asi en todos nuestros packs de nodos. English: I'm working on a system for detection and suggestions for these types of problems, should work across all our node packs.

I showed protobuf because progressbar does not error for me. / Aqui se ve protobuf en vez de progressbar porque no tengo problemas con progressbar.

It will do a full analysis of requirements, try to find version discrepancies, find possible install version ranges, find the real versions that fit into those ranges, and then suggest pip commands to install any minor versions within that range (on error output during init).

Hara un analisis completo de los requisitos, intenta detectar discrepancias, buscar rangos de versiones compatibles para todos los modulos, encontrar versiones reales dentro de este rango, y entonces sugerirte comandos de pip que puedes utilizar para mitigar ese ... infierno de versiones.