Skip to content

Permission error with _in_process #13339

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

Open
1 task done
Redict opened this issue Apr 18, 2025 · 4 comments
Open
1 task done

Permission error with _in_process #13339

Redict opened this issue Apr 18, 2025 · 4 comments
Labels
type: support User Support

Comments

@Redict
Copy link

Redict commented Apr 18, 2025

Description

Installing dependencies which require building sometimes fail with access denied error if certain parameters specified.

Expected behavior

Just installing properly

pip version

23.0.1

Python version

3.10

OS

Windows

How to Reproduce

  1. Get bundled python 3.10 with pip 23.0.1
  2. Try to install package with specified parameters

Output

"C:\\Program Files\\Vector35\\BinaryNinja\\plugins\\python\\python.exe" -m pip --isolated --disable-pip-version-check install --upgrade --upgrade-strategy only-if-needed --target "C:\\Users\\<redacted>\\AppData\\Roaming\\Binary Ninja\\python310\\site-packages" unblob==24.11.13 python-magic==0.4.27

Collecting unblob-native<0.2.0,>=0.1.5
  Using cached unblob_native-0.1.6.tar.gz (36 kB)
  Installing build dependencies ... done
ERROR: Could not install packages due to an OSError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\<redacted>\\AppData\\Local\\Temp\\tmpyjo117jd_in_process.py'
Consider using the `--user` option or check the permissions.

Code of Conduct

@Redict Redict added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Apr 18, 2025
@ichard26
Copy link
Member

You should figure out why pip can't access its own files. The in-process file is created by pip (well, actually, one of its dependencies) to build a wheel for unblob_native to install. This step cannot be skipped. Do you have any aggressive antivirus installed?

@ichard26 ichard26 added type: support User Support and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Apr 19, 2025
@Redict
Copy link
Author

Redict commented Apr 19, 2025

You should figure out why pip can't access its own files. The in-process file is created by pip (well, actually, one of its dependencies) to build a wheel for unblob_native to install. This step cannot be skipped. Do you have any aggressive antivirus installed?

No, I don't have any antivirus installed. Also running it with administrator privileges.

@notatallshaw
Copy link
Member

We only support the latest version of pip, can you please check with pip 25.0.1.

@Redict
Copy link
Author

Redict commented Apr 21, 2025

We only support the latest version of pip, can you please check with pip 25.0.1.

Upgraded to pip 25.0.1:

"C:\\Program Files\\Vector35\\BinaryNinja\\plugins\\python\\python.exe" -m pip --isolated --disable-pip-version-check install --upgrade --upgrade-strategy only-if-needed --target "C:\\Users\\<redacted>\\AppData\\Roaming\\Binary Ninja\\python310\\site-packages" "unblob"
Collecting unblob
  Downloading unblob-25.4.14.tar.gz (112 kB)
  Installing build dependencies ... done
yo!
  Getting requirements to build wheel ... done
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\cli\base_command.py", line 106, in _run_wrapper
    status = _inner_run()
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\cli\base_command.py", line 97, in _inner_run
    return self.run(options, args)
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\cli\req_command.py", line 67, in wrapper
    return func(self, options, args)
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\commands\install.py", line 386, in run
    requirement_set = resolver.resolve(
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\resolution\resolvelib\resolver.py", line 95, in resolve
    result = self._result = resolver.resolve(
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_vendor\resolvelib\resolvers.py", line 397, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
    if not criterion.candidates:
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
    return bool(self._sequence)
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\resolution\resolvelib\found_candidates.py", line 174, in __bool__
    return any(self)
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\resolution\resolvelib\found_candidates.py", line 162, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built
    candidate = func()
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\resolution\resolvelib\factory.py", line 187, in _make_candidate_from_link
    base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\resolution\resolvelib\factory.py", line 233, in _make_base_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\resolution\resolvelib\candidates.py", line 304, in __init__
    super().__init__(
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\resolution\resolvelib\candidates.py", line 159, in __init__
    self.dist = self._prepare()
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\resolution\resolvelib\candidates.py", line 236, in _prepare
    dist = self._prepare_distribution()
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\resolution\resolvelib\candidates.py", line 315, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\operations\prepare.py", line 527, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\operations\prepare.py", line 642, in _prepare_linked_requirement
    dist = _get_prepared_distribution(
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\operations\prepare.py", line 72, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\distributions\sdist.py", line 56, in prepare_distribution_metadata
    self._install_build_reqs(finder)
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\distributions\sdist.py", line 126, in _install_build_reqs
    build_reqs = self._get_build_requires_wheel()
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\distributions\sdist.py", line 103, in _get_build_requires_wheel
    return backend.get_requires_for_build_wheel()
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_internal\utils\misc.py", line 702, in get_requires_for_build_wheel
    return super().get_requires_for_build_wheel(config_settings=cs)
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_vendor\pyproject_hooks\_impl.py", line 196, in get_requires_for_build_wheel
    return self._call_hook(
  File "C:\Program Files\Vector35\BinaryNinja\plugins\python\python310.zip\pip\_vendor\pyproject_hooks\_impl.py", line 403, in _call_hook
    raise BackendUnavailable(
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Cannot import 'maturin'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: support User Support
Projects
None yet
Development

No branches or pull requests

3 participants