dedupeio / pylbfgs Goto Github PK
View Code? Open in Web Editor NEWThis project forked from larsmans/pylbfgs
:mountain_cableway: Python/Cython wrapper for liblbfgs
License: MIT License
This project forked from larsmans/pylbfgs
:mountain_cableway: Python/Cython wrapper for liblbfgs
License: MIT License
@wolfgang-noichl, I think you want to used fused types to support both 32 and 64 bit systems. If you get that working, I'll merge it into master.
On aarch64, ‘pip install pylbfgs’ builds the wheels from source code and then installs it. It requires the user to have a development environment installed on his system. Also, it takes some time to build the wheels than downloading and extracting the wheels from pypi.
On aarch64, ‘pip install pylbfgs’ should download the wheels from pypi
@fgregg Please let me know your interest in releasing aarch64 wheels. I can help in this.
@Shotgunosine, can you try to build this wheel again from pip. Made some changes that should fix your problem.
Relates to dedupeio/dedupe#407 (comment)
pylbfgs_traceback.txt
There seems to be a cython
issue when Python 3.7
tries to install numpy
version 13.1.1
or 14.0
(version 15.0
works just fine).
This step breaks a pylbfgs
install, and thus also one for dedupe
and csvdedupe
:
Collecting numpy==1.13.1
Using cached https://files.pythonhosted.org/packages/c0/3a/40967d9f5675fbb097ffec170f59c2ba19fc96373e73ad47c2cae9a30aed/numpy-1.13.1.zip
Building wheels for collected packages: numpy
Running setup.py bdist_wheel for numpy: started
Running setup.py bdist_wheel for numpy: still running...
Running setup.py bdist_wheel for numpy: still running...
Running setup.py bdist_wheel for numpy: finished with status 'error'
Even when I blow away all cached dependencies in my project to ensure that it's not trying to use a locally cached cython
or numpy 13.1.1
, I get a broken install and the kind of cython
-y compile backtrace nightmares are made of. (The full backtrace is longer than 65536 characters and not supported, but I've added some of what I hope are the most directly relevant parts at the bottom. The full traceback I've attached as a txt
file.)
This issue also seems to have befallen pandas
although now that install works fine, using numpy 15.0
as a dependency.
About my environment:
Mac OS X 10.12.6
Python 3.7
pipenv 2018.7.1
zsh
Backtrace bits:
-> % pipenv install pylbfgs
Installing pylbfgs...
Collecting pylbfgs
Using cached https://files.pythonhosted.org/packages/c9/b5/afbdb7342c973e808dbf570d2db8a5d0962ea9bd3bff73de2fb0f5344bd4/PyLBFGS-0.2.0.11.tar.gz
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: finished with status 'error'
Complete output from command /user_root/venvs/bin/python3.7 -m pip install --ignore-installed --no-user --prefix /private/var/folders/l8/6jl310wd3z5c7jqxfhkw9t4c0000gn/T/pip-build-env-ous3i0xg --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel cython numpy==1.13.1:
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/ff/f4/385715ccc461885f3cedf57a41ae3c12b5fec3f35cce4c8706b1a112a133/setuptools-40.0.0-py2.py3-none-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl
Collecting cython
Using cached https://files.pythonhosted.org/packages/e3/bb/d43cf512f7ee32653d8e3ae8dbb71f111096a8a16c1176128915de1a3ff5/Cython-0.28.5-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting numpy==1.13.1
Using cached https://files.pythonhosted.org/packages/c0/3a/40967d9f5675fbb097ffec170f59c2ba19fc96373e73ad47c2cae9a30aed/numpy-1.13.1.zip
Building wheels for collected packages: numpy
Running setup.py bdist_wheel for numpy: started
Running setup.py bdist_wheel for numpy: still running...
Running setup.py bdist_wheel for numpy: still running...
Running setup.py bdist_wheel for numpy: finished with status 'error'
Complete output from command /user_root/venvs/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/l8/6jl310wd3z5c7jqxfhkw9t4c0000gn/T/pip-install-2udqohes/numpy/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/l8/6jl310wd3z5c7jqxfhkw9t4c0000gn/T/pip-wheel-s5gg73sf --python-tag cp37:
Running from numpy source directory.
blas_opt_info:
blas_mkl_info:
libraries mkl_rt not found in ['/user_root/venvs/bin/../lib', '/usr/local/lib', '/usr/lib', '/opt/local/lib']
NOT AVAILABLE
blis_info:
libraries blis not found in ['/user_root/venvs/bin/../lib', '/usr/local/lib', '/usr/lib', '/opt/local/lib']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['/user_root/venvs/bin/../lib', '/usr/local/lib', '/usr/lib', '/opt/local/lib']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in ['/user_root/venvs/bin/../lib', '/usr/local/lib', '/usr/lib', '/opt/local/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
libraries satlas not found in ['/user_root/venvs/bin/../lib', '/usr/local/lib', '/usr/lib', '/opt/local/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['/user_root/venvs/bin/../lib', '/usr/local/lib', '/usr/lib', '/opt/local/lib']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['/user_root/venvs/bin/../lib', '/usr/local/lib', '/usr/lib', '/opt/local/lib']
NOT AVAILABLE
FOUND:
extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['/user_root/venvs/bin/../lib', '/usr/local/lib', '/usr/lib', '/opt/local/lib']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['/user_root/venvs/bin/../lib', '/usr/local/lib', '/usr/lib', '/opt/local/lib']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas,tatlas not found in /user_root/venvs/bin/../lib
libraries lapack_atlas not found in /user_root/venvs/bin/../lib
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
libraries tatlas,tatlas not found in /opt/local/lib
libraries lapack_atlas not found in /opt/local/lib
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries satlas,satlas not found in /user_root/venvs/bin/../lib
libraries lapack_atlas not found in /user_root/venvs/bin/../lib
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
libraries satlas,satlas not found in /opt/local/lib
libraries lapack_atlas not found in /opt/local/lib
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in /user_root/venvs/bin/../lib
libraries lapack_atlas not found in /user_root/venvs/bin/../lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /opt/local/lib
libraries lapack_atlas not found in /opt/local/lib
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in /user_root/venvs/bin/../lib
libraries lapack_atlas not found in /user_root/venvs/bin/../lib
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /opt/local/lib
libraries lapack_atlas not found in /opt/local/lib
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
FOUND:
extra_compile_args = ['-msse3']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
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 py_modules sources
creating build
creating build/src.macosx-10.12-x86_64-3.7
creating build/src.macosx-10.12-x86_64-3.7/numpy
creating build/src.macosx-10.12-x86_64-3.7/numpy/distutils
building library "npymath" sources
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
clang: _configtest.c
clang _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
clang: _configtest.c
_configtest.c:1:5: warning: incompatible redeclaration of library function 'exp' [-Wincompatible-library-redeclaration]
int exp (void);
^
_configtest.c:1:5: note: 'exp' is a builtin with type 'double (double)'
1 warning generated.
clang _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
creating build/src.macosx-10.12-x86_64-3.7/numpy/core
creating build/src.macosx-10.12-x86_64-3.7/numpy/core/src
creating build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npymath
conv_template:> build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npymath/npy_math_internal.h
adding 'build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npymath' to include_dirs.
conv_template:> build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npymath/ieee754.c
conv_template:> build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npymath/npy_math_complex.c
None - nothing done with h_files = ['build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npymath/npy_math_internal.h']
building library "npysort" sources
creating build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npysort
conv_template:> build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npysort/quicksort.c
conv_template:> build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npysort/mergesort.c
conv_template:> build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npysort/heapsort.c
creating build/src.macosx-10.12-x86_64-3.7/numpy/core/src/private
conv_template:> build/src.macosx-10.12-x86_64-3.7/numpy/core/src/private/npy_partition.h
adding 'build/src.macosx-10.12-x86_64-3.7/numpy/core/src/private' to include_dirs.
conv_template:> build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npysort/selection.c
conv_template:> build/src.macosx-10.12-x86_64-3.7/numpy/core/src/private/npy_binsearch.h
conv_template:> build/src.macosx-10.12-x86_64-3.7/numpy/core/src/npysort/binsearch.c
None - nothing done with h_files = ['build/src.macosx-10.12-x86_64-3.7/numpy/core/src/private/npy_partition.h', 'build/src.macosx-10.12-x86_64-3.7/numpy/core/src/private/npy_binsearch.h']
building extension "numpy.core._dummy" sources
Generating build/src.macosx-10.12-x86_64-3.7/numpy/core/include/numpy/config.h
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
clang: _configtest.c
success!
removing: _configtest.c _configtest.o
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
clang: _configtest.c
_configtest.c:1:10: fatal error: 'endian.h' file not found
#include <endian.h>
^~~~~~~~~~
1 error generated.
_configtest.c:1:10: fatal error: 'endian.h' file not found
#include <endian.h>
^~~~~~~~~~
1 error generated.
failure.
removing: _configtest.c _configtest.o
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
clang: _configtest.c
_configtest.c:1:10: fatal error: 'sys/endian.h' file not found
#include <sys/endian.h>
^~~~~~~~~~~~~~
1 error generated.
_configtest.c:1:10: fatal error: 'sys/endian.h' file not found
#include <sys/endian.h>
^~~~~~~~~~~~~~
1 error generated.
failure.
removing: _configtest.c _configtest.o
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
snip
16 errors generated.
error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.macosx-10.12-x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -Ibuild/src.macosx-10.12-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.12-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-10.12-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.12-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-10.12-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.12-x86_64-3.7/numpy/core/src/npymath -c numpy/random/mtrand/mtrand.c -o build/temp.macosx-10.12-x86_64-3.7/numpy/random/mtrand/mtrand.o -MMD -MF build/temp.macosx-10.12-x86_64-3.7/numpy/random/mtrand/mtrand.o.d" failed with exit status 1
snip
----------------------------------------
Command "/user_root/venvs/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/l8/6jl310wd3z5c7jqxfhkw9t4c0000gn/T/pip-install-2udqohes/numpy/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/l8/6jl310wd3z5c7jqxfhkw9t4c0000gn/T/pip-record-xw0vmowy/install-record.txt --single-version-externally-managed --prefix /private/var/folders/l8/6jl310wd3z5c7jqxfhkw9t4c0000gn/T/pip-build-env-ous3i0xg --compile --install-headers /user_root/venvs/bin/../include/site/python3.7/numpy" failed with error code 1 in /private/var/folders/l8/6jl310wd3z5c7jqxfhkw9t4c0000gn/T/pip-install-2udqohes/numpy/
----------------------------------------
Error: An error occurred while installing pylbfgs!
Command "/user_root/venvs/bin/python3.7 -m pip install --ignore-installed --no-user --prefix /private/var/folders/l8/6jl310wd3z5c7jqxfhkw9t4c0000gn/T/pip-build-env-ous3i0xg --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel cython numpy==1.13.1" failed with error code 1 in None
It seems to me that
python setup.py build_ext -i
is not enough to build in-place for development. One seems to need do run
cython lbfgs/_lowlevel.pyx
before that.
Environment:
image: python:3.9.13-alpine3.15
Collecting pylbfgs==0.2.0.13 (from -r /tmp/tmpnqe55yh1 (line 173))
111.3 Downloading PyLBFGS-0.2.0.13.tar.gz (105 kB)
111.3 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 105.2/105.2 kB 4.8 MB/s eta 0:00:00
111.4 Installing build dependencies: started
120.7 Installing build dependencies: finished with status 'done'
120.7 Getting requirements to build wheel: started
121.4 Getting requirements to build wheel: finished with status 'error'
121.5 error: subprocess-exited-with-error
121.5
121.5 × Getting requirements to build wheel did not run successfully.
121.5 │ exit code: 1
121.5 ╰─> [53 lines of output]
121.5 Compiling lbfgs/_lowlevel.pyx because it changed.
121.5 [1/1] Cythonizing lbfgs/_lowlevel.pyx
121.5 /tmp/pip-build-env-4zuuu0hm/overlay/lib/python3.9/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-c3shc_f2/pylbfgs_5d43d814162f405a9fc40586d659ea84/lbfgs/_lowlevel.pyx
121.5 tree = Parsing.p_module(s, pxd, full_module_name)
121.5
121.5 Error compiling Cython file:
121.5 ------------------------------------------------------------
121.5 ...
121.5
121.5 x_a = aligned_copy(x0.ravel())
121.5
121.5 try:
121.5 callback_data = (f, progress, x0.shape, args)
121.5 r = lbfgs(n, x_a, fx_final, call_eval,
121.5 ^
121.5 ------------------------------------------------------------
121.5
121.5 lbfgs/_lowlevel.pyx:395:40: Cannot assign type 'lbfgsfloatval_t (void *, lbfgsconst_p, lbfgsfloatval_t *, int, lbfgsfloatval_t) except? -1' to 'lbfgs_evaluate_t'
121.5
121.5 Error compiling Cython file:
121.5 ------------------------------------------------------------
121.5 ...
121.5 x_a = aligned_copy(x0.ravel())
121.5
121.5 try:
121.5 callback_data = (f, progress, x0.shape, args)
121.5 r = lbfgs(n, x_a, fx_final, call_eval,
121.5 call_progress, <void *>callback_data, &self.params)
121.5 ^
121.5 ------------------------------------------------------------
121.5
121.5 lbfgs/_lowlevel.pyx:396:22: Cannot assign type 'int (void *, lbfgsconst_p, lbfgsconst_p, lbfgsfloatval_t, lbfgsfloatval_t, lbfgsfloatval_t, lbfgsfloatval_t, int, int, int) except? -1' to 'lbfgs_progress_t'
121.5 Traceback (most recent call last):
121.5 File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
121.5 main()
121.5 File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
121.5 json_out['return_val'] = hook(**hook_input['kwargs'])
121.5 File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
121.5 return hook(config_settings)
121.5 File "/tmp/pip-build-env-4zuuu0hm/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
121.5 return self._get_build_requires(config_settings, requirements=['wheel'])
121.5 File "/tmp/pip-build-env-4zuuu0hm/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
121.5 self.run_setup()
121.5 File "/tmp/pip-build-env-4zuuu0hm/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 487, in run_setup
121.5 super(_BuildMetaLegacyBackend,
121.5 File "/tmp/pip-build-env-4zuuu0hm/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 338, in run_setup
121.5 exec(code, locals())
121.5 File "", line 27, in
121.5 File "/tmp/pip-build-env-4zuuu0hm/overlay/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
121.5 cythonize_one(*args)
121.5 File "/tmp/pip-build-env-4zuuu0hm/overlay/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
121.5 raise CompileError(None, pyx_file)
121.5 Cython.Compiler.Errors.CompileError: lbfgs/_lowlevel.pyx
121.5 [end of output]
121.5
121.5 note: This error originates from a subprocess, and is likely not a problem with pip.
121.5 error: subprocess-exited-with-error
121.5
121.5 × Getting requirements to build wheel did not run successfully.
121.5 │ exit code: 1
121.5 ╰─> See above for output.
121.5
121.5 note: This error originates from a subprocess, and is likely not a problem with pip.
122.2 Traceback (most recent call last):
122.2 File "/usr/local/bin/pip-sync", line 8, in
122.2 sys.exit(cli())
122.2 File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1157, in call
122.2 return self.main(*args, **kwargs)
122.2 File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1078, in main
122.2 rv = self.invoke(ctx)
122.2 File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
122.2 return ctx.invoke(self.callback, **ctx.params)
122.2 File "/usr/local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
122.2 return __callback(*args, **kwargs)
122.2 File "/usr/local/lib/python3.9/site-packages/piptools/scripts/sync.py", line 203, in cli
122.2 sync.sync(
122.2 File "/usr/local/lib/python3.9/site-packages/piptools/sync.py", line 263, in sync
122.2 run( # nosec
122.2 File "/usr/local/lib/python3.9/subprocess.py", line 528, in run
122.2 raise CalledProcessError(retcode, process.args,
122.2 subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'pip', 'install', '-r', '/tmp/tmpnqe55yh1']' returned non-zero exit status 1.
Hi,
thank you for maintaining this wrapper.
If have a small suggestion: Could we return the last value on LBFGSERR_MAXIMUMITERATION and emmit a warning instead of an exception (like it#s already done for LBFGSERR_ROUNDING_ERROR, LBFGSERR_MAXIMUMLINESEARCH ?
We could even have an optional flag for that behavior if you are adverse to returning non optimal values.
But likely the values returned will not be perfect, but for some applications 'good enough'. I believe this is the way scipy for example handles the case. And it makes setting the maximum number of iterations much more useful.
So instead of
Line 404 in 8583052
elif r in (LBFGSERR_ROUNDING_ERROR, LBFGSERR_MAXIMUMLINESEARCH, LBFGSERR_MAXIMUMITERATION):
Have a great day,
Felix
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.