Closed vickerse1 closed 5 months ago
Sorry I thought we had fixed this issue Evan. If you run python -u -W ignore -m suite2p --ops "C:\Users\McCormick Lab\.suite2p\ops\ops.npy" --db "C:\Users\McCormick Lab\.suite2p\ops\db.npy"
do you receive any errors? If not then it's just a matter of changing how the GUI calls this command in rungui.py
running that line works, w/ no error
which line in rungui.py should i change, what does it currently say, and what should i change it to?
thanks,
evan
From: carsen-stringer @.> Sent: Thursday, November 30, 2023 10:47 AM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Author @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Sorry I thought we had fixed this issue Evan. If you run python -u -W ignore -m suite2p --ops "C:\Users\McCormick Lab.suite2p\ops\ops.npy" --db "C:\Users\McCormick Lab.suite2p\ops\db.npy" do you receive any errors? If not then it's just a matter of changing how the GUI calls this command in rungui.py
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1834362270__;Iw!!C5qS4YX3!GC0qJ3eh-khRIjdqfLra6UOIm0DSAmSbb3a5NBG-Hq60HNfH5V1GaS9Co7OuuG4JWko6Mul8pXdtyDAbTJXxW5WwWsVH$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZWOTMLHDAWQL3HHBB3YHDIDVAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGM3DEMRXGA__;!!C5qS4YX3!GC0qJ3eh-khRIjdqfLra6UOIm0DSAmSbb3a5NBG-Hq60HNfH5V1GaS9Co7OuuG4JWko6Mul8pXdtyDAbTJXxW4aJqfAo$. You are receiving this because you authored the thread.Message ID: @.***>
Ah great, this line here: https://github.com/MouseLand/suite2p/blob/3fb28671c860daa7a72b444cecd8962ee84661fd/suite2p/gui/rungui.py#L451C49-L451C49
If you can try changing it to:
cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
If it works we can change it or you can make a pull request with the change, thanks!
i made that change and now i get this error:
this is what lines 449-453 in my rungui.py look like:
print(self.db) print("Running suite2p with command:") cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
print("python " + cmd)
thanks,
evan
From: carsen-stringer @.> Sent: Thursday, November 30, 2023 10:59 AM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Author @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Ah great, this line here: https://github.com/MouseLand/suite2p/blob/3fb28671c860daa7a72b444cecd8962ee84661fd/suite2p/gui/rungui.py#L451C49-L451C49https://urldefense.com/v3/__https://github.com/MouseLand/suite2p/blob/3fb28671c860daa7a72b444cecd8962ee84661fd/suite2p/gui/rungui.py*L451C49-L451C49__;Iw!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcrkvEQ9dR$
If you can try changing it to: cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
If it works we can change it or you can make a pull request with the change, thanks!
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1834380020__;Iw!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcruOnseEp$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZT5WCUHIUD6JSZG7VDYHDJSFAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGM4DAMBSGA__;!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcrlJYaGAM$. You are receiving this because you authored the thread.Message ID: @.***>
Hi Carsen,
Do you have any more thoughts on this?
I still can't do local runs in Windows.
Every path related change I make to access the ops files in rungui.py results in this weird space/indentation error message, even giving it the literal path with quotes or putting it in a different location without a space in the path.
What do you suggest? I was thinking of creating a second Windows admin user account without the space and doing a clean install there, but this seems pretty inelegant.
Thanks,
Evan
From: Evan Vickers @.> Sent: Thursday, November 30, 2023 11:40 AM To: MouseLand/suite2p @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
i made that change and now i get this error:
this is what lines 449-453 in my rungui.py look like:
print(self.db) print("Running suite2p with command:") cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
print("python " + cmd)
thanks,
evan
From: carsen-stringer @.> Sent: Thursday, November 30, 2023 10:59 AM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Author @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Ah great, this line here: https://github.com/MouseLand/suite2p/blob/3fb28671c860daa7a72b444cecd8962ee84661fd/suite2p/gui/rungui.py#L451C49-L451C49https://urldefense.com/v3/__https://github.com/MouseLand/suite2p/blob/3fb28671c860daa7a72b444cecd8962ee84661fd/suite2p/gui/rungui.py*L451C49-L451C49__;Iw!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcrkvEQ9dR$
If you can try changing it to: cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
If it works we can change it or you can make a pull request with the change, thanks!
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1834380020__;Iw!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcruOnseEp$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZT5WCUHIUD6JSZG7VDYHDJSFAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGM4DAMBSGA__;!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcrlJYaGAM$. You are receiving this because you authored the thread.Message ID: @.***>
Hi,
Do we have any new insights on this issue yet?
Thanks,
Evan
From: Evan Vickers @.> Sent: Friday, December 1, 2023 10:01 AM To: MouseLand/suite2p @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi Carsen,
Do you have any more thoughts on this?
I still can't do local runs in Windows.
Every path related change I make to access the ops files in rungui.py results in this weird space/indentation error message, even giving it the literal path with quotes or putting it in a different location without a space in the path.
What do you suggest? I was thinking of creating a second Windows admin user account without the space and doing a clean install there, but this seems pretty inelegant.
Thanks,
Evan
From: Evan Vickers @.> Sent: Thursday, November 30, 2023 11:40 AM To: MouseLand/suite2p @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
i made that change and now i get this error:
this is what lines 449-453 in my rungui.py look like:
print(self.db) print("Running suite2p with command:") cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
print("python " + cmd)
thanks,
evan
From: carsen-stringer @.> Sent: Thursday, November 30, 2023 10:59 AM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Author @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Ah great, this line here: https://github.com/MouseLand/suite2p/blob/3fb28671c860daa7a72b444cecd8962ee84661fd/suite2p/gui/rungui.py#L451C49-L451C49https://urldefense.com/v3/__https://github.com/MouseLand/suite2p/blob/3fb28671c860daa7a72b444cecd8962ee84661fd/suite2p/gui/rungui.py*L451C49-L451C49__;Iw!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcrkvEQ9dR$
If you can try changing it to: cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
If it works we can change it or you can make a pull request with the change, thanks!
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1834380020__;Iw!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcruOnseEp$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZT5WCUHIUD6JSZG7VDYHDJSFAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGM4DAMBSGA__;!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcrlJYaGAM$. You are receiving this because you authored the thread.Message ID: @.***>
Hi,
I created a new Windows admin user account with no space in the name and installed in C:/ while logged in to that account, and I still have the problem.
It's strange that the .suite2p folder w/ ops keeps going in my "McCormick Lab" folder, even though that is not the user folder corresponding to the active admin account. Could it be that that's where python is installed or some other weird path issue I don't understand?
Thanks,
Evan
From: Evan Vickers @.> Sent: Monday, December 4, 2023 12:05 PM To: MouseLand/suite2p @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi,
Do we have any new insights on this issue yet?
Thanks,
Evan
From: Evan Vickers @.> Sent: Friday, December 1, 2023 10:01 AM To: MouseLand/suite2p @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi Carsen,
Do you have any more thoughts on this?
I still can't do local runs in Windows.
Every path related change I make to access the ops files in rungui.py results in this weird space/indentation error message, even giving it the literal path with quotes or putting it in a different location without a space in the path.
What do you suggest? I was thinking of creating a second Windows admin user account without the space and doing a clean install there, but this seems pretty inelegant.
Thanks,
Evan
From: Evan Vickers @.> Sent: Thursday, November 30, 2023 11:40 AM To: MouseLand/suite2p @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
i made that change and now i get this error:
this is what lines 449-453 in my rungui.py look like:
print(self.db) print("Running suite2p with command:") cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
print("python " + cmd)
thanks,
evan
From: carsen-stringer @.> Sent: Thursday, November 30, 2023 10:59 AM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Author @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Ah great, this line here: https://github.com/MouseLand/suite2p/blob/3fb28671c860daa7a72b444cecd8962ee84661fd/suite2p/gui/rungui.py#L451C49-L451C49https://urldefense.com/v3/__https://github.com/MouseLand/suite2p/blob/3fb28671c860daa7a72b444cecd8962ee84661fd/suite2p/gui/rungui.py*L451C49-L451C49__;Iw!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcrkvEQ9dR$
If you can try changing it to: cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
If it works we can change it or you can make a pull request with the change, thanks!
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1834380020__;Iw!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcruOnseEp$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZT5WCUHIUD6JSZG7VDYHDJSFAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGM4DAMBSGA__;!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcrlJYaGAM$. You are receiving this because you authored the thread.Message ID: @.***>
Hi,
I uninstalled my developer version and re-installed w/ the regular install again, and I still have the same problem.
I just need to know why it's putting the .suite2p folder in the McCormick Lab folder. It would be nice if I could put this in a different admin user folder somehow.
Thanks,
Evan
From: Evan Vickers @.> Sent: Monday, December 4, 2023 3:38 PM To: MouseLand/suite2p @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi,
I created a new Windows admin user account with no space in the name and installed in C:/ while logged in to that account, and I still have the problem.
It's strange that the .suite2p folder w/ ops keeps going in my "McCormick Lab" folder, even though that is not the user folder corresponding to the active admin account. Could it be that that's where python is installed or some other weird path issue I don't understand?
Thanks,
Evan
From: Evan Vickers @.> Sent: Monday, December 4, 2023 12:05 PM To: MouseLand/suite2p @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi,
Do we have any new insights on this issue yet?
Thanks,
Evan
From: Evan Vickers @.> Sent: Friday, December 1, 2023 10:01 AM To: MouseLand/suite2p @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi Carsen,
Do you have any more thoughts on this?
I still can't do local runs in Windows.
Every path related change I make to access the ops files in rungui.py results in this weird space/indentation error message, even giving it the literal path with quotes or putting it in a different location without a space in the path.
What do you suggest? I was thinking of creating a second Windows admin user account without the space and doing a clean install there, but this seems pretty inelegant.
Thanks,
Evan
From: Evan Vickers @.> Sent: Thursday, November 30, 2023 11:40 AM To: MouseLand/suite2p @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
i made that change and now i get this error:
this is what lines 449-453 in my rungui.py look like:
print(self.db) print("Running suite2p with command:") cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
print("python " + cmd)
thanks,
evan
From: carsen-stringer @.> Sent: Thursday, November 30, 2023 10:59 AM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Author @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Ah great, this line here: https://github.com/MouseLand/suite2p/blob/3fb28671c860daa7a72b444cecd8962ee84661fd/suite2p/gui/rungui.py#L451C49-L451C49https://urldefense.com/v3/__https://github.com/MouseLand/suite2p/blob/3fb28671c860daa7a72b444cecd8962ee84661fd/suite2p/gui/rungui.py*L451C49-L451C49__;Iw!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcrkvEQ9dR$
If you can try changing it to: cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
If it works we can change it or you can make a pull request with the change, thanks!
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1834380020__;Iw!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcruOnseEp$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZT5WCUHIUD6JSZG7VDYHDJSFAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGM4DAMBSGA__;!!C5qS4YX3!Ck_EznivBuJiz7Crb12iuCVaUBP5cRsG_rKJ10eexsKSPa6VqtHCnFK69B6oKnT8SLJRkMyu9d-Fv9b9YYKcrlJYaGAM$. You are receiving this because you authored the thread.Message ID: @.***>
Hi @vickerse1, hopefully, the comment I added in #1064 explains why you're getting the error related to the tabs. Carsen's suggestion on editing the rungui.py won't entirely fix the issue on the Windows machine (at least when tested on mine) because the ops_file
and db_file
in the run_s2p
function of rungui.py
are still not properly set to include the space and all the characters that come after.
Just wondering though, does Carsen's suggestion of including double quotes around the pathnames (ie, python -u -W ignore -m suite2p --ops "C:\Users\McCormick Lab\.suite2p\ops\ops.npy" --db "C:\Users\McCormick Lab\.suite2p\ops\db.npy"
) not solve this problem? For apps that run on Windows, it's common to specify double quotes to work with spaces in pathnames. Implementing this change may also cause issues on Linux machines that use different escape characters to include spaces.
As far as I remember that didn't work.
What's the line # of the other location in the code I need to make the change?
Also, what exact code do I need to put there?
Thanks,
Evan
Sent from my T-Mobile 5G Device Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Chris Ki @.> Sent: Sunday, December 10, 2023 1:09:13 PM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi @vickerse1https://urldefense.com/v3/__https://github.com/vickerse1__;!!C5qS4YX3!AtXo5QeM9evDAbLqpR9Fw-ARAb-VW5IEczWNQTX1mwAZDmlyLbLs9wreo5NmJFUzGyau3VAyD94OR_rHfwomd-4BUbGp$, hopefully, the comment I added in #1064https://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1064__;!!C5qS4YX3!AtXo5QeM9evDAbLqpR9Fw-ARAb-VW5IEczWNQTX1mwAZDmlyLbLs9wreo5NmJFUzGyau3VAyD94OR_rHfwomd24u2XQp$ explains why you're getting the error related to the tabs. Carsen's suggestion on editing the rungui.py won't entirely fix the issue on the Windows machine (at least when tested on mine) because the ops_file and db_file in the run_s2p function of rungui.py are still not properly set to include the space and all the characters that come after.
Just wondering though, does Carsen's suggestion of including double quotes around the pathnames (ie, python -u -W ignore -m suite2p --ops "C:\Users\McCormick Lab.suite2p\ops\ops.npy" --db "C:\Users\McCormick Lab.suite2p\ops\db.npy") not solve this problem? For apps that run on Windows, it's common to specify double quotes to work with spaces in pathnames. Implementing this fix may also cause issues on Linux machines that use different escape characters to include spaces.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1849085419__;Iw!!C5qS4YX3!AtXo5QeM9evDAbLqpR9Fw-ARAb-VW5IEczWNQTX1mwAZDmlyLbLs9wreo5NmJFUzGyau3VAyD94OR_rHfwomd-PaNBix$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZRIVED7ONQUQZ7O553YIYQHFAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGA4DKNBRHE__;!!C5qS4YX3!AtXo5QeM9evDAbLqpR9Fw-ARAb-VW5IEczWNQTX1mwAZDmlyLbLs9wreo5NmJFUzGyau3VAyD94OR_rHfwomd-qiF3tv$. You are receiving this because you were mentioned.Message ID: @.***>
Hey @vickerse1, I'm responding to your comment here just to keep everything consolidated in one thread:
"Yes I'm sure then that I just copy pasted this command and still got the indentation and spaces error when I try to start a new run. I will try again I guess, but I don't know why this would be an issue from the command line. It makes sense that it might be an issue when changing the .py file."
I think this suggests that you ran the command mentioned above AFTER an edit had been made to rungui.py and the suite2p developer version was installed.
I'd suggest the following approach to remedy this:
pip uninstall suite2p
pip install suite2p
python -u -W ignore -m suite2p --ops "C:\Users\McCormick Lab\.suite2p\ops\ops.npy" --db "C:\Users\McCormick Lab\.suite2p\ops\db.npy"
in the command line. No lines of code need to be changed here and it should work (seems it worked for you too based on the third comment of this thread?). I've also tested this on my windows machine and this works for pathnames with spaces.
Hi Chris,
OK great I'll try that.
Thanks,
Evan
Sent from my T-Mobile 5G Device Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Chris Ki @.> Sent: Sunday, December 10, 2023 1:25:47 PM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hey @vickerse1https://urldefense.com/v3/__https://github.com/vickerse1__;!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKdStd96b$, I'm responding to your comment here just to keep everything consolidated in one thread:
"Yes I'm sure then that I just copy pasted this command and still got the indentation and spaces error when I try to start a new run. I will try again I guess, but I don't know why this would be an issue from the command line. It makes sense that it might be an issue when changing the .py file."
I think this suggests that you ran the command mentioned above AFTER an edit had been made to rungui.py and the suite2p developer version was installed.
I'd suggest the following approach to remedy this:
No lines of code need to be changed here and it should work (seems it worked for you too based on the third comment of this thread?). I've also tested this on my windows machine and this works for pathnames with spaces.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1849089752__;Iw!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKdy-_O7p$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZTNRPN6R6RHDO3BPGLYIYSFXAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGA4DSNZVGI__;!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKYqVJkIG$. You are receiving this because you were mentioned.Message ID: @.***>
I still think, though, that the result will be that suite2p opens and i can load data, but i cannot do new runs from the gui without the same error recurring.
-evan
Sent from my T-Mobile 5G Device Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Evan Vickers @.> Sent: Sunday, December 10, 2023 1:30:21 PM To: MouseLand/suite2p @.>; MouseLand/suite2p @.> Cc: Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi Chris,
OK great I'll try that.
Thanks,
Evan
Sent from my T-Mobile 5G Device Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Chris Ki @.> Sent: Sunday, December 10, 2023 1:25:47 PM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hey @vickerse1https://urldefense.com/v3/__https://github.com/vickerse1__;!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKdStd96b$, I'm responding to your comment here just to keep everything consolidated in one thread:
"Yes I'm sure then that I just copy pasted this command and still got the indentation and spaces error when I try to start a new run. I will try again I guess, but I don't know why this would be an issue from the command line. It makes sense that it might be an issue when changing the .py file."
I think this suggests that you ran the command mentioned above AFTER an edit had been made to rungui.py and the suite2p developer version was installed.
I'd suggest the following approach to remedy this:
No lines of code need to be changed here and it should work (seems it worked for you too based on the third comment of this thread?). I've also tested this on my windows machine and this works for pathnames with spaces.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1849089752__;Iw!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKdy-_O7p$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZTNRPN6R6RHDO3BPGLYIYSFXAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGA4DSNZVGI__;!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKYqVJkIG$. You are receiving this because you were mentioned.Message ID: @.***>
Hi Chris,
Yes OK great that runs from the command line.
However, I want to run suite2p in the GUI.
What should I do?
Thanks,
Evan
From: Chris Ki @.> Sent: Sunday, December 10, 2023 1:25 PM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hey @vickerse1https://urldefense.com/v3/__https://github.com/vickerse1__;!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKdStd96b$, I'm responding to your comment here just to keep everything consolidated in one thread:
"Yes I'm sure then that I just copy pasted this command and still got the indentation and spaces error when I try to start a new run. I will try again I guess, but I don't know why this would be an issue from the command line. It makes sense that it might be an issue when changing the .py file."
I think this suggests that you ran the command mentioned above AFTER an edit had been made to rungui.py and the suite2p developer version was installed.
I'd suggest the following approach to remedy this:
No lines of code need to be changed here and it should work (seems it worked for you too based on the third comment of this thread?). I've also tested this on my windows machine and this works for pathnames with spaces.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1849089752__;Iw!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKdy-_O7p$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZTNRPN6R6RHDO3BPGLYIYSFXAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGA4DSNZVGI__;!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKYqVJkIG$. You are receiving this because you were mentioned.Message ID: @.***>
Hi Chris,
I modified the line that Carsen suggested in rungui.py, this time making sure to use all spaces, as the other lines used.
Now, I don't get the indentation error.
However, some other line in the code still appears to be calling the wrong path, unquoted w/ the space.
Before you mentioned something about another location in run_s2p.py that needs to be modified.
Could you please tell me where this is?
Thanks,
Evan
From: Evan Vickers @.> Sent: Sunday, December 10, 2023 2:56 PM To: MouseLand/suite2p @.> Cc: Mention @.***> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi Chris,
Yes OK great that runs from the command line.
However, I want to run suite2p in the GUI.
What should I do?
Thanks,
Evan
From: Chris Ki @.> Sent: Sunday, December 10, 2023 1:25 PM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hey @vickerse1https://urldefense.com/v3/__https://github.com/vickerse1__;!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKdStd96b$, I'm responding to your comment here just to keep everything consolidated in one thread:
"Yes I'm sure then that I just copy pasted this command and still got the indentation and spaces error when I try to start a new run. I will try again I guess, but I don't know why this would be an issue from the command line. It makes sense that it might be an issue when changing the .py file."
I think this suggests that you ran the command mentioned above AFTER an edit had been made to rungui.py and the suite2p developer version was installed.
I'd suggest the following approach to remedy this:
No lines of code need to be changed here and it should work (seems it worked for you too based on the third comment of this thread?). I've also tested this on my windows machine and this works for pathnames with spaces.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1849089752__;Iw!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKdy-_O7p$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZTNRPN6R6RHDO3BPGLYIYSFXAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGA4DSNZVGI__;!!C5qS4YX3!Fr6ZHlo9FJXhfLO5i3kF9_dY3AINAdMiQgBnzgZK2Ed2RCpIAddsPd4fwoJ26R7wJJ-cUx1553CUfyrmaMabKYqVJkIG$. You are receiving this because you were mentioned.Message ID: @.***>
how do I fix the issue that "because the ops_file and db_file in the run_s2p function of rungui.py are still not properly set to include the space and all the characters that come after."
?
Thanks,
Evan
From: Chris Ki @.> Sent: Sunday, December 10, 2023 1:09 PM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi @vickerse1https://urldefense.com/v3/__https://github.com/vickerse1__;!!C5qS4YX3!AtXo5QeM9evDAbLqpR9Fw-ARAb-VW5IEczWNQTX1mwAZDmlyLbLs9wreo5NmJFUzGyau3VAyD94OR_rHfwomd-4BUbGp$, hopefully, the comment I added in #1064https://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1064__;!!C5qS4YX3!AtXo5QeM9evDAbLqpR9Fw-ARAb-VW5IEczWNQTX1mwAZDmlyLbLs9wreo5NmJFUzGyau3VAyD94OR_rHfwomd24u2XQp$ explains why you're getting the error related to the tabs. Carsen's suggestion on editing the rungui.py won't entirely fix the issue on the Windows machine (at least when tested on mine) because the ops_file and db_file in the run_s2p function of rungui.py are still not properly set to include the space and all the characters that come after.
Just wondering though, does Carsen's suggestion of including double quotes around the pathnames (ie, python -u -W ignore -m suite2p --ops "C:\Users\McCormick Lab.suite2p\ops\ops.npy" --db "C:\Users\McCormick Lab.suite2p\ops\db.npy") not solve this problem? For apps that run on Windows, it's common to specify double quotes to work with spaces in pathnames. Implementing this fix may also cause issues on Linux machines that use different escape characters to include spaces.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1849085419__;Iw!!C5qS4YX3!AtXo5QeM9evDAbLqpR9Fw-ARAb-VW5IEczWNQTX1mwAZDmlyLbLs9wreo5NmJFUzGyau3VAyD94OR_rHfwomd-PaNBix$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZRIVED7ONQUQZ7O553YIYQHFAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGA4DKNBRHE__;!!C5qS4YX3!AtXo5QeM9evDAbLqpR9Fw-ARAb-VW5IEczWNQTX1mwAZDmlyLbLs9wreo5NmJFUzGyau3VAyD94OR_rHfwomd-qiF3tv$. You are receiving this because you were mentioned.
You can run the gui from the command line using suite2p
. Then, go to File > Load processed data
and put the stat.npy
of your processed data.
I don't know how to make that change yet and wouldn't necessarily call it something to fix as it can complicate suite2p's usage with Linux/Mac OS machines. I'd recommend not changing that portion of the code. Even if this change was made, I believe you'd still have to run the suite2p
command and load the processed data to look at the output
yes loading data into the gui already works without this fix
can you please fix this issue so I can do windows runs from the gui?
couldn't there just be a separate windows version? it's a very common operating system
i still don't understand why this worked in previous versions but doesn't work now
before i would always just run everything in the gui and it would load directly after processing. this still works in linux, and it works in windows but unfortunately not when there's a space in the path name
I can't change the pathname because i have a lot of other stuff there and i think it would be a disaster
thanks
evan
From: Chris Ki @.> Sent: Sunday, December 10, 2023 3:22 PM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
You can run the gui from the command line using suite2p. Then, go to File > Load processed data and put the stat.npy of your processed data.
I don't know how to make that change yet and wouldn't necessarily call it something to fix as it can complicate suite2p's usage with Linux/Mac OS machines. I'd recommend not changing that portion of the code. Even if this change was made, I believe you'd still have to run the suite2p command and load the processed data to look at the output
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1849122355__;Iw!!C5qS4YX3!AaFV4xAQq05Xa91bVOn5sfkpq491GnDZGjNOZLHKPttUukF2Do6AoBRPBCun4KzC2zOc3uNhSuCRKi8BoYcUeCGca7Cp$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZV34A5GKFGDWSAZWRTYIY727AVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGEZDEMZVGU__;!!C5qS4YX3!AaFV4xAQq05Xa91bVOn5sfkpq491GnDZGjNOZLHKPttUukF2Do6AoBRPBCun4KzC2zOc3uNhSuCRKi8BoYcUeKPppYTk$. You are receiving this because you were mentioned.Message ID: @.***>
Ah... Sorry, I misunderstood what you were saying earlier. I did not know you were trying to get things running on the GUI side of things and thought you were just trying to get the python -u -W ignore -m suite2p --ops C:\Users\McCormick Lab\.suite2p\ops\ops.npy --db C:\Users\McCormick Lab\.suite2p\ops\db.npy
command to work.
I can now reproduce the GUI error you're talking about and will try to debug this.
Hi Chris,
OK, cool - thanks. Sorry I wasn't more clear initially.
In the meantime, I've deleted my current Windows version and installed a gui version in WSL (windows subsystem for linux).
Everything works, but when I run "python -m suite2p", I get the following error and the gui does not open:
Should I file a separate github issue for this?
I installed suite2p with the following command:
python -m pip install suite2p[gui]
Should I have installed the developer version instead?
Thanks,
Evan
From: Chris Ki @.> Sent: Sunday, December 10, 2023 3:53 PM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Ah... Sorry, I misunderstood what you were saying earlier. I did not know you were trying to get things running on the GUI side of things and thought you were just trying to get the python -u -W ignore -m suite2p --ops C:\Users\McCormick Lab.suite2p\ops\ops.npy --db C:\Users\McCormick Lab.suite2p\ops\db.npy command to work.
I can now reproduce the GUI error you're talking about and will try to debug this.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1849132132__;Iw!!C5qS4YX3!BKofE2IeRkvJUfgomeTFpygiMhfqQcBB3tZVn4JNjnhPVCGU14OQGc5uLGki21GHQZVYZcXjrQafcl4PNP9gMGbso1vg$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZT2DUJDN2IWNDCAVKDYIZDQBAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGEZTEMJTGI__;!!C5qS4YX3!BKofE2IeRkvJUfgomeTFpygiMhfqQcBB3tZVn4JNjnhPVCGU14OQGc5uLGki21GHQZVYZcXjrQafcl4PNP9gMLX8oukf$. You are receiving this because you were mentioned.Message ID: @.***>
Hi @vickerse1, sorry but I am unable to reproduce your GUI error. It turns out that changing rungui.py to have
cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"'
was the reason on my end.
"It's strange that the .suite2p folder w/ ops keeps going in my "McCormick Lab" folder, even though that is not the user folder corresponding to the active admin account. Could it be that that's where python is installed or some other weird path issue I don't understand?"
Referring back to this, suite2p defaults to your home directory which on Windows is determined by your USERPROFILE environment variable. You can check what yours is set to by calling
echo %USERPROFILE%
on your command line when logged into your active admin account. You'll have to change this on your other account (the one without spaces). Then, I believe the GUI should work normally.
Ok. How do I change it?
Thanks,
Evan
Sent from my T-Mobile 5G Device Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Chris Ki @.> Sent: Monday, December 11, 2023 8:28:19 PM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi @vickerse1https://urldefense.com/v3/__https://github.com/vickerse1__;!!C5qS4YX3!HYoi1o3zRlzTKptduflWKCn9QCPcfJgZhPTrrZ6xpBljJ0P7jglCg2ojWemGp2rvPqwDkoQwHP3qjvCUKX_jdwND63fB$, sorry but I am unable to reproduce your GUI error. It turns out that changing rungui.py to have cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"' was the reason on my end.
"It's strange that the .suite2p folder w/ ops keeps going in my "McCormick Lab" folder, even though that is not the user folder corresponding to the active admin account. Could it be that that's where python is installed or some other weird path issue I don't understand?"
Referring back to this, suite2p defaults to your home directory which on Windows is determined by your USERPROFILE environment variable. You can check what yours is set to by calling echo %USERPROFILE% on your command line when logged into your active admin account. You'll have to change this on your other account (the one without spaces). Then, I believe the GUI should work normally.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1851280935__;Iw!!C5qS4YX3!HYoi1o3zRlzTKptduflWKCn9QCPcfJgZhPTrrZ6xpBljJ0P7jglCg2ojWemGp2rvPqwDkoQwHP3qjvCUKX_jd5Iful0v$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZRS6BD7R5B4LIW7PELYI7MOHAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJRGI4DAOJTGU__;!!C5qS4YX3!HYoi1o3zRlzTKptduflWKCn9QCPcfJgZhPTrrZ6xpBljJ0P7jglCg2ojWemGp2rvPqwDkoQwHP3qjvCUKX_jdxvOeX0Q$. You are receiving this because you were mentioned.Message ID: @.***>
Hi Chris,
Is there a way have suite2p ask the user which folder they want to use, instead of defaulting to the home directory?
I think this would be a good work around. Maybe it's a feature request though?
Thanks,
Evan
Sent from my T-Mobile 5G Device Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Chris Ki @.> Sent: Monday, December 11, 2023 8:28:19 PM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi @vickerse1https://urldefense.com/v3/__https://github.com/vickerse1__;!!C5qS4YX3!HYoi1o3zRlzTKptduflWKCn9QCPcfJgZhPTrrZ6xpBljJ0P7jglCg2ojWemGp2rvPqwDkoQwHP3qjvCUKX_jdwND63fB$, sorry but I am unable to reproduce your GUI error. It turns out that changing rungui.py to have cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"' was the reason on my end.
"It's strange that the .suite2p folder w/ ops keeps going in my "McCormick Lab" folder, even though that is not the user folder corresponding to the active admin account. Could it be that that's where python is installed or some other weird path issue I don't understand?"
Referring back to this, suite2p defaults to your home directory which on Windows is determined by your USERPROFILE environment variable. You can check what yours is set to by calling echo %USERPROFILE% on your command line when logged into your active admin account. You'll have to change this on your other account (the one without spaces). Then, I believe the GUI should work normally.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1851280935__;Iw!!C5qS4YX3!HYoi1o3zRlzTKptduflWKCn9QCPcfJgZhPTrrZ6xpBljJ0P7jglCg2ojWemGp2rvPqwDkoQwHP3qjvCUKX_jd5Iful0v$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZRS6BD7R5B4LIW7PELYI7MOHAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJRGI4DAOJTGU__;!!C5qS4YX3!HYoi1o3zRlzTKptduflWKCn9QCPcfJgZhPTrrZ6xpBljJ0P7jglCg2ojWemGp2rvPqwDkoQwHP3qjvCUKX_jdxvOeX0Q$. You are receiving this because you were mentioned.Message ID: @.***>
Hi Chris,
OK, which of these environment variables to I need to change (see attached image)?
OneDrive? Path? TEMP? TMP?
Which one is "home"?
Thanks,
Evan
From: Chris Ki @.> Sent: Monday, December 11, 2023 8:28 PM To: MouseLand/suite2p @.> Cc: Evan Vickers @.>; Mention @.> Subject: Re: [MouseLand/suite2p] BUG: current version of Suite2p puts default ops and classifiers in Windows 10 Users folder but doesn't account for spaces in path (Issue #1066)
Hi @vickerse1https://urldefense.com/v3/__https://github.com/vickerse1__;!!C5qS4YX3!HYoi1o3zRlzTKptduflWKCn9QCPcfJgZhPTrrZ6xpBljJ0P7jglCg2ojWemGp2rvPqwDkoQwHP3qjvCUKX_jdwND63fB$, sorry but I am unable to reproduce your GUI error. It turns out that changing rungui.py to have cmd = f'-u -W ignore -m suite2p --ops "{ops_file}" --db "{db_file}"' was the reason on my end.
"It's strange that the .suite2p folder w/ ops keeps going in my "McCormick Lab" folder, even though that is not the user folder corresponding to the active admin account. Could it be that that's where python is installed or some other weird path issue I don't understand?"
Referring back to this, suite2p defaults to your home directory which on Windows is determined by your USERPROFILE environment variable. You can check what yours is set to by calling echo %USERPROFILE% on your command line when logged into your active admin account. You'll have to change this on your other account (the one without spaces). Then, I believe the GUI should work normally.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/MouseLand/suite2p/issues/1066*issuecomment-1851280935__;Iw!!C5qS4YX3!HYoi1o3zRlzTKptduflWKCn9QCPcfJgZhPTrrZ6xpBljJ0P7jglCg2ojWemGp2rvPqwDkoQwHP3qjvCUKX_jd5Iful0v$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AJGCDZRS6BD7R5B4LIW7PELYI7MOHAVCNFSM6AAAAABABRWHJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJRGI4DAOJTGU__;!!C5qS4YX3!HYoi1o3zRlzTKptduflWKCn9QCPcfJgZhPTrrZ6xpBljJ0P7jglCg2ojWemGp2rvPqwDkoQwHP3qjvCUKX_jdxvOeX0Q$. You are receiving this because you were mentioned.Message ID: @.***>
Closing this as the conversation thread moved over to #1070.
Describe the issue:
can you please add a way to either put these folders somewhere else, or add quotes or whatever to make the full path literal so that spaces and other escape characters will be included as literal strings in the pathname?
i really don't want to have to change my Windows User name on this university computer etc and i have lots of other stuff there already
thanks,
evan
Reproduce the code example:
Error message:
Version information:
suite2p v0.14.3
but also other recent versions
Context for the issue:
with new runs, the space in the path name results in: Lab.suite2p...etc being taken as the intended path, and it crashes
thanks,
evan