Skip to content

[BUG] proj executable not found. Please set the PROJ_DIR variable. #923

@fwag

Description

@fwag

patch.log

Describe the bug
Error "proj executable not found. Please set the PROJ_DIR variable" when using command inv install -v

To Reproduce
Steps to reproduce the behavior:

  1. OpenSUSE TumbleWeed
  2. Replace yum with zypper in setup.sh
  3. inv install -v
Installing dependencies from lock file

Package operations: 1 install, 0 updates, 0 removals

  • Installing pyproj (3.6.1)

  CalledProcessError

  Command '['/opt/core/venv/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/opt/core/venv', '--no-deps', '/root/.cache/pypoetry/artifacts/fd/71/dd/c818856de5e08cbe6b4ca2f75c2c78a2b064ac384d145bfc0b32d20119/pyproj-3.6.1.tar.gz']' returned non-zero exit status 1.

  at /usr/lib64/python3.13/subprocess.py:579 in run
       575│             # We don't call process.wait() as .__exit__ does that for us.
       576│             raise
       577│         retcode = process.poll()
       578│         if check and retcode:
    →  579│             raise CalledProcessError(retcode, process.args,
       580│                                      output=stdout, stderr=stderr)
       581│     return CompletedProcess(process.args, retcode, stdout, stderr)
       582│ 
       583│ 

The following error occurred when trying to handle this error:


  EnvCommandError

  Command ['/opt/core/venv/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/opt/core/venv', '--no-deps', '/root/.cache/pypoetry/artifacts/fd/71/dd/c818856de5e08cbe6b4ca2f75c2c78a2b064ac384d145bfc0b32d20119/pyproj-3.6.1.tar.gz'] errored with the following return code 1, and output: 
  Processing /root/.cache/pypoetry/artifacts/fd/71/dd/c818856de5e08cbe6b4ca2f75c2c78a2b064ac384d145bfc0b32d20119/pyproj-3.6.1.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'error'
    error: subprocess-exited-with-error
    
    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> [1 lines of output]
        proj executable not found. Please set the PROJ_DIR variable. For more information see: https://pyproj4.github.io/pyproj/stable/installation.html
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  

  at /home/ta/.local/share/pipx/venvs/poetry/lib64/python3.13/site-packages/poetry/utils/env.py:1476 in _run
      1472│                 output = subprocess.check_output(
      1473│                     command, stderr=subprocess.STDOUT, env=env, **kwargs
      1474│                 )
      1475│         except CalledProcessError as e:
    → 1476│             raise EnvCommandError(e, input=input_)
      1477│ 
      1478│         return decode(output)
      1479│ 
      1480│     def execute(self, bin: str, *args: str, **kwargs: Any) -> int:

The following error occurred when trying to handle this error:


  PoetryException

  Failed to install /root/.cache/pypoetry/artifacts/fd/71/dd/c818856de5e08cbe6b4ca2f75c2c78a2b064ac384d145bfc0b32d20119/pyproj-3.6.1.tar.gz

  at /home/ta/.local/share/pipx/venvs/poetry/lib64/python3.13/site-packages/poetry/utils/pip.py:51 in pip_install
       47│ 
       48│     try:
       49│         return environment.run_pip(*args)
       50│     except EnvCommandError as e:
    →  51│         raise PoetryException(f"Failed to install {path.as_posix()}") from e
       52│ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions