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

PermissionError when building with multiple imports on Windows via Git Bash #124

Open
mithomas opened this issue Oct 19, 2023 · 0 comments

Comments

@mithomas
Copy link

Running python -m mkdocs serve under Windows 10 using Git Bash with multirepo enabled using !import results in:

$ python -m mkdocs serve
INFO    -  Building documentation...
INFO    -  Multirepo plugin importing docs...
🔳 subrepo1
🔳 subrepo2

PermissionError: [WinError 32] Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird: 'C:\\<dev path>\\temp_dir'
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000001DA083BD360>
Traceback (most recent call last):
  File "C:\Program Files\Anaconda3\lib\asyncio\proactor_events.py", line 116, in __del__
    _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
  File "C:\Program Files\Anaconda3\lib\asyncio\proactor_events.py", line 80, in __repr__
    info.append(f'fd={self._sock.fileno()}')
  File "C:\Program Files\Anaconda3\lib\asyncio\windows_utils.py", line 102, in fileno
    raise ValueError("I/O operation on closed pipe")
ValueError: I/O operation on closed pipe
Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x000001DA08397880>
Traceback (most recent call last):
  File "C:\Program Files\Anaconda3\lib\asyncio\base_subprocess.py", line 125, in __del__
    _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
  File "C:\Program Files\Anaconda3\lib\asyncio\base_subprocess.py", line 78, in __repr__
    info.append(f'stdout={stdout.pipe}')
  File "C:\Program Files\Anaconda3\lib\asyncio\proactor_events.py", line 80, in __repr__
    info.append(f'fd={self._sock.fileno()}')
  File "C:\Program Files\Anaconda3\lib\asyncio\windows_utils.py", line 102, in fileno
    raise ValueError("I/O operation on closed pipe")
ValueError: I/O operation on closed pipe

temp_dir actually is created and cleaned up again.

The same config builds fine when using Linux.

Versions:

  • Python 3.10.9 (Anaconda distribution)
  • mkdocs 1.5.3
  • mkdocs-multirepo-plugin 0.6.3
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

1 participant