Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Missing Menu/spyder-menu.json on Linux 8.3

16 views
Skip to first unread message

Chuck Banken

unread,
Dec 3, 2024, 1:31:02 PM12/3/24
to spyder
Hi All,

Attempted to upgrade my spyder installation from 6.0.0 to 6.0.2.

The update aborted with:
FileNotFoundError: [Errno 2] No such file or directory: '/home/cbanken/miniforge3/envs/spyder-env/Menu/spyder-menu.jsodone

spyder launches, but pandas module is missing.

Using miniforge3.

I can confirm that pandas is missing in spyder-env using conda commands.

conda doctor -v -n spyder-env
Missing Files:
spyder-6.0.2-linux_pyh62a8a7d_4:
  Menu/spyder-menu.json
  Menu/spyder-menu.json

I deleted spyder-env and tried re-installing from scratch. No joy. Even the uninstall complains with errors.

conda remove -n spyder-env --all

Executing transaction: | menuinst Exception
Traceback (most recent call last):
  File "/home/cbanken/miniforge3/lib/python3.10/site-packages/conda/gateways/disk/create.py", line 261, in make_menu
    menuinst.install(
  File "/home/cbanken/miniforge3/lib/python3.10/site-packages/menuinst/api.py", line 146, in _install_adapter
    with open(json_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/cbanken/miniforge3/envs/spyder-env/Menu/spyder-menu.json'menuinst Exception
Traceback (most recent call last):
  File "/home/cbanken/miniforge3/lib/python3.10/site-packages/conda/gateways/disk/create.py", line 261, in make_menu
    menuinst.install(
  File "/home/cbanken/miniforge3/lib/python3.10/site-packages/menuinst/api.py", line 146, in _install_adapter
    with open(json_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/cbanken/miniforge3/envs/spyder-env/Menu/spyder-menu.jsodone
Traceback (most recent call last):
  File "/home/cbanken/miniforge3/lib/python3.10/site-packages/conda/gateways/disk/create.py", line 261, in make_menu
    menuinst.install(
  File "/home/cbanken/miniforge3/lib/python3.10/site-packages/menuinst/api.py", line 146, in _install_adapter
    with open(json_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/cbanken/miniforge3/envs/spyder-env/Menu/spyder-menu.json'menuinst Exception
Traceback (most recent call last):
  File "/home/cbanken/miniforge3/lib/python3.10/site-packages/conda/gateways/disk/create.py", line 261, in make_menu
    menuinst.install(
  File "/home/cbanken/miniforge3/lib/python3.10/site-packages/menuinst/api.py", line 146, in _install_adapter
    with open(json_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/cbanken/miniforge3/envs/spyder-env/Menu/spyder-menu.jsodone

Suggestions?

Thanks,
Chuck Banken


Chuck Banken

unread,
Dec 3, 2024, 2:46:36 PM12/3/24
to spyder
Worked around the error. I stubbed out this python function that was issuing the error. Sypder seems to be working OK at the moment. At least pandas is working.
function in miniforge3/lib/python3.10/site-packages/conda/gateways/disk/create.py
def make_menu(prefix, file_path, remove=True):
    pass # I stubbed this out.
    """
    Create cross-platform menu items (e.g. Windows Start Menu)

    Passes all menu config files %PREFIX%/Menu/*.json to ``menuinst.install``.
    ``remove=True`` will remove the menu items.
    """
    '''
    try:
        import menuinst

        menuinst.install(
            join(prefix, win_path_ok(file_path)),
            remove=remove,
            prefix=prefix,
            root_prefix=context.root_prefix,
        )
    except Exception:
        stdoutlog.error("menuinst Exception", exc_info=True)
    '''


Daniel Althviz Moré

unread,
Dec 10, 2024, 8:05:44 PM12/10/24
to spyder
Hi Chuck,

I think this could be related with an issue that was happening on Windows: Menuinst error related with the reset shortcut · Issue #23203 · spyder-ide/spyder A PR fixing that over the Spyder feedstock was done (Split spyder-menu.json into unix and windows versions. by mrclary · Pull Request #208 · conda-forge/spyder-feedstock) and a new Spyder 6.0.2 conda build was done. Also we just released on conda-forge Spyder 6.0.3 which should also fix the menuinst error you were seeing.

Let is know if the info above helps!

Best regards,

Daniel
Reply all
Reply to author
Forward
0 new messages