MSWin11 + Anaconda, Neuron 8.2.2

Post Reply
maciejkasprzycki
Posts: 2
Joined: Mon Aug 14, 2023 9:50 am

MSWin11 + Anaconda, Neuron 8.2.2

Post 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
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: MSWin11 + Anaconda, Neuron 8.2.2

Post 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?
ramcdougal
Posts: 267
Joined: Fri Nov 28, 2008 3:38 pm
Location: Yale School of Public Health

Re: MSWin11 + Anaconda, Neuron 8.2.2

Post 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.
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: MSWin11 + Anaconda, Neuron 8.2.2

Post by ted »

For what it's worth
Might that also avoid the failure of neurondemo?
maciejkasprzycki
Posts: 2
Joined: Mon Aug 14, 2023 9:50 am

Re: MSWin11 + Anaconda, Neuron 8.2.2

Post 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!
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: MSWin11 + Anaconda, Neuron 8.2.2

Post by ted »

I'm very sorry you had all this difficulty. Looks like Win 11 has created some new work for us.
hines
Site Admin
Posts: 1691
Joined: Wed May 18, 2005 3:32 pm

Re: MSWin11 + Anaconda, Neuron 8.2.2

Post 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
Post Reply