Cannot run appmap with clr package.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
Tái hiện lỗi với môi trường Pipenv được hiển thị bằng cách chạy Python và import clr. Bắt đầu với appmap/wrapt/wrappers.py và _appmap/importer.py, sau đó kiểm tra clr.py và quá trình khởi tạo pythonnet được hiển thị trong traceback. Hoàn thành khi import clr thành công trong khi AppMap đã được cài đặt và bật.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I thought I'd try out your application, but I ran into an issue early. Seems like it doesn't work with either pythonnet or clr. Below you can see I just install the two and I cannot import clr.
PS C:\Users\ericfoss\temp> pipenv graph
appmap==1.14.1
- importlib-metadata [required: >=0.8, installed: 6.0.0]
- zipp [required: >=0.5, installed: 3.14.0]
- importlib-resources [required: >=5.4.0,<6.0.0, installed: 5.12.0]
- inflection [required: >=0.3.0, installed: 0.5.1]
- packaging [required: >=21.3,<22.0, installed: 21.3]
- pyparsing [required: >=2.0.2,!=3.0.5, installed: 3.0.9]
- PyYAML [required: >=5.3.0, installed: 6.0]
pythonnet==3.0.1
- clr-loader [required: >=0.2.2,<0.3.0, installed: 0.2.5]
- cffi [required: >=1.13, installed: 1.15.1]
- pycparser [required: Any, installed: 2.21]
PS C:\Users\ericfoss\temp> pipenv run python
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import clr
Failed to initialize pythonnet: System.NullReferenceException: Object reference not set to an instance of an object.
at Python.Runtime.PythonException.TryDecodePyErr(BorrowedReference typeRef, BorrowedReference valRef, BorrowedReference tbRef)
at Python.Runtime.PythonException.FetchCurrentOrNull(ExceptionDispatchInfo& dispatchInfo)
at Python.Runtime.PythonException.ThrowLastAsClrException()
at Python.Runtime.ImportHook.SetupImportHook()
at Python.Runtime.ImportHook.Initialize()
at Python.Runtime.Runtime.Initialize(Boolean initSigs)
at Python.Runtime.PythonEngine.Initialize(IEnumerable`1 args, Boolean setSysArgv, Boolean initSigs)
at Python.Runtime.PythonEngine.InitExt()
at Python.Runtime.Loader.Initialize(IntPtr data, Int32 size)
at Python.Runtime.PythonException.TryDecodePyErr(BorrowedReference typeRef, BorrowedReference valRef, BorrowedReference tbRef)
at Python.Runtime.PythonException.FetchCurrentOrNull(ExceptionDispatchInfo& dispatchInfo)
at Python.Runtime.PythonException.ThrowLastAsClrException()
at Python.Runtime.ImportHook.SetupImportHook()
at Python.Runtime.ImportHook.Initialize()
at Python.Runtime.Runtime.Initialize(Boolean initSigs)
at Python.Runtime.PythonEngine.Initialize(IEnumerable`1 args, Boolean setSysArgv, Boolean initSigs)
at Python.Runtime.PythonEngine.InitExt()
at Python.Runtime.Loader.Initialize(IntPtr data, Int32 size)Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "C:\Users\ericfoss\temp\.venv\lib\site-packages\appmap\wrapt\wrappers.py", line 581, in __call__
return self._self_wrapper(self.__wrapped__, instance,
File "C:\Users\ericfoss\temp\.venv\lib\site-packages\_appmap\importer.py", line 231, in wrapped_exec_module
exec_module(*args, **kwargs)
File "C:\Users\ericfoss\temp\.venv\lib\site-packages\clr.py", line 6, in <module>
load()
File "C:\Users\ericfoss\temp\.venv\lib\site-packages\pythonnet\__init__.py", line 144, in load
raise RuntimeError("Failed to initialize Python.Runtime.dll")
RuntimeError: Failed to initialize Python.Runtime.dll
>>>
- Ngôn ngữ chính
- Python
- Star
- 104
- Fork
- 17
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getappmap/appmap-python
-
getappmap/appmap-python#381 · 1 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
getappmap/appmap-python#376 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
getappmap/appmap-python#371 ·
-
enhancement navie-plan
getappmap/appmap-python#366 · 1 bình luận · 1 người được giao ·
-
navie-plan
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
getappmap/appmap-python#365 · 1 bình luận ·
Tất cả issue của getappmap/appmap-python
Issue tương tự
-
area/auth bug comp/agent P3 platform/discord type/security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#117848 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
bancolombia/sentinel#23 ·
-
test md Đang mởCI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100