Support flower (pip package name "flwr")
See original GitHub issueI’m currently attempting to get flower working https://flower.dev/ however my first issue is that is requires a newer version of numpy (1.19) than what is currently rebuild in chaquopy.
I have attempted to build a newer version however hit the below error:
[Building wheel for numpy (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -S -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7u3qospz/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7u3qospz/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 /tmp/pip-wheel-qkdymx1j --python-tag cp38
cwd: /tmp/pip-install-7u3qospz/numpy/
Complete output (73 lines):
Running from numpy source directory.
Cythonizing sources
Processing numpy/random/_bounded_integers.pxd.in
ERROR: Command errored out with exit status 1:
Processing numpy/random/_mt19937.pyx
Processing numpy/random/mtrand.pyx
Processing numpy/random/_sfc64.pyx
Processing numpy/random/_generator.pyx
Processing numpy/random/_pcg64.pyx
Processing numpy/random/bit_generator.pyx
Processing numpy/random/_bounded_integers.pyx.in
Processing numpy/random/_common.pyx
Processing numpy/random/_philox.pyx
blas_opt_info:
blas_mkl_info:
No module named 'numpy.distutils.disabledcompiler' in numpy.distutils; trying from distutils
customize DisabledCompiler
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-7u3qospz/numpy/setup.py", line 448, in <module>
setup_package()
File "/tmp/pip-install-7u3qospz/numpy/setup.py", line 440, in setup_package
setup(**metadata)
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "/tmp/pip-install-7u3qospz/numpy/setup.py", line 118, in configuration
config.add_subpackage('numpy')
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/misc_util.py", line 1016, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/misc_util.py", line 982, in get_subpackage
config = self._get_configuration_from_setup_py(
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/misc_util.py", line 924, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy/setup.py", line 8, in configuration
config.add_subpackage('core')
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/misc_util.py", line 1016, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/misc_util.py", line 982, in get_subpackage
config = self._get_configuration_from_setup_py(
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/misc_util.py", line 924, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy/core/setup.py", line 751, in configuration
blas_info = get_info('blas_opt', 0)
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/system_info.py", line 581, in get_info
return cl().get_info(notfound_action)
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/system_info.py", line 841, in get_info
self.calc_info()
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/system_info.py", line 2026, in calc_info
if self._calc_info(blas):
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/system_info.py", line 2012, in _calc_info
return getattr(self, '_calc_info_{}'.format(name))()
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/system_info.py", line 1935, in _calc_info_mkl
info = get_info('blas_mkl')
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/system_info.py", line 581, in get_info
return cl().get_info(notfound_action)
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/system_info.py", line 841, in get_info
self.calc_info()
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/system_info.py", line 1292, in calc_info
info = self.check_libs2(lib_dirs, mkl_libs)
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/system_info.py", line 997, in check_libs2
exts = self.library_extensions()
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/system_info.py", line 956, in library_extensions
c = customized_ccompiler()
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/system_info.py", line 216, in customized_ccompiler
global_compiler = _customized_ccompiler()
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/__init__.py", line 50, in customized_ccompiler
c.customize('')
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/ccompiler.py", line 88, in <lambda>
m = lambda self, *args, **kw: func(self, *args, **kw)
File "/tmp/pip-install-7u3qospz/numpy/numpy/distutils/ccompiler.py", line 533, in CCompiler_customize
self.compile([fn], output_dir=tmpdir,
File "/media/sf_shared/FLDemo/backend/app/build/generated/python/bp.zip/setuptools/monkey.py", line 155, in compile
File "/media/sf_shared/FLDemo/backend/app/build/generated/python/bp.zip/setuptools/monkey.py", line 185, in chaquopy_block_native
distutils.errors.DistutilsPlatformError: CCompiler.compile: Chaquopy cannot compile native code
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -S -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7u3qospz/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7u3qospz/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 /tmp/pip-wheel-qkdymx1j --python-tag cp38 Check the logs for full command output.
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -S -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7u3qospz/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7u3qospz/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 /tmp/pip-wheel-qkdymx1j --python-tag cp38 Check the logs for full command output.]([url](url))
Any assistance or pointers would be great!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
flwr · PyPI
Flower ( flwr ) is a framework for building federated learning systems. The design of Flower is based on a few guiding principles:....
Read more >Installing Flower - Flower 1.2.0
Stable releases are available on PyPI: python -m pip install flwr. For simulations that use the Virtual Client Engine, flwr should be installed...
Read more >Configuration — Flower 1.0.1 documentation
The configuration file name and path can be changed with conf option. ... Celery command line options also can be passed to Flower....
Read more >Cannot import name FlowerCommand from flower.command
Airflow 2.1.2 doesn't support Celery 5 yet. Long story short: just downgrade Celery provider: $ pip install --upgrade ...
Read more >pip install - pip documentation v22.3.1
Any URL may use the #egg=name syntax (see VCS Support) to explicitly ... Installing collected packages baz, bar, foo, quux $ python -m...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the report. I’ll look into providing a new version of NumPy and get back to you in the next few days.
NumPy 1.21.4 is incompatible with TensorFlow 2.1.0 (#570), so we’ve removed it from the default repository. We’ve replaced it with NumPy 1.19.5, so
flwr
can still be installed.If you need NumPy 1.21.4 for any reason, you can enable it by adding this line to the
pip
block in your build.gradle file: