-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trouble with pip installation on a mac #274
Comments
since you are in a new environment, you need to run "pip install NEURON" again. Also can you share what you get with: $ which python
$ echo $PYTHONPATH |
pip install NEURON gave the same error ? $which python produced /Applications/anaconda/envs/hnn/bin/python perhaps this is the problem, there is no longer folder named Appllications/NEURON-7.5 on my computer.. I'm not sure why its point here? |
Just to be clear, I think this is just the python install of HNN?
Yeah, this makes sense. Old installs of NEURON had users add lines to the files |
yeah you need to unset $PYTHONPATH |
ok.. I did see that in both ~/.bashrc and ~/.bash_profile and removed that line from both However, I am getting the same error after I run Fatal Python error: initfsencoding: unable to load the file system codec Current thread 0x000000010dd605c0 (most recent call first): |
And yes, I'm trying to install the python installation of HNN without a docker.. which as I understand, the python installation should run the GUI version ? |
you need to unset PYTHONPATH and PYTHONHOME. You are still getting /Applications/NEURON-7.8/lib/python when you do "echo $PYTHONPATH". It should return nothing ... $ unset PYTHONPATH
$ unset PYTHONHOME |
Yeah, it will (or should) once this issue is fixed. |
OK.. now we are getting somewhere... when I ran the check It said PYTHONHOME is set. This is not recommended. I'm not sure why because I "unset PYTHONPATH", but I typed "PYTHONHOME=/Applications/anaconda" and this fixed that issue.. I'm also getting NRN_PYLIB is set. This is most likely not wanted and can prevent HNN from and typing "NRN_PYLIB=/Applications/anaconda/bin/../lib/libpython3.6m.dylib " does not fix this issue ? |
should I ignore this issue and continue with installation? |
Yeah, that is okay to continue. It'll be best if you don't have any of those variables set. Using If there are problems later after restarting terminal, then make sure none of those 3 variables are set in |
Ran into another snag, when I got to nrnivmodl mod Current thread 0x00000001152b15c0 (most recent call first): |
It looks like you have the PYTHONPATH/PYTHONHOME issue again. Can you make sure it's unset and try the command above again? |
Ok. I'm now up and running! I'm not sure why those paths didn't clear the first time, but they seem to be gone now and I'm up and running! |
Thanks for the help. I suggest we add a note in the instructions to clear these paths before starting the installation procedure ,and make a note that if they had an earlier version of NEURON they may need to remove from ~/.bash_profile and ~/.bashrc . |
Changing |
I recently installed hnn_core and it broke my docker installation of HNN GUI
I am attempting the pip installation for mac
I ran the prechecks and it appears Xquartz, NEURON, and python are all installed properly
I ran $ conda create -y -n hnn python=3.7 openmpi pyqtgraph pyopengl matplotlib scipy psutil , and all seem to go well.
I got to this step
I ran $source activate hnn , without issue
I ran $pip install nlopt , and have an error.. I left of NEURON in this step because I think NEURON is installed properly
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x000000010918d5c0 (most recent call first):
Abort trap: 6
The text was updated successfully, but these errors were encountered: