Issue with installation of Bonsai 2.6 and Miniscope package

212 views
Skip to first unread message

Alessandro Di Filippo

unread,
Jan 8, 2021, 11:26:28 AM1/8/21
to Bonsai Users
Hi, I recently tried a fresh install of Bonsai 2.6 and Miniscope version 1.2.3.
I cannot find the installed Miniscope node in the toolbox (also by searching).
I tried loading an old program with the Miniscope node (with older versions of Bonsai and Miniscope), with the same result: the node is marked as missing.

Does anybody have any idea why this could happen?
Thanks! 

jonathan...@gmail.com

unread,
Jan 9, 2021, 10:34:28 AM1/9/21
to Bonsai Users
I guess I need to update the package to work with the bonsai 2.6 core. I will do that today sometime.

jonathan...@gmail.com

unread,
Jan 9, 2021, 10:38:52 AM1/9/21
to Bonsai Users
Actually, its simpler than that. When you installed the new version of Bonsai, I think the Minicope package was uninstalled. So you need to re-install it using the package manager:

From the main editor GUI:

- Tools -> manage packages
- Set the source to "Community Packages"
- Search for Miniscope and install it.
- Close the package manager and you should now find the nodes in the Editor GUI

Alessandro Di Filippo

unread,
Jan 11, 2021, 6:03:48 AM1/11/21
to Bonsai Users
Great! 
I will try installing it again this afternoon then.
Thanks!

Alessandro Di Filippo

unread,
Jan 11, 2021, 10:25:40 AM1/11/21
to Bonsai Users
I just tried uninstalling it and then installing it again following your instructions.
The result is the same: the node does not appear anywhere.

jonathan...@gmail.com

unread,
Jan 12, 2021, 2:14:23 PM1/12/21
to Bonsai Users
Hmm I dont know. its working fine for me. Can you try updating all your packages in the manager?

Alessandro Di Filippo

unread,
Jan 13, 2021, 5:22:02 AM1/13/21
to Bonsai Users
I did that.

I'm attaching some pictures to show what I have installed.
Screenshot 2021-01-13 101749.pngScreenshot 2021-01-13 101935.png
Screenshot 2021-01-13 101856.png

jonathan...@gmail.com

unread,
Jan 14, 2021, 4:05:33 PM1/14/21
to Bonsai Users
Hi, 

Sorry you're having this issue but I just cant seem to reproduce it. I tested on my computer and had a lab mate test on another computer and in both cases we were able to see the miniscope package and use it.

- Are you running the 64-bit version or 32? Maybe I messed up the package for a certain architecture?
- This could also happen because there is a missing dependency. This is supposed to be handled by the package manager though and obviously is for both of the times I've tried to reproduce, so not sure.

Alessandro Di Filippo

unread,
Jan 15, 2021, 1:04:10 PM1/15/21
to Bonsai Users
Thank you for the hint.

I think it is due to a missing dependency.

I just found OpenCV is not installed on the system.
I assumed the OpenCV packages installed by Bonsai were enough, but by checking with Python (import cv2), OpenCV is nowhere to be found. 

I will try to install it and check it again.
As always, thank you for the help.

Alessandro Di Filippo

unread,
Jan 22, 2021, 8:52:13 AM1/22/21
to Bonsai Users
A small update: I was able to install OpenCV on the system (it took more than foreseen due to surgeries planned).

Still no luck: Miniscope does not appear anywhere in the directory.
The same is true, I just discovered, for all the nodes relying on Shaders package.

I see that they both rely on OpenCV.net (the main reason why I looked at OpenCV to start with).

Regarding your points:
- I'm running Windows 10 64
- I checked for the dependencies and they all seem to be installed.

I tried looking for other solutions but found none...

Zeinab Fazlali

unread,
Jan 22, 2021, 10:03:50 AM1/22/21
to Alessandro Di Filippo, Bonsai Users
I have same issues! OpenCV.net is installed but each time the error appears again!

Zeinab Fazlali 

--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/6926bb84-002d-4957-8f1e-cb8fbe579110n%40googlegroups.com.
--
Zeinab Fazlali


jonathan...@gmail.com

unread,
Jan 22, 2021, 8:53:21 PM1/22/21
to Bonsai Users
Shoot, I'm sorry this is happening. I'm in lockdown right now and finding very difficult to get in and test this on a fresh install. 

@Zeinab, when you say "error appears again" can you please be more specific. What error? Right now we are discussing the library non loading at all, not really an error just everything behaving normally when something cannot be found.

jonathan...@gmail.com

unread,
Jan 22, 2021, 8:57:27 PM1/22/21
to Bonsai Users
Also, this is terrible solution, but if there are not features you absolutely need in 2.6, and you really need to use the miniscope package, consider reverting back to 2.5 until this is resolved.

Alessandro Di Filippo

unread,
Jan 26, 2021, 11:11:21 AM1/26/21
to Bonsai Users
Thank Jonathan for the help, I will definitely try this then.

My experimental machine is actually still at Bonsai 2.4.
Can you advise me on how to update it to 25.1 and not 2.6?
Because Manage Packages has only that as an option.
Thanks!

Alessandro Di Filippo

unread,
Jan 27, 2021, 8:40:43 AM1/27/21
to Bonsai Users
I manually reinstalled 2.5.1.
Anyway, I have so many other packages (Spinnaker, Vision, etc.) whose current nodes have nested dependencies that require an update of Bonsai...
So I'm back again to 2.6.1.

Apparently, running an old version of Bonsai with many packages is harder than I believed.

jonathan...@gmail.com

unread,
Jan 28, 2021, 8:06:13 AM1/28/21
to Bonsai Users
It sounds like you are having serious issues with dependencies not being put in the right place to me. All of this is automatically managed by nuget and it seems like thing in AppData are not being deleted fully when the should be. 

Alessandro Di Filippo

unread,
Feb 3, 2021, 7:26:34 AM2/3/21
to Bonsai Users
You were completely right.

It did take me a bit of time, but I was finally able to trace and delete all the bonsai folders in the AppData.
Only after that, I reinstalled again Bonsai 2.6.1 and this time everything worked.
By the way, I had troubles only with Miniscope, Bonvision and Shaders packages, the rest worked fine.

Again, thank you for your help!

jonathan...@gmail.com

unread,
Feb 3, 2021, 11:10:50 AM2/3/21
to Bonsai Users
Excellent! This was driving me crazy so I'm glad we found the solution.
Reply all
Reply to author
Forward
0 new messages