You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ni-measurement-plugin-sdk-generator requires ni-measurement-plugin-sdk-service, but its pyproject.toml only lists this package as a dev dependency and not a normal dependency.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Administrator\.pyenv\pyenv-win\versions\3.9.13\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "D:\dev\measurement-plugin-python\packages\generator\ni_measurement_plugin_sdk_generator\client\__init__.py", line 11, in <module>
from ni_measurement_plugin_sdk_service._internal.stubs.ni.measurementlink.measurement.v2 import (
ModuleNotFoundError: No module named 'ni_measurement_plugin_sdk_service'
@bkeryan, as the PR-925 requires the generator to have the ni-measurement-plugin-sdk-service source code changes, I believe the ideal fix will be possible once we do a release/pre-release for ni-measurement-plugin-sdk-service. After that, we should do this fix by adding the release version of ni-measurement-plugin-sdk-service as a dependency for ni-measurement-plugin-sdk-generator before making the release for ni-measurement-plugin-sdk-generator.
@bkeryan, as the PR-925 requires the generator to have the ni-measurement-plugin-sdk-service source code changes, I believe the ideal fix will be possible once we do a release/pre-release for ni-measurement-plugin-sdk-service. After that, we should do this fix by adding the release version of ni-measurement-plugin-sdk-service as a dependency for ni-measurement-plugin-sdk-generator before making the release for ni-measurement-plugin-sdk-generator.
@bkeryan, as the PR-925 requires the generator to have the ni-measurement-plugin-sdk-service source code changes, I believe the ideal fix will be possible once we do a release/pre-release for ni-measurement-plugin-sdk-service. After that, we should do this fix by adding the release version of ni-measurement-plugin-sdk-service as a dependency for ni-measurement-plugin-sdk-generator before making the release for ni-measurement-plugin-sdk-generator.
Bug Report
ni-measurement-plugin-sdk-generator
requiresni-measurement-plugin-sdk-service
, but itspyproject.toml
only lists this package as a dev dependency and not a normal dependency.Repro or Code Sample
Expected Behavior
It generates a client.
Current Behavior
It emits this error:
Possible Solution
Add a dependency.
Context
Double-checking dependencies for #914
Your Environment
ni-measurement-plugin-sdk-service
version: Add test case to check mypy error in generated client and fix existing mypy errors #914AB#2864535
The text was updated successfully, but these errors were encountered: