I had some trouble with 1.3.7 upgrade through the web interface. It kept indicating it had completed, but it had actually failed. The error had to do with a dependency not being available, but the prompt to reload the page covered the message so I can't post it here. I followed the manual instructions for a latest install (not from source) and I've had two problems so far. I'm a pretty long-term linux user and python dabbler, so I'm trying to troubleshoot myself to give you all I can.
pip did not like the SSL cert for the url. It looks like you may need to add the subject alternate name from the looks of it to me. I was able to get by this by simply passing the command to trust the cert like this: pip install --trusted-host get.octoprint.org install https://get.octoprint.org/latest
It did not like my perms on /usr/lib/python2.7/dist-packages.
Regarding number two, initially it complained that it couldn't created werkzeug directory under there, so I went ahead and added the pi account to the staff group since that had group ownership of the area. That also did not work, so I went ahead and created werkzeug directory in that location /usr/lib/python2.7/dist-packages and made sure staff group had permissions to that new directory.
I got further, but then it tossed an error that it couldn't create another new file: /usr/local/lib/python2.7/dist-packages/Werkzeug-0.8.3.egg-info. All my pi home directories are permed properly and it looks like root owns the install in /usr/local (which would make sense). At this point, I temporary opened perms to any valid account to that directory with a chmod -R ugo+rwx /usr/lib/python2.7 and tried again.
This got me a lot further, but then I ran into problems removing old files in the /usr/lib/python2.7 directory that appear to be root:root owned so I decided to chown the entire /usr/local/lib/python2.7 and /usr/lib/python2.7 folder to pi:pi and removed rwx permissions to other recursively from /usr/local/lib/python2.7/ that I had previously added. I don't use this machine for any other purpose so this is probably the safest method.
- Once I thought I had solved the permissions issue, I no longer could run the pip install command. It appeared to have lost my environment variables:
"Consider setting $PYTHONHOME to [:<exec_prefix>]
Traceback (most recent call last):
File "./pip", line 5, in
from pkg_resources import load_entry_point
File "/home/pi/oprint/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 17, in
from urlparse import urlparse, urlunparse
ImportError: No module named urlparse
Well since I don't know what the environment was before, I'm a little lost at this point. I'm going to go looking around a bit more and see if I can't get back the python environment and retry, but thought I'd share this latest experience in case it helps you or others!