Page 1 of 1

MSWin11 + Anaconda, Neuron 8.2.2

Posted: Mon Aug 21, 2023 7:20 am
by maciejkasprzycki
Hi,
when i try to run a command neurondemo on bash I get:

Code: Select all

bash-5.2$ neurondemo
/cygdrive/c/nrn/bin/neurondemo: line 2: cd: /demo: No such file or directory
NEURON -- VERSION 8.2.2+ HEAD (93d41fafd+) 2022-12-15
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2022
See http://neuron.yale.edu/neuron/credits

loading membrane mechanisms from C:/nrn/mingw/demo/release/nrnmech.dll
dlopen failed -
"C:\nrn\mingw\demo\release\nrnmech.dll": Nie mo┐na odnalečŠ okreťlonego modu│u.
cygcheck: could not find 'C:/Users/macie/AppData/Local/Microsoft/WindowsApps/PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0/python.exe'

0 C:\nrn\bin\nrniv.exe: can't open demo.hoc
oc>
Also every time I try to open a hoc fil, it says:

Code: Select all

>>> NEURON: ccanl is not a MECHANISM
 in BasketCell.hoc near line 91
                insert ccanl
              ^
        xopen("BasketCell.hoc")
      NEURONMainMenu[0].execute1("{xopen("Ba...")
    NEURONMainMenu[0].load_file(0, "C:/Users/m...")
  NEURONMainMenu[0].load("*.hoc", 0)
and others
However, I can import neuron and run the GUI from Anaconda Prompt without any problem. I've tried to reinstall both Python and NEURON and it has not helped.

Thanks in advance for any help

Re: MSWin11 + Anaconda, Neuron 8.2.2

Posted: Mon Aug 21, 2023 11:31 am
by ted
Well, if the bash terminal is having problems under Win 11, maybe Anaconda will still work OK with NEURON.
I can import neuron and run the GUI from Anaconda Prompt without any problem.
What happens if you execute
neurondemo
in the Anaconda terminal?

Does NEURON print a message that starts with
"loading membrane mechanisms from . . . "
and do you now see several panels?

And if that succeeds, what happens if (still in the Anaconda terminal) you cd to the directory that contains the mod files used by Basketcell.hoc, and execute nrnivmodl there?

If that succeeds, then in the same directory execute
nrngui
Do you now see a
"loading membrane mechanisms "
message?

Re: MSWin11 + Anaconda, Neuron 8.2.2

Posted: Tue Aug 22, 2023 6:44 pm
by ramcdougal
For what it's worth, I always use a regular windows terminal (cmd) and not bash on Windows.

Bash is historically more of a linux/mac thing.

Re: MSWin11 + Anaconda, Neuron 8.2.2

Posted: Tue Aug 22, 2023 11:57 pm
by ted
For what it's worth
Might that also avoid the failure of neurondemo?

Re: MSWin11 + Anaconda, Neuron 8.2.2

Posted: Wed Aug 23, 2023 10:38 am
by maciejkasprzycki
I've tried all of this, still get errors. So eventually I've switched to another computer with MacOS, and now everything works perfectly.

Thank you for your help and everything what you do around NEURON, really appreciate it!

Re: MSWin11 + Anaconda, Neuron 8.2.2

Posted: Wed Aug 23, 2023 12:43 pm
by ted
I'm very sorry you had all this difficulty. Looks like Win 11 has created some new work for us.

Re: MSWin11 + Anaconda, Neuron 8.2.2

Posted: Wed Aug 30, 2023 4:35 pm
by hines
Perhaps this is now somewhat stale. But if your windows11 computer is available, I would be happy to have a zoom meeting where you could share your screen and we might work through the issue. If you wish to proceed, contact me at michael dot hines at yale dot edu. The first thing to diagnose is the reason for the missing path prefix to demo in

Code: Select all

/cygdrive/c/nrn/bin/neurondemo: line 2: cd: /demo: No such file or directory