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

pip install rawhdr #3

Open
Bra1nsen opened this issue Sep 30, 2022 · 4 comments
Open

pip install rawhdr #3

Bra1nsen opened this issue Sep 30, 2022 · 4 comments

Comments

@Bra1nsen
Copy link

pi@skycamuni:~ $ sudo pip install rawhdr
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting rawhdr
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.5.3-py3-none-any.whl (10 kB)
Collecting scipy
  Downloading scipy-1.9.1.tar.gz (42.0 MB)
     |████████████████████████████████| 42.0 MB 19 kB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /tmp/tmphap9lclp_in_process.py get_requires_for_build_wheel /tmp/tmpo2kut9dr
       cwd: /tmp/pip-install-z1ayqhkl/scipy_952423fb68974fe2a2dd96d8ebf04dc3
  Complete output (61 lines):
  The Meson build system
  Version: 0.62.2
  Source dir: /tmp/pip-install-z1ayqhkl/scipy_952423fb68974fe2a2dd96d8ebf04dc3
  Build dir: /tmp/pip-install-z1ayqhkl/scipy_952423fb68974fe2a2dd96d8ebf04dc3/.mesonpy-glryk8ol/build
  Build type: native build
  Project name: SciPy
  Project version: 1.9.1
  C compiler for the host machine: cc (gcc 10.2.1 "cc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110")
  C linker for the host machine: cc ld.bfd 2.35.2
  C++ compiler for the host machine: c++ (gcc 10.2.1 "c++ (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110")
  C++ linker for the host machine: c++ ld.bfd 2.35.2
  Host machine cpu family: arm
  Host machine cpu: armv7l
  Compiler for C supports arguments -Wno-unused-but-set-variable: YES
  Library m found: YES
  
  ../../meson.build:41:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['g95']]
  The following exception(s) were encountered:
  Running "gfortran --version" gave "[Errno 2] No such file or directory: 'gfortran'"
  Running "gfortran -V" gave "[Errno 2] No such file or directory: 'gfortran'"
  Running "flang --version" gave "[Errno 2] No such file or directory: 'flang'"
  Running "flang -V" gave "[Errno 2] No such file or directory: 'flang'"
  Running "nvfortran --version" gave "[Errno 2] No such file or directory: 'nvfortran'"
  Running "nvfortran -V" gave "[Errno 2] No such file or directory: 'nvfortran'"
  Running "pgfortran --version" gave "[Errno 2] No such file or directory: 'pgfortran'"
  Running "pgfortran -V" gave "[Errno 2] No such file or directory: 'pgfortran'"
  Running "ifort --version" gave "[Errno 2] No such file or directory: 'ifort'"
  Running "ifort -V" gave "[Errno 2] No such file or directory: 'ifort'"
  Running "g95 --version" gave "[Errno 2] No such file or directory: 'g95'"
  Running "g95 -V" gave "[Errno 2] No such file or directory: 'g95'"
  
  A full log can be found at /tmp/pip-install-z1ayqhkl/scipy_952423fb68974fe2a2dd96d8ebf04dc3/.mesonpy-glryk8ol/build/meson-logs/meson-log.txt
  + meson setup --native-file=/tmp/pip-install-z1ayqhkl/scipy_952423fb68974fe2a2dd96d8ebf04dc3/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2 --prefix=/usr /tmp/pip-install-z1ayqhkl/scipy_952423fb68974fe2a2dd96d8ebf04dc3 /tmp/pip-install-z1ayqhkl/scipy_952423fb68974fe2a2dd96d8ebf04dc3/.mesonpy-glryk8ol/build
  Traceback (most recent call last):
    File "/tmp/tmphap9lclp_in_process.py", line 280, in <module>
      main()
    File "/tmp/tmphap9lclp_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/tmp/tmphap9lclp_in_process.py", line 114, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-rhofusf6/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 964, in get_requires_for_build_wheel
      with _project(config_settings) as project:
    File "/usr/lib/python3.9/contextlib.py", line 117, in __enter__
      return next(self.gen)
    File "/tmp/pip-build-env-rhofusf6/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 943, in _project
      with Project.with_temp_working_dir(
    File "/usr/lib/python3.9/contextlib.py", line 117, in __enter__
      return next(self.gen)
    File "/tmp/pip-build-env-rhofusf6/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 772, in with_temp_working_dir
      yield cls(source_dir, tmpdir, build_dir)
    File "/tmp/pip-build-env-rhofusf6/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 677, in __init__
      self._configure(reconfigure=bool(build_dir) and not native_file_mismatch)
    File "/tmp/pip-build-env-rhofusf6/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 708, in _configure
      self._meson(
    File "/tmp/pip-build-env-rhofusf6/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 691, in _meson
      return self._proc('meson', *args)
    File "/tmp/pip-build-env-rhofusf6/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 686, in _proc
      subprocess.check_call(list(args))
    File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['meson', 'setup', '--native-file=/tmp/pip-install-z1ayqhkl/scipy_952423fb68974fe2a2dd96d8ebf04dc3/.mesonpy-native-file.ini', '-Ddebug=false', '-Doptimization=2', '--prefix=/usr', '/tmp/pip-install-z1ayqhkl/scipy_952423fb68974fe2a2dd96d8ebf04dc3', '/tmp/pip-install-z1ayqhkl/scipy_952423fb68974fe2a2dd96d8ebf04dc3/.mesonpy-glryk8ol/build']' returned non-zero exit status 1.
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/db/af/16906139f52bc6866c43401869ce247662739ad71afa11c6f18505eb0546/scipy-1.9.1.tar.gz#sha256=26d28c468900e6d5fdb37d2812ab46db0ccd22c63baa095057871faa3a498bc9 (from https://pypi.org/simple/scipy/) (requires-python:>=3.8,<3.12). Command errored out with exit status 1: /usr/bin/python3 /tmp/tmphap9lclp_in_process.py get_requires_for_build_wheel /tmp/tmpo2kut9dr Check the logs for full command output.
  Downloading scipy-1.9.0.tar.gz (42.0 MB)
     |████████████████████████████████| 42.0 MB 8.1 kB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /tmp/tmpi81tft55_in_process.py get_requires_for_build_wheel /tmp/tmpcmne1z7k
       cwd: /tmp/pip-install-z1ayqhkl/scipy_e7f3288d46ad42dba8b56e550d083962
  Complete output (61 lines):
  The Meson build system
  Version: 0.62.2
  Source dir: /tmp/pip-install-z1ayqhkl/scipy_e7f3288d46ad42dba8b56e550d083962
  Build dir: /tmp/pip-install-z1ayqhkl/scipy_e7f3288d46ad42dba8b56e550d083962/.mesonpy-om6e30tl/build
  Build type: native build
  Project name: SciPy
  Project version: 1.9.0
  C compiler for the host machine: cc (gcc 10.2.1 "cc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110")
  C linker for the host machine: cc ld.bfd 2.35.2
  C++ compiler for the host machine: c++ (gcc 10.2.1 "c++ (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110")
  C++ linker for the host machine: c++ ld.bfd 2.35.2
  Host machine cpu family: arm
  Host machine cpu: armv7l
  Compiler for C supports arguments -Wno-unused-but-set-variable: YES
  Library m found: YES
  
  ../../meson.build:41:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['g95']]
  The following exception(s) were encountered:
  Running "gfortran --version" gave "[Errno 2] No such file or directory: 'gfortran'"
  Running "gfortran -V" gave "[Errno 2] No such file or directory: 'gfortran'"
  Running "flang --version" gave "[Errno 2] No such file or directory: 'flang'"
  Running "flang -V" gave "[Errno 2] No such file or directory: 'flang'"
  Running "nvfortran --version" gave "[Errno 2] No such file or directory: 'nvfortran'"
  Running "nvfortran -V" gave "[Errno 2] No such file or directory: 'nvfortran'"
  Running "pgfortran --version" gave "[Errno 2] No such file or directory: 'pgfortran'"
  Running "pgfortran -V" gave "[Errno 2] No such file or directory: 'pgfortran'"
  Running "ifort --version" gave "[Errno 2] No such file or directory: 'ifort'"
  Running "ifort -V" gave "[Errno 2] No such file or directory: 'ifort'"
  Running "g95 --version" gave "[Errno 2] No such file or directory: 'g95'"
  Running "g95 -V" gave "[Errno 2] No such file or directory: 'g95'"
  
  A full log can be found at /tmp/pip-install-z1ayqhkl/scipy_e7f3288d46ad42dba8b56e550d083962/.mesonpy-om6e30tl/build/meson-logs/meson-log.txt
  + meson setup --native-file=/tmp/pip-install-z1ayqhkl/scipy_e7f3288d46ad42dba8b56e550d083962/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2 --prefix=/usr /tmp/pip-install-z1ayqhkl/scipy_e7f3288d46ad42dba8b56e550d083962 /tmp/pip-install-z1ayqhkl/scipy_e7f3288d46ad42dba8b56e550d083962/.mesonpy-om6e30tl/build
  Traceback (most recent call last):
    File "/tmp/tmpi81tft55_in_process.py", line 280, in <module>
      main()
    File "/tmp/tmpi81tft55_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/tmp/tmpi81tft55_in_process.py", line 114, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-o98kti7v/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 909, in get_requires_for_build_wheel
      with _project(config_settings) as project:
    File "/usr/lib/python3.9/contextlib.py", line 117, in __enter__
      return next(self.gen)
    File "/tmp/pip-build-env-o98kti7v/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 888, in _project
      with Project.with_temp_working_dir(
    File "/usr/lib/python3.9/contextlib.py", line 117, in __enter__
      return next(self.gen)
    File "/tmp/pip-build-env-o98kti7v/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 547, in with_temp_working_dir
      yield cls(source_dir, tmpdir, build_dir)
    File "/tmp/pip-build-env-o98kti7v/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 463, in __init__
      self._configure(reconfigure=bool(build_dir) and not native_file_mismatch)
    File "/tmp/pip-build-env-o98kti7v/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 494, in _configure
      self._meson(
    File "/tmp/pip-build-env-o98kti7v/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 477, in _meson
      return self._proc('meson', *args)
    File "/tmp/pip-build-env-o98kti7v/overlay/lib/python3.9/site-packages/mesonpy/__init__.py", line 472, in _proc
      subprocess.check_call(list(args))
    File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['meson', 'setup', '--native-file=/tmp/pip-install-z1ayqhkl/scipy_e7f3288d46ad42dba8b56e550d083962/.mesonpy-native-file.ini', '-Ddebug=false', '-Doptimization=2', '--prefix=/usr', '/tmp/pip-install-z1ayqhkl/scipy_e7f3288d46ad42dba8b56e550d083962', '/tmp/pip-install-z1ayqhkl/scipy_e7f3288d46ad42dba8b56e550d083962/.mesonpy-om6e30tl/build']' returned non-zero exit status 1.
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/a8/e3/4ec401f609d34162b7023a09165da491630879e4cfa2336667fe2102cd06/scipy-1.9.0.tar.gz#sha256=c0dfd7d2429452e7e94904c6a3af63cbaa3cf51b348bd9d35b42db7e9ad42791 (from https://pypi.org/simple/scipy/) (requires-python:>=3.8,<3.12). Command errored out with exit status 1: /usr/bin/python3 /tmp/tmpi81tft55_in_process.py get_requires_for_build_wheel /tmp/tmpcmne1z7k Check the logs for full command output.
  Downloading https://www.piwheels.org/simple/scipy/SciPy-1.8.1-cp39-cp39-linux_armv7l.whl (72.2 MB)
     |████████████████████████████████| 72.2 MB 2.5 kB/s 
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from rawhdr) (1.19.5)
Collecting PyWavelets
  Downloading https://www.piwheels.org/simple/pywavelets/PyWavelets-1.4.1-cp39-cp39-linux_armv7l.whl (6.3 MB)
     |████████████████████████████████| 6.3 MB 108 kB/s 
Requirement already satisfied: imageio in /usr/local/lib/python3.9/dist-packages (from rawhdr) (2.22.0)
Collecting dtcwt
  Downloading https://www.piwheels.org/simple/dtcwt/dtcwt-0.12.0-py3-none-any.whl (90 kB)
     |████████████████████████████████| 90 kB 1.3 MB/s 
Collecting rawhdr
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.5.2-py3-none-any.whl (10 kB)
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.5.0-py3-none-any.whl (10 kB)
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.4.1-py3-none-any.whl (9.3 kB)
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.4.0-py3-none-any.whl (9.2 kB)
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.3.0-py3-none-any.whl (8.0 kB)
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.2.4-py3-none-any.whl (7.6 kB)
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.2.3-py3-none-any.whl (7.4 kB)
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.2.2-py3-none-any.whl (7.2 kB)
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.2.1-py3-none-any.whl (7.2 kB)
ERROR: Cannot install rawhdr==0.2.1, rawhdr==0.2.2, rawhdr==0.2.3, rawhdr==0.2.4, rawhdr==0.3.0, rawhdr==0.4.0, rawhdr==0.4.1, rawhdr==0.5.0, rawhdr==0.5.2 and rawhdr==0.5.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    rawhdr 0.5.3 depends on rawpy
    rawhdr 0.5.2 depends on rawpy
    rawhdr 0.5.0 depends on rawpy
    rawhdr 0.4.1 depends on rawpy
    rawhdr 0.4.0 depends on rawpy
    rawhdr 0.3.0 depends on rawpy
    rawhdr 0.2.4 depends on rawpy
    rawhdr 0.2.3 depends on rawpy
    rawhdr 0.2.2 depends on rawpy
    rawhdr 0.2.1 depends on rawpy

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

@fthaler
Copy link
Owner

fthaler commented Nov 6, 2022

Sorry for my very late reply! I messed up my e-mail notification settings and thus haven’t seen your issues yet.

I just updated the repo and updated the packages on pypi. pip install rawhdr works perfectly here. Could you please retry?

@fthaler
Copy link
Owner

fthaler commented Nov 6, 2022

It’s a bit unclear to me, but this could also be related to #2.

@Bra1nsen
Copy link
Author

Bra1nsen commented Nov 6, 2022

pi@skycamuni:~ $ sudo pip install rawhdr
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: rawhdr in /usr/local/lib/python3.9/dist-packages/rawhdr-0.6.0-py3.9.egg (0.6.0)
Requirement already satisfied: PyWavelets in /usr/local/lib/python3.9/dist-packages (from rawhdr) (1.4.1)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from rawhdr) (7.1.2)
Requirement already satisfied: imageio in /usr/local/lib/python3.9/dist-packages (from rawhdr) (2.22.0)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from rawhdr) (1.19.5)
Collecting rawhdr
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.11.3-py3-none-any.whl (14 kB)
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.11.2-py3-none-any.whl (14 kB)
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.11.1-py3-none-any.whl (14 kB)
  Downloading https://www.piwheels.org/simple/rawhdr/rawhdr-0.11.0-py3-none-any.whl (14 kB)
  Using cached https://www.piwheels.org/simple/rawhdr/rawhdr-0.5.3-py3-none-any.whl (10 kB)
  Using cached https://www.piwheels.org/simple/rawhdr/rawhdr-0.5.2-py3-none-any.whl (10 kB)
  Using cached https://www.piwheels.org/simple/rawhdr/rawhdr-0.5.0-py3-none-any.whl (10 kB)
  Using cached https://www.piwheels.org/simple/rawhdr/rawhdr-0.4.1-py3-none-any.whl (9.3 kB)
  Using cached https://www.piwheels.org/simple/rawhdr/rawhdr-0.4.0-py3-none-any.whl (9.2 kB)
  Using cached https://www.piwheels.org/simple/rawhdr/rawhdr-0.3.0-py3-none-any.whl (8.0 kB)
  Using cached https://www.piwheels.org/simple/rawhdr/rawhdr-0.2.4-py3-none-any.whl (7.6 kB)
  Using cached https://www.piwheels.org/simple/rawhdr/rawhdr-0.2.3-py3-none-any.whl (7.4 kB)
  Using cached https://www.piwheels.org/simple/rawhdr/rawhdr-0.2.2-py3-none-any.whl (7.2 kB)
  Using cached https://www.piwheels.org/simple/rawhdr/rawhdr-0.2.1-py3-none-any.whl (7.2 kB)
