Comments (7)
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.
刚刚我遇到了这个报错,并成功解决解决了这个问题,给大家分享一下,仅供参考。
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.
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.
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.
This solution is nor worked for me,what else I do?
from p_tqdm.
This is the only thing that worked for me!!!! Thanks!!!
from p_tqdm.
刚刚我遇到了这个报错,并成功解决解决了这个问题,给大家分享一下,仅供参考。 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)
- Nested p_map causing AssertionError in thread pool HOT 1
- Allow to set the chunk size used by the thread pool HOT 1
- Cleanly halt execution
- tqdm.write HOT 2
- KeyError 'pylab'
- Add keyword to disable progress bar HOT 3
- progress bar not showing in jupyter notebok HOT 1
- ValueError thrown if no iterables are sized
- Number of workers HOT 1
- Deprecation error
- Cannot modify global variable HOT 1
- Use ThreadPool instead of usual Pool
- Update the tqdm postfix?
- task hangs indefinitely at the end of p_uimap
- NameError: name 'time' is not defined HOT 3
- p_map() very slow compared to multiprocess.Pool.map() HOT 3
- P_map not waiting for processes to finish before moving on and crashing due to a memory error HOT 1
- Does not work with Python 3.10 HOT 4
- When using p_tqdm in a Jupyter session and the cell is killed, the processes continue.
- ModuleNotFoundError: No module named 'tqdm.auto HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p_tqdm.