question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

you have to replace `PYTHON_PATH` with your path.

See original GitHub issue

you have to replace PYTHON_PATH with your path.

paths = [
    '/Users/joan/Library/Python/2.7/lib/site-packages
    '/Users/joan/AutoMask-master'
]

Also you need python 3.7 and the path needs to point to the directory site-packages.

_Originally posted by @lukas-blecher in https://github.com/lukas-blecher/AutoMask/issues/8#issuecomment-747579133_

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jcnwhollandcommented, Dec 19, 2020

I’m having the same problems, no matter what I try, Is 2.8.0 req? or does it work with other versions? Why does it create an other location for placing the script? anyone?

Traceback (most recent call last): File “C:\blender-2.83.0-windows64\2.83\scripts\modules\addon_utils.py”, line 351, in enable mod = import(module_name) File “C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\automask.py”, line 12, in <module> from mask_spline import * File “C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\mask_spline.py”, line 1, in <module> from geomdl import BSpline ModuleNotFoundError: No module named ‘geomdl’

Here is my edited autmask.py

– import bpy from bpy.types import Operator, Panel, PropertyGroup, WindowManager from bpy.props import PointerProperty, StringProperty, IntProperty, FloatProperty, BoolProperty import sys paths = [ #C:\Program Files\Python37\Lib\site-packages,C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master’ ] for p in paths: sys.path.insert(0, p) from mask_spline import * from SiamMask import *

bl_info = { ‘blender’: (2, 80, 3), ‘name’: ‘AutoMask’, ‘category’: ‘Motion Tracking’, ‘location’: ‘Masking> Movie Clip Editor > AutoMask’, ‘author’: ‘Lukas Blecher’ }

PY-shell:

Installing collected packages: decorator, networkx, imageio, six, cycler, pyparsing, python-dateutil, kiwisolver, matplotlib, scipy, tifffile, PyWavelets, scikit-image The scripts imageio_download_bin.exe and imageio_remove_bin.exe are installed in ‘c:\program files\python37\Scripts’ which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. The scripts lsm2bin.exe, tiffcomment.exe and tifffile.exe are installed in ‘c:\program files\python37\Scripts’ which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. The script skivi.exe is installed in ‘c:\program files\python37\Scripts’ which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed PyWavelets-1.1.1 cycler-0.10.0 decorator-4.4.2 imageio-2.9.0 kiwisolver-1.3.1 matplotlib-3.3.3 networkx-2.5 pyparsing-2.4.7 python-dateutil-2.8.1 scikit-image-0.18.0 scipy-1.5.4 six-1.15.0 tifffile-2020.12.8 You are using pip version 10.0.1, however version 20.3.3 is available. You should consider upgrading via the ‘python -m pip install --upgrade pip’ command.

C:\Users\Administrator>pip install -r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt Requirement already satisfied: opencv_python_headless>=4.1.1.26 in c:\program files\python37\lib\site-packages (from -r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 2)) (4.4.0.46) Requirement already satisfied: imutils>=0.5.3 in c:\program files\python37\lib\site-packages (from -r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 3)) (0.5.3) Requirement already satisfied: geomdl>=5.2.9 in c:\program files\python37\lib\site-packages (from -r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 4)) (5.3.0) Requirement already satisfied: torch>=1.3.1 in c:\program files\python37\lib\site-packages (from -r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 5)) (1.7.1+cu110) Requirement already satisfied: numpy>=1.18.0 in c:\program files\python37\lib\site-packages (from -r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 6)) (1.19.4) Requirement already satisfied: Pillow>=6.2.1 in c:\program files\python37\lib\site-packages (from -r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 7)) (8.0.1) Requirement already satisfied: scikit-image in c:\program files\python37\lib\site-packages (from -r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (0.18.0) Requirement already satisfied: typing-extensions in c:\program files\python37\lib\site-packages (from torch>=1.3.1->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 5)) (3.7.4.3) Requirement already satisfied: imageio>=2.3.0 in c:\program files\python37\lib\site-packages (from scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (2.9.0) Requirement already satisfied: scipy>=1.0.1 in c:\program files\python37\lib\site-packages (from scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (1.5.4) Requirement already satisfied: matplotlib!=3.0.0,>=2.0.0 in c:\program files\python37\lib\site-packages (from scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (3.3.3) Requirement already satisfied: PyWavelets>=1.1.1 in c:\program files\python37\lib\site-packages (from scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (1.1.1) Requirement already satisfied: networkx>=2.0 in c:\program files\python37\lib\site-packages (from scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (2.5) Requirement already satisfied: tifffile>=2019.7.26 in c:\program files\python37\lib\site-packages (from scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (2020.12.8) Requirement already satisfied: python-dateutil>=2.1 in c:\program files\python37\lib\site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (2.8.1) Requirement already satisfied: kiwisolver>=1.0.1 in c:\program files\python37\lib\site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (1.3.1) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\program files\python37\lib\site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (2.4.7) Requirement already satisfied: cycler>=0.10 in c:\program files\python37\lib\site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (0.10.0) Requirement already satisfied: decorator>=4.3.0 in c:\program files\python37\lib\site-packages (from networkx>=2.0->scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (4.4.2) Requirement already satisfied: six>=1.5 in c:\program files\python37\lib\site-packages (from python-dateutil>=2.1->matplotlib!=3.0.0,>=2.0.0->scikit-image->-r C:\Users\Administrator\Downloads\AutoMask-master\AutoMask-master\requirements.txt (line 8)) (1.15.0) You are using pip version 10.0.1, however version 20.3.3 is available. You should consider upgrading via the ‘python -m pip install --upgrade pip’ command.

0reactions
JBetbecommented, Dec 21, 2020

Ok. I see, thanks! keep us updated, please!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using PYTHONPATH — Functional MRI methods
Give the variable name as PYTHONPATH and the value is the path to the code directory. ; Now open a cmd Window (Windows...
Read more >
How to change sys.path or PYTHONPATH in Python - Xmodulo
The first method is explicitly change sys.path in your Python program. You can check the content of the current sys.path as follows. import...
Read more >
PYTHONPATH Environment Variable in Python
The PYTHONPATH variable holds a string with the name of various directories that need to be added to the sys.path directory list by...
Read more >
How to add to the PYTHONPATH in Windows, so it finds my ...
Right-click on PythonPath and choose to create a new key. You may want to name the key after the project whose module locations...
Read more >
Python Tutorial: How to Set the Path and Switch ... - YouTube
In this Python Programming Tutorial, we will be learning how to set the PATH environment variable on the Windows Operating Systems.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found