Skip to content

I can't install subvertpy for python #41

@lovezyz

Description

@lovezyz

Collecting subvertpy
Using cached subvertpy-0.11.0.tar.gz (114 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [36 lines of output]
Traceback (most recent call last):
File "C:\Users\qiunanshi\AppData\Local\Temp\pip-install-naov3pfv\subvertpy_c75f67c3b02c46f1bb3217af32fcde12\setup.py", line 49, in apr_build_data
os.environ['APR_LINK_FLAGS'])
File "D:\python\version\3.9.13\lib\os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'APR_LINK_FLAGS'

  During handling of the above exception, another exception occurred:
 
  Traceback (most recent call last):
    File "C:\Users\qiunanshi\AppData\Local\Temp\pip-install-naov3pfv\subvertpy_c75f67c3b02c46f1bb3217af32fcde12\setup.py", line 22, in config_value
      return subprocess.check_output([command] + args).strip().decode()
    File "D:\python\version\3.9.13\lib\subprocess.py", line 424, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "D:\python\version\3.9.13\lib\subprocess.py", line 505, in run
      with Popen(*popenargs, **kwargs) as process:
    File "D:\python\version\3.9.13\lib\subprocess.py", line 951, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "D:\python\version\3.9.13\lib\subprocess.py", line 1420, in _execute_child
      hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
  FileNotFoundError: [WinError 2] 系统找不到指定的文件。
 
  During handling of the above exception, another exception occurred:
 
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\qiunanshi\AppData\Local\Temp\pip-install-naov3pfv\subvertpy_c75f67c3b02c46f1bb3217af32fcde12\setup.py", line 138, in <module>
      (apr_includedir, apr_link_flags) = apr_build_data()
    File "C:\Users\qiunanshi\AppData\Local\Temp\pip-install-naov3pfv\subvertpy_c75f67c3b02c46f1bb3217af32fcde12\setup.py", line 52, in apr_build_data
      apr_config(["--link-ld", "--libs"]))
    File "C:\Users\qiunanshi\AppData\Local\Temp\pip-install-naov3pfv\subvertpy_c75f67c3b02c46f1bb3217af32fcde12\setup.py", line 32, in apr_config
      return config_value("apr-1-config", "APR_CONFIG", args)
    File "C:\Users\qiunanshi\AppData\Local\Temp\pip-install-naov3pfv\subvertpy_c75f67c3b02c46f1bb3217af32fcde12\setup.py", line 25, in config_value
      raise Exception(
  Exception: apr-1-config not found. Please set APR_CONFIG environment variable
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions