Open TheColinStein opened 3 years ago
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
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.
@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.
Thank you kind stranger.
Has anyone managed to solve this?
If I remember correctly, I did find a work around somewhere else.
On Sat, Mar 12, 2022 at 11:07 AM hive_mind.exe @.***> wrote:
Has anyone managed to solve this?
— Reply to this email directly, view it on GitHub https://github.com/blender-for-science/import-G-code/issues/10#issuecomment-1065920692, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWF5D76QB7Q6HDGQQAHRCVTU7TFLPANCNFSM5GSN6JMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
For anyone still having this issue on Windows...
To install tqdm
, I followed this process:
Go to the Scripting tab / workspace and in the text field (the big blank panel) click 'New' and then...
Type:
import pip
pip.main(['install', 'tqdm', '--user'])
import sys
Hit the play button next to where you click 'New'
Go to Window -> Toggle System Console
Note the path where the tqdm module was installed
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.
Hi!
is there video for this.. I did not manage to to install TGDM via scipting panel... please help
@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!
@smileymcfrown
ok kind thanks!
I did find Stitch3r so I might try that for 3DP renderings
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?
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