Unable to find assembly 'C:\Windows\System32\inetsrv\Microsoft.Web.Administration.dll'
in progress
### Description
I have installed the awsebcli@latest using pip. When attempting to verify installation by running `eb --version` the command throws an exception (below). I found the previous bug report for this in version 3.23 and the related release notes, but the behavior is still occurring in my case.
### Steps to reproduce
`pip install awsebcli==3.25`
`eb --version --debug`
### Observed result
PS C:\Users\...> eb --version --debug
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\JasonChow\AppData\Roaming\Python\Python312\Scripts\eb.exe\__main__.py", line 4, in <module>
File "C:\Users\JasonChow\AppData\Roaming\Python\Python312\site-packages\ebcli\core\ebcore.py", line 35, in <module>
from ebcli.controllers.migrate import MigrateController, MigrateExploreController, MigrateCleanupController
File "C:\Users\JasonChow\AppData\Roaming\Python\Python312\site-packages\ebcli\controllers\migrate.py", line 35, in <module>
clr.AddReference(r"C:\Windows\System32\inetsrv\Microsoft.Web.Administration.dll")
System.IO.FileNotFoundException: Unable to find assembly 'C:\Windows\System32\inetsrv\Microsoft.Web.Administration.dll'.
at Python.Runtime.CLRModule.AddReference(String name)
### Expected result
EB CLI 3.25.0 ...
### Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
OS: Windows 11 Enterprise
OS Build Version: 10.0.26100
Python version: 3.12.9
Pip version: 24.3.1
partial output of `pip list`
```
Package Version
------------------ -----------
ansicon 1.89.0
awsebcli 3.25
bcrypt 4.3.0
```
关闭于 2025-09-30 1 条评论