ERROR: Cannot install rawhdr==0.11.0, rawhdr==0.11.1, rawhdr==0.11.2, rawhdr==0.11.3, rawhdr==0.2.1, rawhdr==0.2.2, rawhdr==0.2.3, rawhdr==0.2.4, rawhdr==0.3.0, rawhdr==0.4.0, rawhdr==0.4.1, rawhdr==0.5.0, rawhdr==0.5.2, rawhdr==0.5.3 and rawhdr==0.6.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    rawhdr 0.6.0 depends on rawpy
    rawhdr 0.11.3 depends on rawpy
    rawhdr 0.11.2 depends on rawpy
    rawhdr 0.11.1 depends on rawpy
    rawhdr 0.11.0 depends on rawpy
    rawhdr 0.5.3 depends on rawpy
    rawhdr 0.5.2 depends on rawpy
    rawhdr 0.5.0 depends on rawpy
    rawhdr 0.4.1 depends on rawpy
    rawhdr 0.4.0 depends on rawpy
    rawhdr 0.3.0 depends on rawpy
    rawhdr 0.2.4 depends on rawpy
    rawhdr 0.2.3 depends on rawpy
    rawhdr 0.2.2 depends on rawpy
    rawhdr 0.2.1 depends on rawpy

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

@fthaler
Copy link
Owner

fthaler commented Nov 11, 2022

Looks like pip can not satisfy any constraint on rawpy. Can you try pip install rawpy?

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

2 participants