error occurred while installing ruby-debug-ide, but only in docker compose build - ruby-debug-ide

If I install the ruby-debug-ide Gem by
docker compose run app bash
gem install "ruby-debug-ide"
it installs without issue.
If I install the ruby-debug-ide Gem by
docker compose run app bash
Add ruby-debug-ide to my Gemfile
bundle install
it installs without issue.
After that second attempt there are changes (as expected) to bit my Gemfile and my Gemfile.lock. If I now run docker compose build it crashes out with this error:
#10 14.40 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
#10 14.40
#10 14.40 current directory: /usr/local/bundle/gems/ruby-debug-ide-0.7.3/ext
#10 14.40 /usr/local/bin/ruby mkrf_conf.rb
#10 14.40 Installing base gem
#10 14.40 Building native extensions. This could take a while...
#10 14.40 Building native extensions. This could take a while...
#10 14.40 ERROR: Failed to build gem native extension.
#10 14.40
#10 14.40 current directory: /usr/local/bundle/gems/debase-0.2.5.beta2/ext
#10 14.40 /usr/local/bin/ruby -I /usr/local/lib/ruby/3.1.0 -r
#10 14.40 ./siteconf20220331-401-hxgkmc.rb extconf.rb
#10 14.40 checking for vm_core.h... no
#10 14.40 checking for vm_core.h... no
#10 14.40 **************************************************************************
#10 14.40 No source for ruby-3.1.1-p18 (revision
53f5fc4236a754ddf94b20dbb70ab63bd5109b18)
#10 14.40 provided with
#10 14.40 debase-ruby_core_source gem. Falling back to ruby-3.1.0-p0.
#10 14.40 **************************************************************************
#10 14.40 checking for vm_core.h... yes
#10 14.40 checking for iseq.h... no
#10 14.40 checking for iseq.h... yes
#10 14.40 checking for version.h... yes
#10 14.40 creating Makefile
#10 14.40
#10 14.40 current directory: /usr/local/bundle/gems/debase-0.2.5.beta2/ext
#10 14.40 make DESTDIR= clean
#10 14.40
#10 14.40 current directory: /usr/local/bundle/gems/debase-0.2.5.beta2/ext
#10 14.40 make DESTDIR=
#10 14.40 compiling breakpoint.c
#10 14.40 compiling context.c
#10 14.40 Assembler messages:
#10 14.40 Fatal error: can't create context.o: No such file or directory
#10 14.40 make: *** [Makefile:246: context.o] Error 1
#10 14.40
#10 14.40 make failed, exit code 2
#10 14.40
#10 14.40 Gem files will remain installed in /usr/local/bundle/gems/debase-0.2.5.beta2 for
#10 14.40 inspection.
#10 14.40 Results logged to
#10 14.40 /usr/local/bundle/extensions/aarch64-linux/3.1.0/debase-0.2.5.beta2/gem_make.out
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:95:in run' #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:44:in block in make'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:36:in each' #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:36:in make'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:63:in
block in #10 14.40 build' #10 14.40 /usr/local/lib/ruby/3.1.0/tempfile.rb:317:in open'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:26:in
build' #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:161:in build_extension'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:195:in block in #10 14.40 build_extensions' #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:192:in each'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:192:in build_extensions' #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/installer.rb:853:in build_extensions'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/installer.rb:328:in install' #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/resolver/specification.rb:104:in install'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/request_set.rb:279:in block in #10 14.40 install_into' #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/request_set.rb:271:in each'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/request_set.rb:271:in install_into' #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/request_set.rb:147:in install'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/dependency_installer.rb:252:in
install' #10 14.40 mkrf_conf.rb:31:in rescue in '
#10 14.40 mkrf_conf.rb:24:in <main>' #10 14.40 #10 14.40 rake failed, exit code 1 #10 14.40 #10 14.40 Gem files will remain installed in /usr/local/bundle/gems/ruby-debug-ide-0.7.3 #10 14.40 for inspection. #10 14.40 Results logged to #10 14.40 /usr/local/bundle/extensions/aarch64-linux/3.1.0/ruby-debug-ide-0.7.3/gem_make.out #10 14.40 #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:95:in run'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/rake_builder.rb:11:in build' #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:161:in build_extension'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:195:in block in #10 14.40 build_extensions' #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:192:in each'
#10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/ext/builder.rb:192:in build_extensions' #10 14.40 /usr/local/lib/ruby/3.1.0/rubygems/installer.rb:853:in build_extensions'
#10 14.40 /usr/local/lib/ruby/3.1.0/bundler/rubygems_gem_installer.rb:71:in
#10 14.40 build_extensions' #10 14.40 /usr/local/lib/ruby/3.1.0/bundler/rubygems_gem_installer.rb:28:in install'
#10 14.40 /usr/local/lib/ruby/3.1.0/bundler/source/rubygems.rb:204:in install' #10 14.40 /usr/local/lib/ruby/3.1.0/bundler/installer/gem_installer.rb:54:in install'
#10 14.40 /usr/local/lib/ruby/3.1.0/bundler/installer/gem_installer.rb:16:in
#10 14.40 install_from_spec' #10 14.40 /usr/local/lib/ruby/3.1.0/bundler/installer/parallel_installer.rb:186:in #10 14.40 do_install'
#10 14.40 /usr/local/lib/ruby/3.1.0/bundler/installer/parallel_installer.rb:177:in
#10 14.40 block in worker_pool' #10 14.40 /usr/local/lib/ruby/3.1.0/bundler/worker.rb:62:in apply_func'
#10 14.40 /usr/local/lib/ruby/3.1.0/bundler/worker.rb:57:in block in process_queue' #10 14.40 /usr/local/lib/ruby/3.1.0/bundler/worker.rb:54:in loop'
#10 14.40 /usr/local/lib/ruby/3.1.0/bundler/worker.rb:54:in process_queue' #10 14.40 /usr/local/lib/ruby/3.1.0/bundler/worker.rb:91:in block (2 levels) in
#10 14.40 create_threads'
#10 14.40
#10 14.40 An error occurred while installing ruby-debug-ide (0.7.3), and Bundler cannot
#10 14.40 continue.
(Sorry about the long copy-and-paste, I am not sure which part is relevant.)
The part of my Dockerfile that does the actual building is this:
FROM ruby:3.1-slim-bullseye as builder
WORKDIR /app
RUN apt-get update \
&& apt-get upgrade --yes \
&& apt-get install --yes --no-install-recommends \
build-essential curl git gnupg firefox-esr \
&& curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& curl -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& echo 'deb https://deb.nodesource.com/node_16.x bullseye main' > /etc/apt/sources.list.d/nodesource.list \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install --yes --no-install-recommends nodejs yarn \
&& rm -rf /var/lib/apt/lists/* /var/lib/apt/archives/*.deb
ENV TZ='Europe/London'
ENV RUBYOPT='-W:no-deprecated -W:no-experimental'
ENV PATH="$PATH:node_modules/.bin"
COPY Gemfile Gemfile.lock /app/
RUN bundle install --jobs 4 \
&& bundle binstubs --all --path /usr/local/bundle/bin
Why can I build at a bash prompt in the container but cannot when rebuilding the container?

Related

Install pandas/numpy on Alpine-based libreoffice image

I need a Docker image that has both LibreOffice installed AND python pandas. I've decided that there's a bunch of licensing issues with LibreOffice now because the Oracle's JRE/JDK requirements. So, I'm starting FROM linuxserver/libreoffice:7.2.2 in my Docker image. Now, the problem is that when I try to install pandas using a virtual environment and a requirements.txt file (only line in it is pandas>=1.4.0,<1.5) like this:
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Install dependencies:
COPY requirements.txt .
RUN /opt/venv/bin/python3 -m pip install --upgrade pip && \
pip install -r requirements.txt
...I get this massive error:
#9 50.08 Collecting oldest-supported-numpy>=0.10
#9 50.08 Downloading oldest_supported_numpy-2022.4.18-py3-none-any.whl (3.9 kB)
#9 50.08 Collecting numpy==1.19.3
#9 50.08 Downloading numpy-1.19.3.zip (7.3 MB)
#9 50.08 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 2.3 MB/s eta 0:00:00
#9 50.08 Installing build dependencies: started
#9 50.08 Installing build dependencies: finished with status 'done'
#9 50.08 Getting requirements to build wheel: started
#9 50.08 Getting requirements to build wheel: finished with status 'done'
#9 50.08 Preparing metadata (pyproject.toml): started
#9 50.08 Preparing metadata (pyproject.toml): finished with status 'error'
#9 50.08 error: subprocess-exited-with-error
#9 50.08
#9 50.08 × Preparing metadata (pyproject.toml) did not run successfully.
#9 50.08 │ exit code: 1
#9 50.08 ╰─> [236 lines of output]
#9 50.08 Running from numpy source directory.
#9 50.08 setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
#9 50.08 run_build = parse_setuppy_commands()
#9 50.08 Processing numpy/random/_bounded_integers.pxd.in
#9 50.08 Processing numpy/random/_pcg64.pyx
#9 50.08 Processing numpy/random/_philox.pyx
#9 50.08 Processing numpy/random/mtrand.pyx
#9 50.08 Processing numpy/random/_generator.pyx
#9 50.08 Processing numpy/random/_common.pyx
#9 50.08 Processing numpy/random/_mt19937.pyx
#9 50.08 Processing numpy/random/_sfc64.pyx
#9 50.08 Processing numpy/random/_bounded_integers.pyx.in
#9 50.08 Processing numpy/random/bit_generator.pyx
#9 50.08 Cythonizing sources
#9 50.08 blas_opt_info:
#9 50.08 blas_mkl_info:
#9 50.08 customize UnixCCompiler
#9 50.08 libraries mkl_rt not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 blis_info:
#9 50.08 libraries blis not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 openblas_info:
#9 50.08 libraries openblas not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 atlas_3_10_blas_threads_info:
#9 50.08 Setting PTATLAS=ATLAS
#9 50.08 libraries tatlas not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 atlas_3_10_blas_info:
#9 50.08 libraries satlas not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 atlas_blas_threads_info:
#9 50.08 Setting PTATLAS=ATLAS
#9 50.08 libraries ptf77blas,ptcblas,atlas not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 atlas_blas_info:
#9 50.08 libraries f77blas,cblas,atlas not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 accelerate_info:
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 /tmp/pip-install-m9ffqtsd/numpy_f52b823899c842e29073892fb891d2ea/numpy/distutils/system_info.py:1914: UserWarning:
#9 50.08 Optimized (vendor) Blas libraries are not found.
#9 50.08 Falls back to netlib Blas library which has worse performance.
#9 50.08 A better performance should be easily gained by switching
#9 50.08 Blas library.
#9 50.08 if self._calc_info(blas):
#9 50.08 blas_info:
#9 50.08 libraries blas not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 /tmp/pip-install-m9ffqtsd/numpy_f52b823899c842e29073892fb891d2ea/numpy/distutils/system_info.py:1914: UserWarning:
#9 50.08 Blas (http://www.netlib.org/blas/) libraries not found.
#9 50.08 Directories to search for the libraries can be specified in the
#9 50.08 numpy/distutils/site.cfg file (section [blas]) or by setting
#9 50.08 the BLAS environment variable.
#9 50.08 if self._calc_info(blas):
#9 50.08 blas_src_info:
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 /tmp/pip-install-m9ffqtsd/numpy_f52b823899c842e29073892fb891d2ea/numpy/distutils/system_info.py:1914: UserWarning:
#9 50.08 Blas (http://www.netlib.org/blas/) sources not found.
#9 50.08 Directories to search for the sources can be specified in the
#9 50.08 numpy/distutils/site.cfg file (section [blas_src]) or by setting
#9 50.08 the BLAS_SRC environment variable.
#9 50.08 if self._calc_info(blas):
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 non-existing path in 'numpy/distutils': 'site.cfg'
#9 50.08 lapack_opt_info:
#9 50.08 lapack_mkl_info:
#9 50.08 libraries mkl_rt not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 openblas_lapack_info:
#9 50.08 libraries openblas not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 openblas_clapack_info:
#9 50.08 libraries openblas,lapack not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 flame_info:
#9 50.08 libraries flame not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 atlas_3_10_threads_info:
#9 50.08 Setting PTATLAS=ATLAS
#9 50.08 libraries lapack_atlas not found in /opt/venv/lib
#9 50.08 libraries tatlas,tatlas not found in /opt/venv/lib
#9 50.08 libraries lapack_atlas not found in /usr/local/lib
#9 50.08 libraries tatlas,tatlas not found in /usr/local/lib
#9 50.08 libraries lapack_atlas not found in /usr/lib
#9 50.08 libraries tatlas,tatlas not found in /usr/lib
#9 50.08 <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 atlas_3_10_info:
#9 50.08 libraries lapack_atlas not found in /opt/venv/lib
#9 50.08 libraries satlas,satlas not found in /opt/venv/lib
#9 50.08 libraries lapack_atlas not found in /usr/local/lib
#9 50.08 libraries satlas,satlas not found in /usr/local/lib
#9 50.08 libraries lapack_atlas not found in /usr/lib
#9 50.08 libraries satlas,satlas not found in /usr/lib
#9 50.08 <class 'numpy.distutils.system_info.atlas_3_10_info'>
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 atlas_threads_info:
#9 50.08 Setting PTATLAS=ATLAS
#9 50.08 libraries lapack_atlas not found in /opt/venv/lib
#9 50.08 libraries ptf77blas,ptcblas,atlas not found in /opt/venv/lib
#9 50.08 libraries lapack_atlas not found in /usr/local/lib
#9 50.08 libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
#9 50.08 libraries lapack_atlas not found in /usr/lib
#9 50.08 libraries ptf77blas,ptcblas,atlas not found in /usr/lib
#9 50.08 <class 'numpy.distutils.system_info.atlas_threads_info'>
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 atlas_info:
#9 50.08 libraries lapack_atlas not found in /opt/venv/lib
#9 50.08 libraries f77blas,cblas,atlas not found in /opt/venv/lib
#9 50.08 libraries lapack_atlas not found in /usr/local/lib
#9 50.08 libraries f77blas,cblas,atlas not found in /usr/local/lib
#9 50.08 libraries lapack_atlas not found in /usr/lib
#9 50.08 libraries f77blas,cblas,atlas not found in /usr/lib
#9 50.08 <class 'numpy.distutils.system_info.atlas_info'>
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 lapack_info:
#9 50.08 libraries lapack not found in ['/opt/venv/lib', '/usr/local/lib', '/usr/lib']
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 /tmp/pip-install-m9ffqtsd/numpy_f52b823899c842e29073892fb891d2ea/numpy/distutils/system_info.py:1748: UserWarning:
#9 50.08 Lapack (http://www.netlib.org/lapack/) libraries not found.
#9 50.08 Directories to search for the libraries can be specified in the
#9 50.08 numpy/distutils/site.cfg file (section [lapack]) or by setting
#9 50.08 the LAPACK environment variable.
#9 50.08 return getattr(self, '_calc_info_{}'.format(name))()
#9 50.08 lapack_src_info:
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 /tmp/pip-install-m9ffqtsd/numpy_f52b823899c842e29073892fb891d2ea/numpy/distutils/system_info.py:1748: UserWarning:
#9 50.08 Lapack (http://www.netlib.org/lapack/) sources not found.
#9 50.08 Directories to search for the sources can be specified in the
#9 50.08 numpy/distutils/site.cfg file (section [lapack_src]) or by setting
#9 50.08 the LAPACK_SRC environment variable.
#9 50.08 return getattr(self, '_calc_info_{}'.format(name))()
#9 50.08 NOT AVAILABLE
#9 50.08
#9 50.08 numpy_linalg_lapack_lite:
#9 50.08 FOUND:
#9 50.08 language = c
#9 50.08 define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
#9 50.08
#9 50.08 /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
#9 50.08 warnings.warn(msg)
#9 50.08 running dist_info
#9 50.08 running build_src
#9 50.08 build_src
#9 50.08 building py_modules sources
#9 50.08 creating build
#9 50.08 creating build/src.linux-x86_64-3.9
#9 50.08 creating build/src.linux-x86_64-3.9/numpy
#9 50.08 creating build/src.linux-x86_64-3.9/numpy/distutils
#9 50.08 building library "npymath" sources
#9 50.08 Could not locate executable gfortran
#9 50.08 Could not locate executable f95
#9 50.08 Could not locate executable ifort
#9 50.08 Could not locate executable ifc
#9 50.08 Could not locate executable lf95
#9 50.08 Could not locate executable pgfortran
#9 50.08 Could not locate executable nvfortran
#9 50.08 Could not locate executable f90
#9 50.08 Could not locate executable f77
#9 50.08 Could not locate executable fort
#9 50.08 Could not locate executable efort
#9 50.08 Could not locate executable efc
#9 50.08 Could not locate executable g77
#9 50.08 Could not locate executable g95
#9 50.08 Could not locate executable pathf95
#9 50.08 Could not locate executable nagfor
#9 50.08 don't know how to compile Fortran code on platform 'posix'
#9 50.08 Traceback (most recent call last):
#9 50.08 File "/tmp/tmpqq2gyha2_in_process.py", line 363, in <module>
#9 50.08 main()
#9 50.08 File "/tmp/tmpqq2gyha2_in_process.py", line 345, in main
#9 50.08 json_out['return_val'] = hook(**hook_input['kwargs'])
#9 50.08 File "/tmp/tmpqq2gyha2_in_process.py", line 164, in prepare_metadata_for_build_wheel
#9 50.08 return hook(metadata_directory, config_settings)
#9 50.08 File "/tmp/pip-build-env-6370icr8/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 157, in prepare_metadata_for_build_wheel
#9 50.08 self.run_setup()
#9 50.08 File "/tmp/pip-build-env-6370icr8/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 248, in run_setup
#9 50.08 super(_BuildMetaLegacyBackend,
#9 50.08 File "/tmp/pip-build-env-6370icr8/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 142, in run_setup
#9 50.08 exec(compile(code, __file__, 'exec'), locals())
#9 50.08 File "setup.py", line 508, in <module>
#9 50.08 setup_package()
#9 50.08 File "setup.py", line 500, in setup_package
#9 50.08 setup(**metadata)
#9 50.08 File "/tmp/pip-install-m9ffqtsd/numpy_f52b823899c842e29073892fb891d2ea/numpy/distutils/core.py", line 169, in setup
#9 50.08 return old_setup(**new_attr)
#9 50.08 File "/tmp/pip-build-env-6370icr8/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 165, in setup
#9 50.08 return distutils.core.setup(**attrs)
#9 50.08 File "/usr/lib/python3.9/distutils/core.py", line 148, in setup
#9 50.08 dist.run_commands()
#9 50.08 File "/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands
#9 50.08 self.run_command(cmd)
#9 50.08 File "/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
#9 50.08 cmd_obj.run()
#9 50.08 File "/tmp/pip-build-env-6370icr8/overlay/lib/python3.9/site-packages/setuptools/command/dist_info.py", line 31, in run
#9 50.08 egg_info.run()
#9 50.08 File "/tmp/pip-install-m9ffqtsd/numpy_f52b823899c842e29073892fb891d2ea/numpy/distutils/command/egg_info.py", line 24, in run
#9 50.08 self.run_command("build_src")
#9 50.08 File "/usr/lib/python3.9/distutils/cmd.py", line 313, in run_command
#9 50.08 self.distribution.run_command(command)
#9 50.08 File "/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
#9 50.08 cmd_obj.run()
#9 50.08 File "/tmp/pip-install-m9ffqtsd/numpy_f52b823899c842e29073892fb891d2ea/numpy/distutils/command/build_src.py", line 144, in run
#9 50.08 self.build_sources()
#9 50.08 File "/tmp/pip-install-m9ffqtsd/numpy_f52b823899c842e29073892fb891d2ea/numpy/distutils/command/build_src.py", line 155, in build_sources
#9 50.08 self.build_library_sources(*libname_info)
#9 50.08 File "/tmp/pip-install-m9ffqtsd/numpy_f52b823899c842e29073892fb891d2ea/numpy/distutils/command/build_src.py", line 288, in build_library_sources
#9 50.08 sources = self.generate_sources(sources, (lib_name, build_info))
#9 50.08 File "/tmp/pip-install-m9ffqtsd/numpy_f52b823899c842e29073892fb891d2ea/numpy/distutils/command/build_src.py", line 378, in generate_sources
#9 50.08 source = func(extension, build_dir)
#9 50.08 File "numpy/core/setup.py", line 663, in get_mathlib_info
#9 50.08 raise RuntimeError("Broken toolchain: cannot link a simple C program")
#9 50.08 RuntimeError: Broken toolchain: cannot link a simple C program
#9 50.08 [end of output]
#9 50.08
#9 50.08 note: This error originates from a subprocess, and is likely not a problem with pip.
#9 50.08 error: metadata-generation-failed
#9 50.08
#9 50.08 × Encountered error while generating package metadata.
#9 50.08 ╰─> See above for output.
#9 50.08
#9 50.08 note: This is an issue with the package mentioned above, not pip.
#9 50.08 hint: See above for details.
#9 50.08 [end of output]
#9 50.08
#9 50.08 note: This error originates from a subprocess, and is likely not a problem with pip.
#9 50.09 error: subprocess-exited-with-error
#9 50.09
#9 50.09 × pip subprocess to install build dependencies did not run successfully.
#9 50.09 │ exit code: 1
#9 50.09 ╰─> See above for output.
#9 50.09
#9 50.09 note: This error originates from a subprocess, and is likely not a problem with pip.
------
executor failed running [/bin/sh -c /opt/venv/bin/python3 -m pip install --upgrade pip && pip install -r requirements.txt]: exit code: 1
I've looked around at several answers listed here that seem very similar to what I'm getting, but this discussion seems pretty old and out of date. None of the solutions I've tried from there are working.
It looks like BLAS and a couple of other items aren't installed correctly on the Alpine image. I've tried a bunch of different ways to do this and none have worked so far. How can I install pandas on this Alpine Docker image?
UPDATE
I'd be willing to use a Debian or Ubuntu-based Docker image as long as it comes preloaded with LibreOffice. The only image I've found online, so far, that comes with LibreOffice preloaded is an Alpine image...
I think you can use openjdk, but I'm not sure.
As for pandas, it's missing BLAS C libraries that can only be installed with apk. You can do that easily by running apk add openblas, but you might need also the openblas-dev package as well.

Magento 1.9 Live Website Admin Not Working

I am not able to log in to my Magento website admin. I am getting the following error.
Below is the error:
There has been an error processing your request
Invalid method Mage_Admin_Model_User::login(Array
(
[0] => admin
[1] => testT
)
)
Trace:
#0 /home/mysite/public_html/app/code/core/Mage/Admin/Model/Session.php(118): Varien_Object->__call('login', Array)
#1 /home/mysite/public_html/app/code/core/Mage/Admin/Model/Session.php(118): Mage_Admin_Model_User->login('admin', 'testT')
#2 /home/mysite/public_html/app/code/core/Mage/Admin/Model/Observer.php(69): Mage_Admin_Model_Session->login('admin', 'testT', Object(Mage_Core_Controller_Request_Http))
#3 /home/mysite/public_html/app/code/core/Mage/Core/Model/App.php(1338): Mage_Admin_Model_Observer->actionPreDispatchAdmin(Object(Varien_Event_Observer))
#4 /home/mysite/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Admin_Model_Observer), 'actionPreDispat...', Object(Varien_Event_Observer))
#5 /home/mysite/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#6 /home/mysite/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(527): Mage::dispatchEvent('controller_acti...', Array)
#7 /home/mysite/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#8 /home/mysite/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch()
#9 /home/mysite/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#10 /home/mysite/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /home/mysite/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#12 /home/mysite/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#13 /home/mysite/public_html/index.php(86): Mage::run('', 'store')
#14 {main}
I tried removing var/session and var/cache folders. Also, cleared cookies and sessions from the browser. Magento version is 1.9. Still getting the same error. Does anyone know how to fix it? Any help will be appreciated.
Please try to follow the below instructions to fix this:
Delete the generated/code directory rm -rf generated/code
Then run
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
chmo -R 0777 var/ pub/ generated/

Running Chromium with yocto

I have a imx6 SOM and i am using yocto (krogoth). I want to install the chromium browser and so I added the following to the conf and the chromium is now build.
CORE_IMAGE_EXTRA_INSTALL += "chromium libexif weston"
PNBLACKLIST[chromium] = ""
When i want to start the browser i always got the following messages:
var-som-mx6 /mnt/user# ./chrome.sh www.google.com
[1157:1157:0805/150113:ERROR:display.cc(148)] WaylandDisplay failed to initialize hardware
[1157:1157:0805/150113:FATAL:ozone_platform_wayland.cc(115)] failed to initialize display hardware
#0 0x0000551dd27a <unknown>
#1 0x0000551ec9fe <unknown>
#2 0x0000558339fa <unknown>
#3 0x000055918254 <unknown>
#4 0x000055918ba4 <unknown>
#5 0x000055918c82 <unknown>
#6 0x0000578341ac <unknown>
#7 0x0000551ae960 <unknown>
#8 0x0000551ae1ba <unknown>
#9 0x000054edd5c0 ChromeMain
#10 0x0000764e1cf8 __libc_start_main
Received signal 6
#0 0x0000551dd27a <unknown>
#1 0x0000551dd548 <unknown>
#2 0x0000764f7b40 <unknown>
#3 0x0000764f6910 gsignal
[end of stack trace]
./chrome.sh: line 15: 1129 Segmentation fault /usr/bin/chromium/chrome ${CHROME_EXTRA_ARGS} $#
The script chrome.sh:
#!/bin/sh
export HOME=/tmp/
export CHROME_DEVEL_SANDBOX=/usr/sbin/chrome-devel-sandbox
export LD_LIBRARY_PATH=/usr/lib/chromium
export GOOGLE_API_KEY="no"
export GOOGLE_DEFAULT_CLIENT_ID="no"
export GOOGLE_DEFAULT_CLIENT_SECRET="no"
CHROME_EXTRA_ARGS=" --use-gl=egl --gpu-no-context-lost --start-fullscreen --kiosk --no-first-run --ignore-gpu-blacklist --user-data-dir=/tmp/.chromium/"
CHROME_EXTRA_ARGS="${CHROME_EXTRA_ARGS} --disable-pinch --disable-touch-adjustment --enable-touch-drag-drop --touch-events=enabled"
/usr/bin/chromium/chrome ${CHROME_EXTRA_ARGS} $#
Dows anyone gives me an advise what is wrong or what i can try?! Thanks.
BR Harald
Note that krogoth is very old, so I do not think anyone can give you specific advice anymore about what is wrong. You should try a recent version of Yocto, or even the master branch.

cmake forcing the compiler makes the buil fail

I thought specifying -DCMAKE_CXX_COMPILER_FORCED=1 -DCMAKE_C_COMPILER_FORCED=1 for cmake would make my build faster, because it would skip compiler checks. Instead, it makes my build fail:
#16 470.8 -- Found Git: /usr/bin/git (found version "2.17.1")
#16 470.8 -- Content of the error:
#16 470.8 -- Version of this git repo: v0.0.1-2-g93b2a22
#16 470.9 -- The C compiler identification is GNU 5.5.0
#16 470.9 -- The CXX compiler identification is GNU 5.5.0
#16 470.9 -- GCC detected - Adding flags
#16 471.0 -- Looking for pthread.h
#16 471.0 -- Looking for pthread.h - found
#16 471.0 -- Looking for pthread_create
#16 471.1 -- Looking for pthread_create - not found
#16 471.1 -- Looking for pthread_create in pthreads
#16 471.1 -- Looking for pthread_create in pthreads - not found
#16 471.1 -- Looking for pthread_create in pthread
#16 471.2 -- Looking for pthread_create in pthread - found
#16 471.2 -- Found Threads: TRUE
#16 471.2 -- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread (found version "3.5.0")
#16 471.2 CMake Error at /opt/cmake/share/cmake-3.12/Modules/FindBoost.cmake:2048 (message):
#16 471.2 Unable to find the requested Boost libraries.
#16 471.2
#16 471.2 Boost version: 1.65.1
#16 471.2
#16 471.2 Boost include path: /usr/include
#16 471.2
#16 471.2 Could not find the following Boost libraries:
#16 471.2
#16 471.2 boost_graph
#16 471.2
#16 471.2 No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
#16 471.2 directory containing Boost libraries or BOOST_ROOT to the location of
#16 471.2 Boost.
#16 471.2 Call Stack (most recent call first):
#16 471.2 CMakeLists.txt:24 (find_package)
#16 471.2
#16 471.2
#16 471.3 -- Configuring incomplete, errors occurred!
libboost-graph-dev is installed, so it's unclear what is happening here - if I remove the options, then the build is working.
What is happening here?
From the docs:
The Boost Graph Library is a header-only library and does not need to
be built to be used.
Header only libraries need not to be specified in the find_package(Boost ...) call. Remove it and instead link either to the target Boost::boost in your target_link_libraries call
or add include_directories(${Boost_INCLUDE_DIRS}) to your CMakeLists.txt file.

Apache segfault errors for child processes

Apache on production server is failing periodically. Apache logs show segfault errors for child processes.
Core dump backtrace shows next:
#0 0x00007fc2462d6617 in ?? ()
#1 0x00007fc24d9458b8 in _hooks ()
#2 0x00007fc2498c798f in ?? () from /usr/lib/apache2/modules/libphp5.so
#3 0x00007fc2498ce342 in ?? () from /usr/lib/apache2/modules/libphp5.so
#4 0x00007fc2498ce5c8 in zend_hash_graceful_reverse_destroy ()
from /usr/lib/apache2/modules/libphp5.so
#5 0x00007fc2498c26b5 in ?? () from /usr/lib/apache2/modules/libphp5.so
#6 0x00007fc24986d4cd in php_module_shutdown ()
from /usr/lib/apache2/modules/libphp5.so
#7 0x00007fc24986d579 in php_module_shutdown_wrapper ()
from /usr/lib/apache2/modules/libphp5.so
#8 0x00007fc24994de51 in ?? () from /usr/lib/apache2/modules/libphp5.so
#9 0x00007fc24ce467d7 in ?? () from /usr/lib/libapr-1.so.0
#10 0x00007fc24ce45684 in apr_pool_destroy () from /usr/lib/libapr-1.so.0
#11 0x00007fc24d72b4ce in clean_child_exit (code=0)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:196
#12 0x00007fc24d72b8f9 in accept_mutex_on (child_num_arg=<value optimized out>)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:212
#13 child_main (child_num_arg=<value optimized out>)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:568
#14 0x00007fc24d72bb5a in make_child (s=0x7fc24f517938, slot=3)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:758
#15 0x00007fc24d72c7e4 in perform_idle_server_maintenance (
---Type <return> to continue, or q <return> to quit---
_pconf=<value optimized out>, plog=<value optimized out>,
s=<value optimized out>)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:893
#16 ap_mpm_run (_pconf=<value optimized out>, plog=<value optimized out>,
s=<value optimized out>)
at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:1097
#17 0x00007fc24d701350 in main (argc=3, argv=0x7fff9a1da0d8)
at /build/buildd/apache2-2.2.14/server/main.c:742
I have updated Apache from 2.2.14 to 2.2.20 and PHP from 5.3.2 to 5.3.6 but this error still exists.
What could be causing this problem?
UPDATE
Here php -v output:
root#host:~# php -v
PHP 5.3.6-13ubuntu3.1 with Suhosin-Patch (cli) (built: Aug 29 2011 23:39:16)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
php -m:
root#host:~# php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
eAccelerator
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
imap
intl
json
libxml
mbstring
mcrypt
memcache
mhash
ming
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
ps
pspell
readline
recode
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules]
eAccelerator
Also I tried to disable eAccelerator but nothing was changed.