Giter Site home page Giter Site logo

Comments (7)

swansonk14 avatar swansonk14 commented on May 20, 2024 6

Hi @zamirkhan, thank you for using p_tqdm and for bringing up the issue! The problem stems from a change that was introduced in this PR #7 which changed the import from from tqdm import tqdm to from tqdm.auto import tqdm in order to enable tqdm bars to function as widgets in Jupyter notebooks.

I would have imagined that the problem is that you're using an old tqdm version which doesn't have tqdm.auto, but 4.45.0 is the same version I'm using and it seems to work fine for me.

Could you testing the version of the tqdm installation on the docker image to make sure it's installing correctly? Specifically can you try:

$ python
>>> import tqdm
>>> tqdm.__version__
>>> import tqdm.auto

to make sure tqdm is actually installing as version 4.45.0 and to check if you can import tqdm.auto?

If it really is installing the correct version of tqdm and p_tqdm still isn't working, please let me know. Worst case I can always add a try/except around the tqdm.auto import and revert to tqdm when needed, but I'm curious why this isn't working for you.

from p_tqdm.

Ekko-G0d avatar Ekko-G0d commented on May 20, 2024 4

刚刚我遇到了这个报错,并成功解决解决了这个问题,给大家分享一下,仅供参考。
1.卸载老版本的tqdm,并手动删除调用该项目的低版本文件,比如我的是stable diffusion中的tqdm-4.11.2 和 tqdm 文件夹(记住文件夹所在位置,).
[code=html] pip uninstall tqdm
[/code]
2.安装tqdm的最新版本,然后找到python目录下对应的tqdm-4.45.0 以及 tqdm 文件夹,手动复制到刚刚删除文件夹的地方。
[code=html] pip install tqdm
[/code]
问题解决!
使用到的功能是powershell
文件夹搜索工具everything
希望能对你有所帮助

from p_tqdm.

zamirkhan avatar zamirkhan commented on May 20, 2024

Thanks for the quick response, @swansonk14 ! You were absolutely right, the issue was that another package was uninstalling p_tqdm 4.45.0 and installing an older version (grrr! I'm not super experienced with Python, but that feels like a bad package installer thing to do). Moving my tqdm and p_tqdm installs to be after that bad-behaving package solved the issue.

from p_tqdm.

swansonk14 avatar swansonk14 commented on May 20, 2024

Perfect, I'm glad that fixed the issue! Yeah it is really frustrating that Python sometimes overrides package versions due to other package requirements, but I'm glad it's working now!

from p_tqdm.

ankitladva11 avatar ankitladva11 commented on May 20, 2024

This solution is nor worked for me,what else I do?

from p_tqdm.

asantanna avatar asantanna commented on May 20, 2024

This is the only thing that worked for me!!!! Thanks!!!

from p_tqdm.

Curiouscubb avatar Curiouscubb commented on May 20, 2024

刚刚我遇到了这个报错,并成功解决解决了这个问题,给大家分享一下,仅供参考。 1.卸载老版本的tqdm,并手动删除调用该项目的低版本文件,比如我的是stable diffusion中的tqdm-4.11.2 和 tqdm 文件夹(记住文件夹所在位置,). [code=html] pip uninstall tqdm [/code] 2.安装tqdm的最新版本,然后找到python目录下对应的tqdm-4.45.0 以及 tqdm 文件夹,手动复制到刚刚删除文件夹的地方。 [code=html] pip install tqdm [/code] 问题解决! 使用到的功能是powershell 文件夹搜索工具everything 希望能对你有所帮助

This solved my issue.. I already have the newest version installed. So I copied from the directory and pasted inside the path\stable-diffusion-webui\venv\Lib\site-packages. and it worked.

from p_tqdm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.