Trying and getting this error:
pi@emonpi(rw):emonupload$ pip install -r requirements.txt
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 1))
Downloading/unpacking gitpython (from -r requirements.txt (line 2))
Downloading GitPython-2.1.0-py2.py3-none-any.whl (441kB): 441kB downloaded
Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 3))
Downloading/unpacking gitdb2>=2.0.0 (from gitpython->-r requirements.txt (line 2))
Downloading gitdb2-2.0.0-py2.py3-none-any.whl (63kB): 63kB downloaded
Downloading/unpacking smmap2>=2.0.0 (from gitdb2>=2.0.0->gitpython->-r requirements.txt (line 2))
Downloading smmap2-2.0.1-py2.py3-none-any.whl
Installing collected packages: gitpython, gitdb2, smmap2
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 295, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files
pycompile=self.pycompile,
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 214, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 204, in clobber
os.makedirs(destdir)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/GitPython-2.1.0.dist-info'
Storing debug log for failure in /home/pi/.pip/pip.log
pi@emonpi(rw):emonupload$ ./emonupload.py
Traceback (most recent call last):
File "./emonupload.py", line 12, in <module>
import serial, sys, string, commands, time, subprocess, os, urllib2, requests, urllib, json, git
ImportError: No module named git
pi@emonpi(rw):emonupload$ sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
git is already the newest version.
git set to manually installed.
libssl-dev is already the newest version.
libssl-dev set to manually installed.
make is already the newest version.
make set to manually installed.
python-pip is already the newest version.
zlib1g-dev is already the newest version.
zlib1g-dev set to manually installed.
The following extra packages will be installed:
bzip2-doc libreadline6-dev libtinfo-dev
Suggested packages:
readline-doc sqlite3-doc
The following NEW packages will be installed:
bzip2-doc libbz2-dev libreadline-dev libreadline6-dev libsqlite3-dev libtinfo-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 488 kB/993 kB of archives.
After this operation, 2,514 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libsqlite3-dev armhf 3.8.7.1-1+deb8u1
404 Not Found [IP: 5.153.225.207 80]
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/s/sqlite3/libsqlite3-dev_3.8.7.1-1+deb8u1_armhf.deb 404 Not Found [IP: 5.153.225.207 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?