Pynab
|
Posts: 23
Threads: 1
Joined: Nov 2015
Reputation:
1
[Not Solved]
Nov 05, 2015, 10:08 PM
Well, I feel a tiny bit closer. After changing the permissions... more permission problems Should I just go back and do this all as root? This is in my lab for my own use, so I am not really too worried.
Code:
python3 pynab.py api
error: <class 'socket.error'>, [Errno 13] Permission denied: file: /usr/lib/python2.7/socket.py line: 224
And if by headers you mean the pre-import, yes:
Code:
pre-import: Failures: []
Install complete in 1341.05s
Now: activate some groups, activate desired blacklists, and run pynab.py with python3.
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Not Solved]
Nov 05, 2015, 10:12 PM
OK good so install worked and the database and tables exist with the pre import completed.
You should be able to just sudo any of the python3 commands to resolve any permission issues but if you continue getting these errors it may be worth doing sudo -i and executing the rest just for testing purposes. It would be useful to know which commands require sudo, however so please do post them here.
Posts: 23
Threads: 1
Joined: Nov 2015
Reputation:
1
[Not Solved]
Nov 05, 2015, 10:14 PM
(This post was last modified: Nov 05, 2015, 10:36 PM by xvpx.)
Fair enough. I was keeping notes. So far the only thing I had to do differently was the any of the pip-3.2 commands I had to shorten to just pip3.
Well, I reboot same issue. sudo didn't help and sudo -i:
Code:
root@PYNAB:/opt/pynab# python3 pynab.py api
pynab:api: ERROR (abnormal termination)
Edit: I am not even sure how to tell what the issue is as it only writes "started pynab logger" to the log.
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Not Solved]
Nov 05, 2015, 10:49 PM
hmm, I am just going to send the latest version of the guide in case it's different. Are you using the supervisor program? Check the log files for some hints maybe in /var/log/pynab
For completeness, I used debian 8 x64, you may be using python 3.4 or 3.5 instead of 3.2. I primarily use 2.7.10 and am not up to date with any differences between python 3 versions unfortunately.
Posts: 23
Threads: 1
Joined: Nov 2015
Reputation:
1
[Not Solved]
Nov 05, 2015, 10:55 PM
Quote:Check the log files for some hints maybe in /var/log/pynab
You may have missed my edit but: "I am not even sure how to tell what the issue is as it only writes "started pynab logger" to the log."
I will spin up a new VM and run through it again. This usually is as far as I get every time lol, so I just happy to have some help this time. I will let you know.
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Not Solved]
Nov 05, 2015, 11:00 PM
OK then check the guide I sent, when you use supervisor there should be more log files in there (it autostarts a bunch of the pynab things).
I can tell you I did get get the pynab api running on port 8080 and could open the socket in a browser so it is possible! At least it was on the master branch on Debian 8 x64.
It may help to get the dev's feedback, he responded within a day when I wrote to him initially.
If you have the time, I am sure we can get it to work with some perseverance
Posts: 23
Threads: 1
Joined: Nov 2015
Reputation:
1
[Not Solved]
Nov 05, 2015, 11:20 PM
(This post was last modified: Nov 05, 2015, 11:32 PM by xvpx.)
(Nov 05, 2015, 11:00 PM)Mike Wrote: OK then check the guide I sent, when you use supervisor there should be more log files in there (it autostarts a bunch of the pynab things).
I can tell you I did get get the pynab api running on port 8080 and could open the socket in a browser so it is possible! At least it was on the master branch on Debian 8 x64.
It may help to get the dev's feedback, he responded within a day when I wrote to him initially.
If you have the time, I am sure we can get it to work with some perseverance
Oh, I installed the supervisor but didn't use it to start anything. As for my python version, it looks to be 2.7.6 so I "should" be ok there. I will give the supervisor a go, and then a new vm.
Code:
python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.7/site.pyc matches /usr/lib/python2.7/site.py
import site # precompiled from /usr/lib/python2.7/site.pyc
# /usr/lib/python2.7/os.pyc matches /usr/lib/python2.7/os.py
import os # precompiled from /usr/lib/python2.7/os.pyc
import errno # builtin
import posix # builtin
# /usr/lib/python2.7/posixpath.pyc matches /usr/lib/python2.7/posixpath.py
import posixpath # precompiled from /usr/lib/python2.7/posixpath.pyc
# /usr/lib/python2.7/stat.pyc matches /usr/lib/python2.7/stat.py
import stat # precompiled from /usr/lib/python2.7/stat.pyc
# /usr/lib/python2.7/genericpath.pyc matches /usr/lib/python2.7/genericpath.py
import genericpath # precompiled from /usr/lib/python2.7/genericpath.pyc
# /usr/lib/python2.7/warnings.pyc matches /usr/lib/python2.7/warnings.py
import warnings # precompiled from /usr/lib/python2.7/warnings.pyc
# /usr/lib/python2.7/linecache.pyc matches /usr/lib/python2.7/linecache.py
import linecache # precompiled from /usr/lib/python2.7/linecache.pyc
# /usr/lib/python2.7/types.pyc matches /usr/lib/python2.7/types.py
import types # precompiled from /usr/lib/python2.7/types.pyc
# /usr/lib/python2.7/UserDict.pyc matches /usr/lib/python2.7/UserDict.py
import UserDict # precompiled from /usr/lib/python2.7/UserDict.pyc
# /usr/lib/python2.7/_abcoll.pyc matches /usr/lib/python2.7/_abcoll.py
import _abcoll # precompiled from /usr/lib/python2.7/_abcoll.pyc
# /usr/lib/python2.7/abc.pyc matches /usr/lib/python2.7/abc.py
import abc # precompiled from /usr/lib/python2.7/abc.pyc
# /usr/lib/python2.7/_weakrefset.pyc matches /usr/lib/python2.7/_weakrefset.py
import _weakrefset # precompiled from /usr/lib/python2.7/_weakrefset.pyc
import _weakref # builtin
# /usr/lib/python2.7/copy_reg.pyc matches /usr/lib/python2.7/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.7/copy_reg.pyc
# /usr/lib/python2.7/traceback.pyc matches /usr/lib/python2.7/traceback.py
import traceback # precompiled from /usr/lib/python2.7/traceback.pyc
# /usr/lib/python2.7/sysconfig.pyc matches /usr/lib/python2.7/sysconfig.py
import sysconfig # precompiled from /usr/lib/python2.7/sysconfig.pyc
# /usr/lib/python2.7/re.pyc matches /usr/lib/python2.7/re.py
import re # precompiled from /usr/lib/python2.7/re.pyc
# /usr/lib/python2.7/sre_compile.pyc matches /usr/lib/python2.7/sre_compile.py
import sre_compile # precompiled from /usr/lib/python2.7/sre_compile.pyc
import _sre # builtin
# /usr/lib/python2.7/sre_parse.pyc matches /usr/lib/python2.7/sre_parse.py
import sre_parse # precompiled from /usr/lib/python2.7/sre_parse.pyc
# /usr/lib/python2.7/sre_constants.pyc matches /usr/lib/python2.7/sre_constants.py
import sre_constants # precompiled from /usr/lib/python2.7/sre_constants.pyc
# /usr/lib/python2.7/_sysconfigdata.pyc matches /usr/lib/python2.7/_sysconfigdata.py
import _sysconfigdata # precompiled from /usr/lib/python2.7/_sysconfigdata.pyc
# /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.pyc matches /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.py
import _sysconfigdata_nd # precompiled from /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.pyc
# /usr/lib/python2.7/sitecustomize.pyc matches /usr/lib/python2.7/sitecustomize.py
import sitecustomize # precompiled from /usr/lib/python2.7/sitecustomize.pyc
import encodings # directory /usr/lib/python2.7/encodings
# /usr/lib/python2.7/encodings/__init__.pyc matches /usr/lib/python2.7/encodings/__init__.py
import encodings # precompiled from /usr/lib/python2.7/encodings/__init__.pyc
# /usr/lib/python2.7/codecs.pyc matches /usr/lib/python2.7/codecs.py
import codecs # precompiled from /usr/lib/python2.7/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.7/encodings/aliases.pyc matches /usr/lib/python2.7/encodings/aliases.py
import encodings.aliases # precompiled from /usr/lib/python2.7/encodings/aliases.pyc
# /usr/lib/python2.7/encodings/utf_8.pyc matches /usr/lib/python2.7/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/lib/python2.7/encodings/utf_8.pyc
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so", 2);
import readline # dynamically loaded from /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so
EDIT: Supervisor log shows the following:
Code:
2015-11-05 17:38:17,353 INFO spawned: 'api' with pid 1475
2015-11-05 17:38:17,527 INFO exited: api (exit status 1; not expected)
2015-11-05 17:38:18,528 INFO gave up: api entered FATAL state, too many start retries too quickly
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Not Solved]
Nov 05, 2015, 11:59 PM
It is concerning me that it is using python 2.7 when it should be using python3 (the 3 is significant). It further concerns me that you couldn't use pip-3.2 like I could on Debian 7 x64 (I have too many VMs, it was not Debian 8 - though I can't see why this would matter) to install some of the modules.
python3 -v gives me
Python 3.2.3 (default, Feb 20 2013, 14:44:27)
Which distro are you using?
Posts: 23
Threads: 1
Joined: Nov 2015
Reputation:
1
[Not Solved]
Nov 06, 2015, 12:04 AM
(This post was last modified: Nov 06, 2015, 12:08 AM by xvpx.)
Hmm I just spun up a debian 8 x64 vm and still can't use pip-3.2, I have to use pip3. this is going to hurt:
Code:
root@pynab-server:~/unrar# pip-3.2 install docopt colorlog psycopg2 sqlalchemy regex
bash: pip-3.2: command not found
root@pynab-server:~/unrar# pip3 install docopt colorlog psycopg2 sqlalchemy regex
Downloading/unpacking docopt
Downloading docopt-0.6.2.tar.gz
Running setup.py (path:/tmp/pip-build-cikqy60_/docopt/setup.py) egg_info for package docopt
Downloading/unpacking colorlog
Downloading colorlog-2.6.0-py2.py3-none-any.whl
Downloading/unpacking psycopg2
Downloading psycopg2-2.6.1.tar.gz (371kB): 371kB downloaded
Running setup.py (path:/tmp/pip-build-cikqy60_/psycopg2/setup.py) egg_info for package psycopg2
Downloading/unpacking sqlalchemy
Downloading SQLAlchemy-1.0.9.tar.gz (4.7MB): 4.7MB downloaded
Running setup.py (path:/tmp/pip-build-cikqy60_/sqlalchemy/setup.py) egg_info for package sqlalchemy
warning: no files found matching '*.jpg' under directory 'doc'
warning: no files found matching '*.mako' under directory 'doc'
warning: no files found matching 'distribute_setup.py'
warning: no files found matching 'sa2to3.py'
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'doc/build/output'
Downloading/unpacking regex
Downloading regex-2015.10.29.tar.gz (568kB): 568kB downloaded
Running setup.py (path:/tmp/pip-build-cikqy60_/regex/setup.py) egg_info for package regex
Installing collected packages: docopt, colorlog, psycopg2, sqlalchemy, regex
Running setup.py install for docopt
Running setup.py install for psycopg2
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
building 'psycopg2._psycopg' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.4/psycopg/psycopgmodule.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/green.c -o build/temp.linux-x86_64-3.4/psycopg/green.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/pqpath.c -o build/temp.linux-x86_64-3.4/psycopg/pqpath.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/utils.c -o build/temp.linux-x86_64-3.4/psycopg/utils.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/bytes_format.c -o build/temp.linux-x86_64-3.4/psycopg/bytes_format.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/connection_int.c -o build/temp.linux-x86_64-3.4/psycopg/connection_int.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/connection_type.c -o build/temp.linux-x86_64-3.4/psycopg/connection_type.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/cursor_int.c -o build/temp.linux-x86_64-3.4/psycopg/cursor_int.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/cursor_type.c -o build/temp.linux-x86_64-3.4/psycopg/cursor_type.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/diagnostics_type.c -o build/temp.linux-x86_64-3.4/psycopg/diagnostics_type.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/error_type.c -o build/temp.linux-x86_64-3.4/psycopg/error_type.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/lobject_int.c -o build/temp.linux-x86_64-3.4/psycopg/lobject_int.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/lobject_type.c -o build/temp.linux-x86_64-3.4/psycopg/lobject_type.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/notify_type.c -o build/temp.linux-x86_64-3.4/psycopg/notify_type.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/xid_type.c -o build/temp.linux-x86_64-3.4/psycopg/xid_type.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/adapter_asis.c -o build/temp.linux-x86_64-3.4/psycopg/adapter_asis.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/adapter_binary.c -o build/temp.linux-x86_64-3.4/psycopg/adapter_binary.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/adapter_datetime.c -o build/temp.linux-x86_64-3.4/psycopg/adapter_datetime.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/adapter_list.c -o build/temp.linux-x86_64-3.4/psycopg/adapter_list.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/adapter_pboolean.c -o build/temp.linux-x86_64-3.4/psycopg/adapter_pboolean.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/adapter_pdecimal.c -o build/temp.linux-x86_64-3.4/psycopg/adapter_pdecimal.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/adapter_pint.c -o build/temp.linux-x86_64-3.4/psycopg/adapter_pint.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/adapter_pfloat.c -o build/temp.linux-x86_64-3.4/psycopg/adapter_pfloat.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/adapter_qstring.c -o build/temp.linux-x86_64-3.4/psycopg/adapter_qstring.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/microprotocols.c -o build/temp.linux-x86_64-3.4/psycopg/microprotocols.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/microprotocols_proto.c -o build/temp.linux-x86_64-3.4/psycopg/microprotocols_proto.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x090405 -DHAVE_LO64=1 -I/usr/include/python3.4m -I. -I/usr/include/postgresql -I/usr/include/postgresql/9.4/server -c psycopg/typecast.c -o build/temp.linux-x86_64-3.4/psycopg/typecast.o -Wdeclaration-after-statement
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/psycopg/psycopgmodule.o build/temp.linux-x86_64-3.4/psycopg/green.o build/temp.linux-x86_64-3.4/psycopg/pqpath.o build/temp.linux-x86_64-3.4/psycopg/utils.o build/temp.linux-x86_64-3.4/psycopg/bytes_format.o build/temp.linux-x86_64-3.4/psycopg/connection_int.o build/temp.linux-x86_64-3.4/psycopg/connection_type.o build/temp.linux-x86_64-3.4/psycopg/cursor_int.o build/temp.linux-x86_64-3.4/psycopg/cursor_type.o build/temp.linux-x86_64-3.4/psycopg/diagnostics_type.o build/temp.linux-x86_64-3.4/psycopg/error_type.o build/temp.linux-x86_64-3.4/psycopg/lobject_int.o build/temp.linux-x86_64-3.4/psycopg/lobject_type.o build/temp.linux-x86_64-3.4/psycopg/notify_type.o build/temp.linux-x86_64-3.4/psycopg/xid_type.o build/temp.linux-x86_64-3.4/psycopg/adapter_asis.o build/temp.linux-x86_64-3.4/psycopg/adapter_binary.o build/temp.linux-x86_64-3.4/psycopg/adapter_datetime.o build/temp.linux-x86_64-3.4/psycopg/adapter_list.o build/temp.linux-x86_64-3.4/psycopg/adapter_pboolean.o build/temp.linux-x86_64-3.4/psycopg/adapter_pdecimal.o build/temp.linux-x86_64-3.4/psycopg/adapter_pint.o build/temp.linux-x86_64-3.4/psycopg/adapter_pfloat.o build/temp.linux-x86_64-3.4/psycopg/adapter_qstring.o build/temp.linux-x86_64-3.4/psycopg/microprotocols.o build/temp.linux-x86_64-3.4/psycopg/microprotocols_proto.o build/temp.linux-x86_64-3.4/psycopg/typecast.o -lpq -o build/lib.linux-x86_64-3.4/psycopg2/_psycopg.cpython-34m.so
Running setup.py install for sqlalchemy
building 'sqlalchemy.cprocessors' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c lib/sqlalchemy/cextension/processors.c -o build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/processors.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/processors.o -o build/lib.linux-x86_64-3.4/sqlalchemy/cprocessors.cpython-34m.so
building 'sqlalchemy.cresultproxy' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c lib/sqlalchemy/cextension/resultproxy.c -o build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/resultproxy.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/resultproxy.o -o build/lib.linux-x86_64-3.4/sqlalchemy/cresultproxy.cpython-34m.so
building 'sqlalchemy.cutils' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c lib/sqlalchemy/cextension/utils.c -o build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/utils.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/utils.o -o build/lib.linux-x86_64-3.4/sqlalchemy/cutils.cpython-34m.so
warning: no files found matching '*.jpg' under directory 'doc'
warning: no files found matching '*.mako' under directory 'doc'
warning: no files found matching 'distribute_setup.py'
warning: no files found matching 'sa2to3.py'
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'doc/build/output'
Running setup.py install for regex
building '_regex' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c Python3/_regex.c -o build/temp.linux-x86_64-3.4/Python3/_regex.o
Python3/_regex.c: In function ‘pattern_subx’:
Python3/_regex.c:20136:18: warning: ‘kwargs’ may be used uninitialized in this function [-Wmaybe-uninitialized]
item = PyObject_Call(replacement, args, kwargs);
^
Python3/_regex.c:20136:18: warning: ‘args’ may be used uninitialized in this function [-Wmaybe-uninitialized]
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c Python3/_regex_unicode.c -o build/temp.linux-x86_64-3.4/Python3/_regex_unicode.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/Python3/_regex.o build/temp.linux-x86_64-3.4/Python3/_regex_unicode.o -o build/lib.linux-x86_64-3.4/_regex.cpython-34m.so
Successfully installed docopt colorlog psycopg2 sqlalchemy regex
Cleaning up...
EDIT: I also ran python -v on the last vm. That was my bad, this is from the new vm:
python 3 -v
Python 3.4.2 (default, Oct 8 2014, 10:45:20)
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Not Solved]
Nov 06, 2015, 12:35 AM
OK, this was my fault for saying I used Debian 8 when I really tested on Debian 7. You can specify installing python 3.2 on Debian 7 like this, however it does not work on Debian 8
Code:
sudo apt-get install python 3.2 -y
At this point there are too many variables to narrow it down. Is it python 3.4's fault? Is it the branch's fault? Did I forget something critical in the guide?
For the sake of science and verifying my sanity, can you spin up a Debian 7 x64 and try the guide again? If you still get stuck at least we have narrowed it down to either the branch or my oversight.
|
|
|