Hi,
I'm trying to use Biscuit to convert MEG Data to BIDS on Ubuntu 22.04.
Describe the bug
I installed Biscuit according to the instructions on https://macquarie-meg-research.github.io/Biscuit/installation/ using the "Complete" Install.
When I try to run Biscuit (either directly from the command line using "Biscuit" or from within Python 3.10, I get the error:
Traceback (most recent call last):
File "", line 1, in
File "/home/neuraltrain/anaconda3/lib/python3.10/site-packages/Biscuit/init.py", line 16, in run
m = MainWindow(master=root)
File "/home/neuraltrain/anaconda3/lib/python3.10/site-packages/Biscuit/Windows/MainWindow.py", line 72, in init
self._load_settings()
File "/home/neuraltrain/anaconda3/lib/python3.10/site-packages/Biscuit/Windows/MainWindow.py", line 164, in _load_settings
if not op.exists(self.settings["DATA_PATH"]):
File "/home/neuraltrain/anaconda3/lib/python3.10/genericpath.py", line 19, in exists
os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not tuple
To Reproduce
- install Biscuit on Ubuntu 3.10: (base) neuraltrain@neuraltrain-laptop:~$ pip install -U https://github.com/Macquarie-MEG-Research/Biscuit/releases/download/v0.9.9/Biscuit-0.9.9complete-py3-none-any.whl
- Run Biscuit: (base) neuraltrain@neuraltrain-laptop:~$ Biscuit
- Alternatively, open Python, import "run" from Biscuit and run():
(base) neuraltrain@neuraltrain-laptop:~$ python3
Python 3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
from Biscuit import run
run()
Expected behavior
On Windows, starting Biscuit directly from the command line does not work, but starting from within Python works.
Error message produced
Traceback (most recent call last):
File "", line 1, in
File "/home/neuraltrain/anaconda3/lib/python3.10/site-packages/Biscuit/init.py", line 16, in run
m = MainWindow(master=root)
File "/home/neuraltrain/anaconda3/lib/python3.10/site-packages/Biscuit/Windows/MainWindow.py", line 72, in init
self._load_settings()
File "/home/neuraltrain/anaconda3/lib/python3.10/site-packages/Biscuit/Windows/MainWindow.py", line 164, in _load_settings
if not op.exists(self.settings["DATA_PATH"]):
File "/home/neuraltrain/anaconda3/lib/python3.10/genericpath.py", line 19, in exists
os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not tuple
Operating system/Python environment
- OS: Ubuntu 3.10
- Python version and install method: Python 3.10.10 | packaged by conda-forge
- Current version of MNE : 1.3.1
Additional context
When first also importing MNE, the error message changes to:
Traceback (most recent call last):
File "", line 1, in
File "/home/neuraltrain/anaconda3/envs/mne/lib/python3.10/site-packages/Biscuit/init.py", line 16, in run
m = MainWindow(master=root)
File "/home/neuraltrain/anaconda3/envs/mne/lib/python3.10/site-packages/Biscuit/Windows/MainWindow.py", line 53, in init
self.master.tk.call('wm', 'iconphoto', self.master._w, img)
_tkinter.TclError: can't use "pyimage2" as iconphoto: not a photo image
Thanks a lot for your help!
Best,
Julian