Menu

Installing Minsky 3.0.1 on Ubuntu 22.04

2023-05-11
2023-08-13
  • albert andreas

    albert andreas - 2023-05-11

    Hi!

    Maybe it's too basic and I'm sure I'm missing something really obvious, but
    I’m having trouble installing Minsky on Ubuntu 22.04, I have the following
    message when I tried to run it, after installation.

    """

    (node:29939) electron: The default of contextIsolation is deprecated and
    will be changing from false to true in a future release of Electron. See
    https://github.com/electron/electron/issues/23506 for more information

    BadWindow (invalid Window parameter)

    [29939:0507/225440.172981:FATAL:gpu_data_manager_impl_private.cc(445)] GPU
    process isn't usable. Goodbye.

    [1] 29939 trace trap (core dumped) minsky

    """

    I tried installing from source and precompiled, both had similar issues
    from the electron package (this is from the precompiled), following the
    recommended link to github didn't help me much.

    I'm installing Minsky version 3.0.1, with the instructions from:

    "
    https://build.opensuse.org/package/binaries/home:hpcoder1/minsky/xUbuntu_23.04
    "

    file: "minsky_3.0.1-1_amd64.deb (74.8 MB)"

    Also with the

    file: "minsky_3.0.1.orig.tar.gz (117 MB)"

    The error

    """

    A JavaScript error occurred in the main process

    Uncaught Exception:

    TypeError: Cannot read property 'setMessageCallback' of null

    at Object.<anonymous>
    (/home/user/Downloads/minsky/minskyjs-3.0.1/resources/app.asar/minsky-electron/main.js:216:13)</anonymous>

    ...

    """

    I don't understand what I could be doing wrong, any ideas?

    My OS:

    VERSION="22.04.2 LTS (Jammy Jellyfish)"

    ID_LIKE=debian

     
  • High Performance Coder

    No it isn't a basic question, but rather a requirement of the way OBS works and the way the Javascript ecosystem works means that Minsky has to be delivered as two separate packages, along with assorted dependencies.

    What you have done by downloading the .deb file is just install the front end package, without any dependencies, including Minsky's entire backend. So you have a two-legged horse as it were. You can repeat the process and install the backend the same way (called minsky-restservice, or minsky-beta-restservice if you installing the beta), but then you will also need to install the dependencies.

    Or you can let apt figure all that stuff out for you, but you will need to add the hpcoder1 repository as a trusted repository on your Ubuntu system. Instructions are available on the OBS download page.

    The various scary messages above:`
    node:29939) electron: The default of contextIsolation is deprecated and
    will be changing from false to true in a future release of Electron. See
    https://github.com/electron/electron/issues/23506 for more information

    BadWindow (invalid Window parameter)

    [29939:0507/225440.172981:FATAL:gpu_data_manager_impl_private.cc(445)] GPU
    process isn't usable. Goodbye.

    [1] 29939 trace trap (core dumped) minsky`

    don't seem to mean much. But

    TypeError: Cannot read property 'setMessageCallback' of null

    tells you that the backend is not available. Sorry the error messages are so cryptic.

     
    • albert andreas

      albert andreas - 2023-08-13

      Hello again, coming back to this after many months. After your response, I tried the installation a few (too many) times, but I was unsuccessful. I've been pushing myself to linux for the last 5 months but still a novice. I've been just an old fashion economist for too long I guess.

      I found a post from many years ago, I would like to know your opinion if this method still holds to build Minsky from source.

      https://sourceforge.net/p/minsky/discussion/general/thread/3d8e0d56/#096c

      Cheers

      PS: About your last post "Sorry the error messages are so cryptic.", I think it's I'm so new to linux I don't understand most of whats going on.

       

Log in to post a comment.