Skip to content
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

cannot install successfully #1

Open
zfy-csu opened this issue May 6, 2022 · 1 comment
Open

cannot install successfully #1

zfy-csu opened this issue May 6, 2022 · 1 comment

Comments

@zfy-csu
Copy link

zfy-csu commented May 6, 2022

pip install git+https://github.com/hsfzxjy/[email protected]
Collecting git+https://github.com/hsfzxjy/[email protected]
Cloning https://github.com/hsfzxjy/mocona (to revision v0.1.0) to /home/xxx/tmp/pip-req-build-_ycd9xcb
Running command git clone -q https://github.com/hsfzxjy/mocona /home/xxx/tmp/pip-req-build-_ycd9xcb
Running command git checkout -q c84575b
Building wheels for collected packages: mocona
Building wheel for mocona (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/xxx/anaconda3/envs/openseg/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/xxx/tmp/pip-req-build-_ycd9xcb/setup.py'"'"'; file='"'"'/home/xxx/tmp/pip-req-build-_ycd9xcb/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /home/xxx/tmp/pip-wheel-rg1nx3hm
cwd: /home/xxx/tmp/pip-req-build-_ycd9xcb/
Complete output (87 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/mocona
copying mocona/init.py -> build/lib.linux-x86_64-3.6/mocona
copying mocona/scopedvar.py -> build/lib.linux-x86_64-3.6/mocona
copying mocona/events.py -> build/lib.linux-x86_64-3.6/mocona
copying mocona/py.typed -> build/lib.linux-x86_64-3.6/mocona
copying mocona/scopedvar.pyi -> build/lib.linux-x86_64-3.6/mocona
running build_ext
building 'mocona._scopedvar' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/mocona
creating build/temp.linux-x86_64-3.6/mocona/csrc
gcc -pthread -B /home/xxx/anaconda3/envs/openseg/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/xxx/anaconda3/envs/openseg/include/python3.6m -c mocona/csrc/declobject.c -o build/temp.linux-x86_64-3.6/mocona/csrc/declobject.o -Wno-missing-braces
In file included from mocona/csrc/declobject.h:23,
from mocona/csrc/scopestackobject.h:5,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/declobject.h:25:25: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
DEFINE_REFCNT_TRACE_FOR(DECL)
^~~~
mocona/csrc/_trace_refcnt.h:44:28: note: in definition of macro ‘DEFINE_REFCNT_TRACE_FOR’
static inline void NAME##_TRACE_RESET() {}
^~~~
In file included from mocona/csrc/scopeobject.h:4,
from mocona/csrc/scopestackobject.h:6,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/cellobject.h:17:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
PROTECTED CellObject *Cell_New();
^~~~~~~~~
In file included from mocona/csrc/declobject.h:23,
from mocona/csrc/scopestackobject.h:5,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/cellobject.h:21:25: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
DEFINE_REFCNT_TRACE_FOR(CELL)
^~~~
mocona/csrc/_trace_refcnt.h:44:28: note: in definition of macro ‘DEFINE_REFCNT_TRACE_FOR’
static inline void NAME##_TRACE_RESET() {}
^~~~
In file included from mocona/csrc/scopestackobject.h:6,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/scopeobject.h:48:9: error: unknown type name ‘PyThread_type_lock’
PyThread_type_lock lock;
^~~~~~~~~~~~~~~~~~
In file included from mocona/csrc/declobject.h:23,
from mocona/csrc/scopestackobject.h:5,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/scopeobject.h:64:25: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
DEFINE_REFCNT_TRACE_FOR(SCOPE)
^~~~~
mocona/csrc/_trace_refcnt.h:44:28: note: in definition of macro ‘DEFINE_REFCNT_TRACE_FOR’
static inline void NAME##_TRACE_RESET() {}
^~~~
In file included from mocona/csrc/_scopedvar_module.h:7,
from mocona/csrc/declobject.c:1:
mocona/csrc/_s.h:14:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
PROTECTED int _S_Init();
^~~~~~~~~
In file included from mocona/csrc/_scopedvar_module.h:10,
from mocona/csrc/declobject.c:1:
mocona/csrc/namespaceobject.h:16:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
PROTECTED int NamespaceObject_Init();
^~~~~~~~~
In file included from mocona/csrc/declobject.h:23,
from mocona/csrc/scopestackobject.h:5,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/namespaceobject.h:23:25: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
DEFINE_REFCNT_TRACE_FOR(NAMESPACE)
^~~~~~~~~
mocona/csrc/_trace_refcnt.h:44:28: note: in definition of macro ‘DEFINE_REFCNT_TRACE_FOR’
static inline void NAME##_TRACE_RESET() {}
^~~~
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for mocona
Running setup.py clean for mocona
Failed to build mocona
Installing collected packages: mocona
Running setup.py install for mocona ... error
ERROR: Command errored out with exit status 1:
command: /home/xxx/anaconda3/envs/openseg/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/xxx/tmp/pip-req-build-_ycd9xcb/setup.py'"'"'; file='"'"'/home/xxx/tmp/pip-req-build-_ycd9xcb/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /home/xxx/tmp/pip-record-50crc5j7/install-record.txt --single-version-externally-managed --compile --install-headers /home/xxx/anaconda3/envs/openseg/include/python3.6m/mocona
cwd: /home/xxx/tmp/pip-req-build-_ycd9xcb/
Complete output (87 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/mocona
copying mocona/init.py -> build/lib.linux-x86_64-3.6/mocona
copying mocona/scopedvar.py -> build/lib.linux-x86_64-3.6/mocona
copying mocona/events.py -> build/lib.linux-x86_64-3.6/mocona
copying mocona/py.typed -> build/lib.linux-x86_64-3.6/mocona
copying mocona/scopedvar.pyi -> build/lib.linux-x86_64-3.6/mocona
running build_ext
building 'mocona._scopedvar' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/mocona
creating build/temp.linux-x86_64-3.6/mocona/csrc
gcc -pthread -B /home/xxx/anaconda3/envs/openseg/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/xxx/anaconda3/envs/openseg/include/python3.6m -c mocona/csrc/declobject.c -o build/temp.linux-x86_64-3.6/mocona/csrc/declobject.o -Wno-missing-braces
In file included from mocona/csrc/declobject.h:23,
from mocona/csrc/scopestackobject.h:5,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/declobject.h:25:25: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
DEFINE_REFCNT_TRACE_FOR(DECL)
^~~~
mocona/csrc/_trace_refcnt.h:44:28: note: in definition of macro ‘DEFINE_REFCNT_TRACE_FOR’
static inline void NAME##_TRACE_RESET() {}
^~~~
In file included from mocona/csrc/scopeobject.h:4,
from mocona/csrc/scopestackobject.h:6,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/cellobject.h:17:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
PROTECTED CellObject *Cell_New();
^~~~~~~~~
In file included from mocona/csrc/declobject.h:23,
from mocona/csrc/scopestackobject.h:5,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/cellobject.h:21:25: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
DEFINE_REFCNT_TRACE_FOR(CELL)
^~~~
mocona/csrc/_trace_refcnt.h:44:28: note: in definition of macro ‘DEFINE_REFCNT_TRACE_FOR’
static inline void NAME##_TRACE_RESET() {}
^~~~
In file included from mocona/csrc/scopestackobject.h:6,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/scopeobject.h:48:9: error: unknown type name ‘PyThread_type_lock’
PyThread_type_lock lock;
^~~~~~~~~~~~~~~~~~
In file included from mocona/csrc/declobject.h:23,
from mocona/csrc/scopestackobject.h:5,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/scopeobject.h:64:25: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
DEFINE_REFCNT_TRACE_FOR(SCOPE)
^~~~~
mocona/csrc/_trace_refcnt.h:44:28: note: in definition of macro ‘DEFINE_REFCNT_TRACE_FOR’
static inline void NAME##_TRACE_RESET() {}
^~~~
In file included from mocona/csrc/_scopedvar_module.h:7,
from mocona/csrc/declobject.c:1:
mocona/csrc/_s.h:14:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
PROTECTED int _S_Init();
^~~~~~~~~
In file included from mocona/csrc/_scopedvar_module.h:10,
from mocona/csrc/declobject.c:1:
mocona/csrc/namespaceobject.h:16:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
PROTECTED int NamespaceObject_Init();
^~~~~~~~~
In file included from mocona/csrc/declobject.h:23,
from mocona/csrc/scopestackobject.h:5,
from mocona/csrc/_ctxmgr.h:6,
from mocona/csrc/_scopedvar_module.h:6,
from mocona/csrc/declobject.c:1:
mocona/csrc/namespaceobject.h:23:25: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
DEFINE_REFCNT_TRACE_FOR(NAMESPACE)
^~~~~~~~~
mocona/csrc/_trace_refcnt.h:44:28: note: in definition of macro ‘DEFINE_REFCNT_TRACE_FOR’
static inline void NAME##_TRACE_RESET() {}
^~~~
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/xxx/anaconda3/envs/openseg/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/xxx/tmp/pip-req-build-_ycd9xcb/setup.py'"'"'; file='"'"'/home/xxx/tmp/pip-req-build-_ycd9xcb/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /home/xxx/tmp/pip-record-50crc5j7/install-record.txt --single-version-externally-managed --compile --install-headers /home/xxx/anaconda3/envs/openseg/include/python3.6m/mocona Check the logs for full command output.

@hsfzxjy
Copy link
Owner

hsfzxjy commented May 7, 2022

This package currently requires a minimal Python version of 3.7+, since it relies on some non-public infrastructure from specific versions of CPython.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants