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

ModuleNotFoundError: No Module named tqdm #10

Open
TheColinStein opened this issue Oct 23, 2021 · 10 comments
Open

ModuleNotFoundError: No Module named tqdm #10

TheColinStein opened this issue Oct 23, 2021 · 10 comments

Comments

@TheColinStein
Copy link

I'm trying to get this to work like it has before but suddenly, for the life of me, I can't get this to work. Here's the error I get on multiple versions of Blender. It doesn't want to work on 2.93.5 or 2.83. Help please?

image

Python: Traceback (most recent call last):
File "C:\Users\lilgr\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\import-G-code-master\processor.py", line 37, in execute
from tqdm import tqdm
ModuleNotFoundError: No module named 'tqdm'

location: :-1

@Wikunia
Copy link

Wikunia commented Dec 7, 2021

You have to install tqdm with the blender internal python version.
Somewhere in the blender install should be /bin/python3.7m or something and then you can call ./bin/python3.7m -m pip install tqdm

@gbilliar
Copy link

gbilliar commented Feb 11, 2022

Hello, I am new around here. I am using blender 3.0.1. I download the latest release as a '.zip' file and headed over to Blender.
I went to Edit->Preferences->Add-on->Install and clicked on the downloaded '.zip' file. The instructions say to make sure its enabled I assume that means the little check box is checked. However I do not get a pop up about Regex and Tqdm modules. However when I try importing g-code I am meet with the same error above. How do I fix this? Thanks in advance for any answers. Heads up I don't know any coding but I'm trying to learn so if it involves coding explanations would be greatly appreciated.

@pandon1
Copy link

pandon1 commented Feb 11, 2022

@gbilliar hello. I had the same issue, I tried every way I could think of to get tqdm on blender. I tried making an anaconda env to replace the python directory within blender. I think that worked. The trick was to make the anaconda envi with the same python version as was originally in blender (very important) and naming it "python", then pip installing tqdm and regex through the anaconda command line, then linking the new env into the folder with blenders python folder, and renaming the original blender-python something else "ie. ___py_thon or something). There is also anouther addon on GitHub that works a little easier. Version 2.8.1 might work better also.

@gbilliar
Copy link

gbilliar commented Feb 11, 2022

Thank you kind stranger.

@mateiradu88
Copy link

Has anyone managed to solve this?

@TheColinStein
Copy link
Author

TheColinStein commented Mar 14, 2022 via email

@smileymcfrown
Copy link

smileymcfrown commented Nov 6, 2022

For anyone still having this issue on Windows...
To install tqdm, I followed this process:

  1. Go to the Scripting tab / workspace and in the text field (the big blank panel) click 'New' and then...

  2. Type:

import pip
pip.main(['install', 'tqdm', '--user'])
import sys

Hit the play button next to where you click 'New'

  1. Go to Window -> Toggle System Console

  2. Note the path where the tqdm module was installed

  3. Type the following changing the path to match your path from the System Console:

import sys
packages_path = "C:\\Users\\<Username>\\AppData\\Roaming\\Python\\Python39\\Scripts" + "\\..\\site-packages"
sys.path.insert(0, packages_path )

Hit the play button again.

Blender should now be able to find the tqdm module, and the error should go away. I then got a different error, but at least this one should be fixed for you.

Edit: Removed a ` after the first import sys which I assume was a mistake although it was over a year ago.

@jessepietila
Copy link

Hi!

is there video for this.. I did not manage to to install TGDM via scipting panel... please help

@smileymcfrown
Copy link

@jessepietila
Well, I don't even remember writing that comment, so no, there's no video.

There is a mistake in my comment though... I left a ` after the first import sys (I've fixed it now), so if you included that when you followed the instructions that might be the problem, and of course, making sure your path is not like I have but matching your own from steps 2 and 3. Otherwise, I can't help I'm afraid; I didn't actually know what I was doing, I just found out through scouring forums and sites and putting things together. :/

Also, Blender and this code has had multiple updates since I posted, so it may not be relevant any more. Sorry!

@jessepietila
Copy link

@smileymcfrown

ok kind thanks!

I did find Stitch3r so I might try that for 3DP renderings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants