Open jhougomont opened 5 years ago
i have the same error ...
Same error on OSX 10.13.6
Command "/Users/Airoldi/anaconda3/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/bg/cpj7np_n4m71hfqcrpxz9nx40000gp/T/pip-install-b91u4fg5/pyflux/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/bg/cpj7np_n4m71hfqcrpxz9nx40000gp/T/pip-record-x68j68w0/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/bg/cpj7np_n4m71hfqcrpxz9nx40000gp/T/pip-install-b91u4fg5/pyflux/
It seems like you are using Python3.7. Docs say that
Supported on Python 2.7 and 3.5.
so probably you should try installing with that version instead.
I am having the same issue trying to install pyflux and downgrading python is not an option.
I am getting the same error under MacOS 10.11.6, and unfortunately I cannot revert to 3.5 to check whether it will work (server permissions restriction). Googling the issue raises a couple of instances where a lack of Xcode Command Line Tools is the culprit, but it is not the case here.
I'd appreciate any tips to solve this in a timely, orderly manner.
[edit] Just tried to install it under python 2.7
(default mac installation), and it doesn't work either. Returns [Errno 1] Operation not permitted
when updating setuptools
from version 1.1.6
to 41.0.0
.
@jhougomont, @ZhouRR, @airoldi
I have downloaded the whole folder and installed it manually with setup.py
. Just run the following code:
git clone https://github.com/RJT1990/pyflux.git
cd pyflux
python3 setup.py install
If git
is not installed/available, just download pyflux
manually from github, ignore the first line and cd
accordingly.
@souzapd Well done
I'm running into the exact same problem, and fixed it almost the exact way that @souzapd did:
git clone https://github.com/RJT1990/pyflux.git
cd pyflux
pip install .
This has the added benefit of having pip
manage the package, which in turn means that eg pip uninstall pyflux
still works as expected.
@bmwant
As demonstrated by myself and others, Pyflux clearly runs just fine on 3.7. There's some kind of issue present in the Pyflux .tar
archive on Pypi that has probably already been fixed in HEAD
. Someone just needs to refresh the .tar
.
@telamonian even with python3 setup.py install
, running pip list
indicates pyflux
as installed. Therefore, I think it would be safe to assume that pip uninstall pyflux
would work.
If anything, it proves your point about a possible issue with the PyPI distribution.
Cheers.
I tried on Python 2.7, 3.5 and 3.7 but everytime pip install pyflux
fails with the error of the guys above. I clone it and it works for 2.7, unfortunately my project is in Python 3.7 Any plans to upgrade it for Python 3.7?
Prove that pyflux can be installed on MacOS with python 3.7. You'd better install numpy, scipy, pandas, cython before install it from source with pip install .
.
Can't seem to get the wheel to build on OSX Mojave 10.14.2
Here's the error in full:
`Collecting pyflux==0.4.14 Downloading https://files.pythonhosted.org/packages/cb/15/3cba0a679eb219a5ff4a2be7366198da243f7951618630e4669bbd397f94/pyflux-0.4.14.tar.gz (1.3MB) 100% |████████████████████████████████| 1.3MB 7.4MB/s Requirement already satisfied: numpy in /anaconda3/lib/python3.7/site-packages (from pyflux==0.4.14) (1.15.1) Requirement already satisfied: pandas in /anaconda3/lib/python3.7/site-packages (from pyflux==0.4.14) (0.23.4) Requirement already satisfied: scipy in /anaconda3/lib/python3.7/site-packages (from pyflux==0.4.14) (1.1.0) Requirement already satisfied: numdifftools in /anaconda3/lib/python3.7/site-packages (from pyflux==0.4.14) (0.9.20) Requirement already satisfied: patsy in /anaconda3/lib/python3.7/site-packages (from pyflux==0.4.14) (0.5.0) Requirement already satisfied: python-dateutil>=2.5.0 in /anaconda3/lib/python3.7/site-packages (from pandas->pyflux==0.4.14) (2.7.3) Requirement already satisfied: pytz>=2011k in /anaconda3/lib/python3.7/site-packages (from pandas->pyflux==0.4.14) (2018.5) Requirement already satisfied: setuptools>=9.0 in /anaconda3/lib/python3.7/site-packages (from numdifftools->pyflux==0.4.14) (40.2.0) Requirement already satisfied: algopy>=0.4 in /anaconda3/lib/python3.7/site-packages (from numdifftools->pyflux==0.4.14) (0.5.7) Requirement already satisfied: six in /anaconda3/lib/python3.7/site-packages (from patsy->pyflux==0.4.14) (1.11.0) Building wheels for collected packages: pyflux Running setup.py bdist_wheel for pyflux ... error Complete output from command /anaconda3/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/78/s94w6v9s5nj5jwjztpd8_cc40000gn/T/pip-install-_5s64cvm/pyflux/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 /private/var/folders/78/s94w6v9s5nj5jwjztpd8_cc40000gn/T/pip-wheel-1t7q3d77 --python-tag cp37: running bdist_wheel running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "pyflux.check_build._check_build" sources building extension "pyflux.arma.arma_recursions" sources building extension "pyflux.arma.nn_architecture" sources building extension "pyflux.families.gas_recursions" sources building extension "pyflux.families.poisson_kalman_recursions" sources building extension "pyflux.garch.garch_recursions" sources building extension "pyflux.gas.gas_core_recursions" sources building extension "pyflux.gpnarx.kernel_routines" sources building extension "pyflux.inference.metropolis_sampler" sources building extension "pyflux.inference.bbvi_routines" sources building extension "pyflux.ssm.kalman" sources building extension "pyflux.var.var_recursions" sources build_src: building npy-pkg config files running build_py creating build creating build/lib.macosx-10.7-x86_64-3.7 creating build/lib.macosx-10.7-x86_64-3.7/pyflux copying pyflux/data_check.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux copying pyflux/results.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux copying pyflux/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux copying pyflux/tsm.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux copying pyflux/setup.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux copying pyflux/latent_variables.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux copying pyflux/covariances.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux creating build/lib.macosx-10.7-x86_64-3.7/pyflux/__check_build copying pyflux/check_build/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/check_build copying pyflux/check_build/setup.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/check_build creating build/lib.macosx-10.7-x86_64-3.7/pyflux/arma copying pyflux/arma/arma.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/arma copying pyflux/arma/nnarx.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/arma copying pyflux/arma/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/arma copying pyflux/arma/arimax.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/arma copying pyflux/arma/setup.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/arma copying pyflux/arma/nnar.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/arma creating build/lib.macosx-10.7-x86_64-3.7/pyflux/ensembles copying pyflux/ensembles/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ensembles copying pyflux/ensembles/mixture_of_experts.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ensembles creating build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/inverse_gamma.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/laplace.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/truncated_normal.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/normal.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/poisson.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/flat.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/exponential.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/cauchy.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/setup.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/inverse_wishart.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/family.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/skewt.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families copying pyflux/families/t.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/families creating build/lib.macosx-10.7-x86_64-3.7/pyflux/garch copying pyflux/garch/egarchm.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/garch copying pyflux/garch/segarch.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/garch copying pyflux/garch/egarchmreg.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/garch copying pyflux/garch/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/garch copying pyflux/garch/segarchm.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/garch copying pyflux/garch/setup.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/garch copying pyflux/garch/lmegarch.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/garch copying pyflux/garch/egarch.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/garch copying pyflux/garch/garch.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/garch creating build/lib.macosx-10.7-x86_64-3.7/pyflux/gas copying pyflux/gas/gas.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gas copying pyflux/gas/gasreg.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gas copying pyflux/gas/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gas copying pyflux/gas/gasrank.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gas copying pyflux/gas/setup.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gas copying pyflux/gas/gasx.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gas copying pyflux/gas/gasllm.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gas copying pyflux/gas/scores.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gas copying pyflux/gas/gasllt.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gas creating build/lib.macosx-10.7-x86_64-3.7/pyflux/gpnarx copying pyflux/gpnarx/gpnarx.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gpnarx copying pyflux/gpnarx/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gpnarx copying pyflux/gpnarx/setup.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gpnarx copying pyflux/gpnarx/kernels.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/gpnarx creating build/lib.macosx-10.7-x86_64-3.7/pyflux/inference copying pyflux/inference/metropolis_hastings.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/inference copying pyflux/inference/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/inference copying pyflux/inference/norm_post_sim.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/inference copying pyflux/inference/setup.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/inference copying pyflux/inference/bbvi.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/inference copying pyflux/inference/stoch_optim.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/inference creating build/lib.macosx-10.7-x86_64-3.7/pyflux/output copying pyflux/output/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/output copying pyflux/output/tableprinter.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/output creating build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/ndynlin.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/local_trend.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/llt.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/nllt.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/nllm.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/llm.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/dynlin.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/dynamic_glm.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/setup.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/local_level.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm copying pyflux/ssm/dar.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/ssm creating build/lib.macosx-10.7-x86_64-3.7/pyflux/tests copying pyflux/tests/nhst.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/tests copying pyflux/tests/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/tests creating build/lib.macosx-10.7-x86_64-3.7/pyflux/var copying pyflux/var/init.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/var copying pyflux/var/var.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/var copying pyflux/var/setup.py -> build/lib.macosx-10.7-x86_64-3.7/pyflux/var running build_ext customize UnixCCompiler customize UnixCCompiler using build_ext building 'pyflux.check_build._check_build' extension compiling C sources C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64
creating build/temp.macosx-10.7-x86_64-3.7/pyflux creating build/temp.macosx-10.7-x86_64-3.7/pyflux/check_build compile options: '-I/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/anaconda3/include/python3.7m -c' gcc: pyflux/__check_build/_check_build.c pyflux/check_build/_check_build.c:1499:28: warning: unused function 'Pyx_PyObject_AsString' [-Wunused-function] static CYTHON_INLINE char __Pyx_PyObject_AsString(PyObject o) { ^ pyflux/__check_build/_check_build.c:1496:32: warning: unused function 'Pyx_PyUnicode_FromString' [-Wunused-function] static CYTHON_INLINE PyObject __Pyx_PyUnicode_FromString(const char c_str) { ^ pyflux/check_build/_check_build.c:1561:26: warning: unused function '__Pyx_PyObject_IsTrue' [-Wunused-function] static CYTHON_INLINE int Pyx_PyObject_IsTrue(PyObject x) { ^ pyflux/__check_build/_check_build.c:1611:33: warning: unused function 'Pyx_PyIndex_AsSsize_t' [-Wunused-function] static CYTHON_INLINE Py_ssize_t Pyx_PyIndex_AsSsize_t(PyObject b) { ^ pyflux/check_build/_check_build.c:1673:33: warning: unused function 'Pyx_PyInt_FromSize_t' [-Wunused-function] static CYTHON_INLINE PyObject * Pyx_PyInt_FromSize_t(size_t ival) { ^ pyflux/__check_build/_check_build.c:1031:32: warning: unused function 'Pyx_PyInt_From_long' [-Wunused-function] static CYTHON_INLINE PyObject Pyx_PyInt_From_long(long value) { ^ pyflux/__check_build/_check_build.c:1080:27: warning: function 'Pyx_PyInt_As_long' is not needed and will not be emitted [-Wunneeded-internal-declaration] static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject x) { ^ pyflux/__check_build/_check_build.c:1265:26: warning: function 'Pyx_PyInt_As_int' is not needed and will not be emitted [-Wunneeded-internal-declaration] static CYTHON_INLINE int Pyx_PyInt_As_int(PyObject *x) { ^ 8 warnings generated. gcc -bundle -undefined dynamic_lookup -L/anaconda3/lib -arch x86_64 -L/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/pyflux/check_build/_check_build.o -o build/lib.macosx-10.7-x86_64-3.7/pyflux/check_build/_check_build.cpython-37m-darwin.so building 'pyflux.arma.arma_recursions' extension compiling C sources C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64
creating build/temp.macosx-10.7-x86_64-3.7/pyflux/arma compile options: '-I/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/anaconda3/include/python3.7m -c' gcc: pyflux/arma/arma_recursions.c In file included from pyflux/arma/arma_recursions.c:274: In file included from /anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4: In file included from /anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18: In file included from /anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1823: /anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
warning "Using deprecated NumPy API, disable it by " \
^ pyflux/arma/arma_recursions.c:19331:21: error: no member named 'exc_type' in 'struct _ts' *type = tstate->exc_type;