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

installation error in ubuntu #20

Open
HymEric opened this issue Apr 10, 2019 · 0 comments
Open

installation error in ubuntu #20

HymEric opened this issue Apr 10, 2019 · 0 comments

Comments

@HymEric
Copy link

HymEric commented Apr 10, 2019

When I install pyflow in ubuntu, it happen

(pytorch100) hym@VIPA109:~/pycharm_remote/pyflow-master$ python setup.py build_ext -i
Compiling pyflow.pyx because it changed.
[1/1] Cythonizing pyflow.pyx
/home/disk1/hym/anaconda3/envs/pytorch100/lib/python3.7/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/disk1/hym/pycharm_remote/pyflow-master/pyflow.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
running build_ext
building 'pyflow' extension
creating build
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
gcc -pthread -B /home/disk1/hym/anaconda3/envs/pytorch100/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/disk1/hym/anaconda3/envs/pytorch100/lib/python3.7/site-packages/numpy/core/include -I/home/disk1/hym/anaconda3/envs/pytorch100/lib/python3.7/site-packages/numpy/core/include -I/home/disk1/hym/anaconda3/envs/pytorch100/include/python3.7m -c pyflow.cpp -o build/temp.linux-x86_64-3.7/pyflow.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from pyflow.cpp:29:0:
/home/disk1/hym/anaconda3/envs/pytorch100/include/python3.7m/Python.h:14:2: error: #error "Something's broken. UCHAR_MAX should be defined in limits.h."
#error "Something's broken. UCHAR_MAX should be defined in limits.h."
^
/home/disk1/hym/anaconda3/envs/pytorch100/include/python3.7m/Python.h:18:2: error: #error "Python's source code assumes C's unsigned char is an 8-bit type."
#error "Python's source code assumes C's unsigned char is an 8-bit type."
^
In file included from /home/disk1/hym/anaconda3/envs/pytorch100/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1824:0,
from /home/disk1/hym/anaconda3/envs/pytorch100/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/disk1/hym/anaconda3/envs/pytorch100/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from pyflow.cpp:632:
/home/disk1/hym/anaconda3/envs/pytorch100/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^
In file included from /usr/include/stdio.h:74:0,
from /home/disk1/hym/anaconda3/envs/pytorch100/include/python3.7m/Python.h:25,
from pyflow.cpp:29:
/usr/include/libio.h:306:3: error: ‘size_t’ does not name a type
size_t __pad5;
^
/usr/include/libio.h:310:67: error: ‘size_t’ was not declared in this scope
char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
^
/usr/include/libio.h:338:62: error: ‘size_t’ has not been declared
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
^
/usr/include/libio.h:347:6: error: ‘size_t’ has not been declared
size_t __n);
^
In file included from /usr/include/stdio.h:74:0,
from /home/disk1/hym/anaconda3/envs/pytorch100/include/python3.7m/Python.h:25,
from pyflow.cpp:29:
...............
Please,if u know why, tell e solution?

@HymEric HymEric changed the title installation installation error in ubuntu Apr 10, 2019
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

1 participant