root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # ./test_PCD8544.py Traceback (most recent call last): File "./test_PCD8544.py", line 25, in from mock import Mock, call ImportError: No module named mock 1 root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # history :( 232 screen -S LCD 233 ./lcd.py 234 screen -ls 235 ./shapes.py 237 wget https://github.com/downloads/binerry/RaspberryPi/Raspberry.Pi_PCD8544.Library.zip 238 apt-get install unzip 239 rehash 240 unzip Raspberry.Pi_PCD8544.Library.zip 241 unzip Raspberry.Pi_PCD8544.Library.zip cd "`printf "%b" '\0057usr\0057local'`" 242 gcc -o cpuinfo pcd8544_rpi.c PCD8544.c -lwiringPi 243 gcc -o cpuinfo pcd8544_rpi.c -lwiringPi 244 gcc -o cpuinfo pcd8544_rpi.c -/usr/local/lib -lwiringPi 245 gcc -o cpuinfo pcd8544_rpi.c -L/usr/local/lib -lwiringPi 246 exit 247 mc 248 ./test_PCD8544.py root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # history 232 screen -S LCD 233 ./lcd.py 234 screen -ls 235 ./shapes.py 237 wget https://github.com/downloads/binerry/RaspberryPi/Raspberry.Pi_PCD8544.Library.zip 238 apt-get install unzip 239 rehash 240 unzip Raspberry.Pi_PCD8544.Library.zip 241 unzip Raspberry.Pi_PCD8544.Library.zip cd "`printf "%b" '\0057usr\0057local'`" 242 gcc -o cpuinfo pcd8544_rpi.c PCD8544.c -lwiringPi 243 gcc -o cpuinfo pcd8544_rpi.c -lwiringPi 244 gcc -o cpuinfo pcd8544_rpi.c -/usr/local/lib -lwiringPi 245 gcc -o cpuinfo pcd8544_rpi.c -L/usr/local/lib -lwiringPi 246 exit 247 mc 248 ./test_PCD8544.py root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # root@bananapi ~ # history 232 screen -S LCD 233 ./lcd.py 234 screen -ls 235 ./shapes.py 237 wget https://github.com/downloads/binerry/RaspberryPi/Raspberry.Pi_PCD8544.Library.zip 238 apt-get install unzip 239 rehash 240 unzip Raspberry.Pi_PCD8544.Library.zip 241 unzip Raspberry.Pi_PCD8544.Library.zip cd "`printf "%b" '\0057usr\0057local'`" 242 gcc -o cpuinfo pcd8544_rpi.c PCD8544.c -lwiringPi 243 gcc -o cpuinfo pcd8544_rpi.c -lwiringPi 244 gcc -o cpuinfo pcd8544_rpi.c -/usr/local/lib -lwiringPi 245 gcc -o cpuinfo pcd8544_rpi.c -L/usr/local/lib -lwiringPi 246 exit 247 mc 248* ./test_PCD8544.py root@bananapi ~ # mc root@bananapi ~ # history | grep apt 238 apt-get install unzip root@bananapi ~ # pip install mock Downloading/unpacking mock Downloading mock-1.3.0.tar.gz (70Kb): 70Kb downloaded Running setup.py egg_info for package mock mock requires setuptools>=17.1. Aborting installation Complete output from command python setup.py egg_info: mock requires setuptools>=17.1. Aborting installation ---------------------------------------- Command python setup.py egg_info failed with error code 1 in /root/build/mock Storing complete log in /root/.pip/pip.log 1 root@bananapi ~ # pip insatll --upgrade setuptools :( Usage: pip COMMAND [OPTIONS] pip: error: No command by the name pip insatll (maybe you meant "pip install --upgrade setuptools") 2 root@bananapi ~ # pip install --upgrade setuptools :( Downloading/unpacking setuptools from https://pypi.python.org/packages/source/s/setuptools/setuptools-20.6.7.tar.gz#md5=45d6110f3ec14924e44c33411db64fe6 Downloading setuptools-20.6.7.tar.gz (675Kb): 675Kb downloaded Running setup.py egg_info for package setuptools warning: no files found matching '*.py' under directory '_markerlib' warning: no files found matching '*' under directory 'setuptools/_vendor' Installing collected packages: setuptools Found existing installation: setuptools 3.5.1 Uninstalling setuptools: Successfully uninstalled setuptools Running setup.py install for setuptools warning: no files found matching '*.py' under directory '_markerlib' warning: no files found matching '*' under directory 'setuptools/_vendor' Installing easy_install script to /usr/local/bin Installing easy_install-2.7 script to /usr/local/bin Could not find .egg-info directory in install record for setuptools from https://pypi.python.org/packages/source/s/setuptools/setuptools-20.6.7.tar.gz#md5=45d6110f3ec14924e44c33411db64fe6 in /usr/local/lib/python2.7/dist-packages/setuptools-3.5.1-py2.7.egg Successfully installed setuptools Cleaning up... pip install --upgrade setuptools 8,68s user 0,85s system 75% cpu 12,540 total root@bananapi ~ # rehash root@bananapi ~ # pip install mock Downloading/unpacking mock Downloading mock-1.3.0.tar.gz (70Kb): 70Kb downloaded Running setup.py egg_info for package mock Installed /root/build/mock/.eggs/pbr-1.8.1-py2.7.egg [pbr] Processing SOURCES.txt warning: LocalManifestMaker: standard file '-c' not found warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.gitreview' warning: no previously-included files matching '*.pyc' found anywhere in distribution Downloading/unpacking pbr>=0.11 (from mock) Downloading pbr-1.8.1.tar.gz (104Kb): 104Kb downloaded Running setup.py egg_info for package pbr [pbr] Processing SOURCES.txt warning: LocalManifestMaker: standard file '-c' not found warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.gitreview' warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no files found matching 'requirements.txt' warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.gitreview' warning: no previously-included files matching '*.pyc' found anywhere in distribution Downloading/unpacking six>=1.7 (from mock) Downloading six-1.10.0.tar.gz Running setup.py egg_info for package six no previously-included directories found matching 'documentation/_build' Installing collected packages: mock, pbr, six Running setup.py install for mock [pbr] Generating AUTHORS [pbr] AUTHORS complete (0.0s) [pbr] Reusing existing SOURCES.txt Could not find .egg-info directory in install record for mock Running setup.py install for pbr [pbr] Generating AUTHORS [pbr] AUTHORS complete (0.0s) [pbr] Reusing existing SOURCES.txt Installing pbr script to /usr/local/bin Could not find .egg-info directory in install record for pbr>=0.11 (from mock) Running setup.py install for six no previously-included directories found matching 'documentation/_build' Could not find .egg-info directory in install record for six>=1.7 (from mock) Successfully installed mock pbr six Cleaning up... pip install mock 17,91s user 2,27s system 75% cpu 26,863 total root@bananapi ~ # root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # ./test_PCD8544.py Traceback (most recent call last): File "./test_PCD8544.py", line 25, in from mock import Mock, call File "/usr/local/lib/python2.7/dist-packages/mock/__init__.py", line 2, in import mock.mock as _mock File "/usr/local/lib/python2.7/dist-packages/mock/mock.py", line 83, in import funcsigs ImportError: No module named funcsigs 1 root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # apt-get install pyton-funcsigs Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово E: Не удалось найти пакет pyton-funcsigs 100 root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # apt-get install python-funcsigs :( Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово E: Не удалось найти пакет python-funcsigs 100 root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # pip install --upgrade pip :( Downloading/unpacking pip from https://pypi.python.org/packages/source/p/pip/pip-8.1.1.tar.gz#md5=6b86f11841e89c8241d689956ba99ed7 Downloading pip-8.1.1.tar.gz (1.1Mb): 1.1Mb downloaded Running setup.py egg_info for package pip warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.mailmap' warning: no previously-included files found matching '.travis.yml' warning: no previously-included files found matching '.landscape.yml' warning: no previously-included files found matching 'pip/_vendor/Makefile' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files found matching 'dev-requirements.txt' warning: no previously-included files found matching 'appveyor.yml' no previously-included directories found matching '.github' no previously-included directories found matching '.travis' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'contrib' no previously-included directories found matching 'tasks' no previously-included directories found matching 'tests' Installing collected packages: pip Found existing installation: pip 1.1 Uninstalling pip: Successfully uninstalled pip Running setup.py install for pip warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.mailmap' warning: no previously-included files found matching '.travis.yml' warning: no previously-included files found matching '.landscape.yml' warning: no previously-included files found matching 'pip/_vendor/Makefile' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files found matching 'dev-requirements.txt' warning: no previously-included files found matching 'appveyor.yml' no previously-included directories found matching '.github' no previously-included directories found matching '.travis' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'contrib' no previously-included directories found matching 'tasks' no previously-included directories found matching 'tests' Installing pip script to /usr/local/bin Installing pip2.7 script to /usr/local/bin Installing pip2 script to /usr/local/bin Could not find .egg-info directory in install record for pip from https://pypi.python.org/packages/source/p/pip/pip-8.1.1.tar.gz#md5=6b86f11841e89c8241d689956ba99ed7 in /usr/lib/python2.7/dist-packages Successfully installed pip Cleaning up... pip install --upgrade pip 11,36s user 1,49s system 83% cpu 15,428 total root has logged on pts/2 from 10.215.130.173. root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # pip insatll --upgrade mock ERROR: unknown command "insatll" - maybe you meant "install" 1 root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # pip install --upgrade mock :( /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. SNIMissingWarning /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Requirement already up-to-date: mock in /usr/local/lib/python2.7/dist-packages Requirement already up-to-date: pbr>=0.11 in /usr/local/lib/python2.7/dist-packages (from mock) Requirement already up-to-date: six>=1.7 in /usr/local/lib/python2.7/dist-packages (from mock) Collecting funcsigs (from mock) Downloading funcsigs-0.4-py2.py3-none-any.whl Installing collected packages: funcsigs Successfully installed funcsigs-0.4 /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning pip install --upgrade mock 5,78s user 0,29s system 81% cpu 7,461 total root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # ./test_PCD8544.py root@bananapi /usr/local/src/Adafruit_Nokia_LCD/test (git)-[master] # ./test_PCD8544.py root@bananapi ../local/src/Adafruit_Nokia_LCD/examples (git)-[master] # ./shapes.py Traceback (most recent call last): File "./shapes.py", line 61, in disp = LCD.PCD8544(DC, RST, spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE, max_speed_hz=4000000)) File "build/bdist.linux-armv7l/egg/Adafruit_Nokia_LCD/PCD8544.py", line 62, in __init__ File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/GPIO.py", line 278, in setup TypeError: argument 1 must be string, not int 1 root@bananapi ../local/src/Adafruit_Nokia_LCD/examples (git)-[master] # https://github.com/testing-cabal/mock/issues/316