Giter Club home page Giter Club logo

Traceback (most recent call last): File "C:\Users\Hrijul\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\automask.py", line 248, in execute proj_dir = paths[-1] IndexError: list index out of range location: <unknown location>:-1 about automask HOT 14 CLOSED

lukas-blecher avatar lukas-blecher commented on June 12, 2024
Traceback (most recent call last): File "C:\Users\Hrijul\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\automask.py", line 248, in execute proj_dir = paths[-1] IndexError: list index out of range location: :-1

from automask.

Comments (14)

hr1jul avatar hr1jul commented on June 12, 2024

os window 2004

from automask.

lukas-blecher avatar lukas-blecher commented on June 12, 2024

I've actually never tried it with the dependencies installed in blender. So here is what you can do:
In the automask.py file, in your case located at C:\Users\Hrijul\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\automask.py, line 7

AutoMask/automask.py

Lines 7 to 10 in 18069b7

paths = [
#PYTHON_PATH,
PROJECT_DIR
]
there is a list defined.

Now find the python executable used in Blender. There locate the directory site-package and copy the complete path.
It should look somewhat like this: C:\Users\user\blender\2.80\python\lib\site-packages. Paste this path in automask.py:

paths = [
    r'C:\Users\user\blender\2.80\python\lib\site-packages'
]

Give that a try. Should work.

from automask.

hr1jul avatar hr1jul commented on June 12, 2024

from automask.

hr1jul avatar hr1jul commented on June 12, 2024

from automask.

lukas-blecher avatar lukas-blecher commented on June 12, 2024

Could you elaborate? Is it working? If not, what did you change, what does the path list look like?

from automask.

hr1jul avatar hr1jul commented on June 12, 2024

from automask.

lukas-blecher avatar lukas-blecher commented on June 12, 2024

Scikit image installs but skimage refuses to install

I think those are actually the same modules. I don't think I understand the problem.

How do you want to talk? I'm part of the discord server Blender for science: https://discord.gg/D7yz8x
Catch me there.

from automask.

hr1jul avatar hr1jul commented on June 12, 2024

from automask.

hr1jul avatar hr1jul commented on June 12, 2024

only issue is the in the line 248 249 wrt project dir list

from automask.

hr1jul avatar hr1jul commented on June 12, 2024

Python: Traceback (most recent call last):
File "\automask.py", line 230, in modal
self._calcs_done = True
File "\automask.py", line 143, in automask
crl = [co, rhand, lhand]
File "C:\Users\Hrijul\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\SiamMask.py", line 21, in track_object
model = create_model(state)
File "C:\Users\Hrijul\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\SiamMask.py", line 12, in create_model
return SiamMask_Tracker(cfg, path)
File "C:\Users\Hrijul\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\trackers\tracker.py", line 74, in init
model = load_pretrain(model, join(proj_path, 'trackers/SiamMask/model.pth'))
File "C:\Users\Hrijul\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\trackers\SiamMask\utils\load_helper.py", line 34, in load_pretrain
pretrained_dict = torch.load(pretrained_path, map_location=device)
File "F:\all_software\2.90.1\blender-2.91.0-21fec9513969-windows64\2.91\python\lib\site-packages\torch\serialization.py", line 571, in load
with _open_file_like(f, 'rb') as opened_file:
File "F:\all_software\2.90.1\blender-2.91.0-21fec9513969-windows64\2.91\python\lib\site-packages\torch\serialization.py", line 229, in _open_file_like
return _open_file(name_or_buffer, mode)
File "F:\all_software\2.90.1\blender-2.91.0-21fec9513969-windows64\2.91\python\lib\site-packages\torch\serialization.py", line 210, in init
super(_open_file, self).init(open(name, mode))
OSError: [Errno 22] Invalid argument: 'F:\all_software\2.90.1\blender-2.91.0-21fec9513969-windows64\2.91\python\lib\site-packages\, C:\Users\Hrijul\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\trackers/SiamMask/model.pth'

location: :-1

from automask.

hr1jul avatar hr1jul commented on June 12, 2024

what is this?

from automask.

lukas-blecher avatar lukas-blecher commented on June 12, 2024

can you please show me your paths list. That looks like a broken path to me.

from automask.

hr1jul avatar hr1jul commented on June 12, 2024
paths = [
r'F:\all_software\2.90.1\blender-2.91.0-21fec9513969-windows64\2.91\python\lib\site-packages,C:\Users\Hrijul\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons'
]

from automask.

lukas-blecher avatar lukas-blecher commented on June 12, 2024

We were able to pinpoint the issue on discord.
The paths were not seperated correctly.
Closing this issue now

from automask.

Related Issues (11)

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.