question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'dapr.version' (dapr-python 1.8.0)

See original GitHub issue

Expected Behavior

No error!

Actual Behavior

youngp@DESKTOP_frlucas state_store % python3 state_store.py
Traceback (most recent call last):
  File "/Users/youngp/repos/samples/python-sdk/examples/state_store/state_store.py", line 8, in <module>
    from dapr.clients import DaprClient
  File "/usr/local/lib/python3.10/site-packages/dapr/clients/__init__.py", line 20, in <module>
    from dapr.clients.grpc.client import DaprGrpcClient, MetadataTuple, InvokeMethodResponse
  File "/usr/local/lib/python3.10/site-packages/dapr/clients/grpc/client.py", line 40, in <module>
    from dapr.version import __version__
ModuleNotFoundError: No module named 'dapr.version'

Steps to Reproduce the Problem

  1. Install the latest dapr pkg (1.8.0
  2. Run state_store.py sample

Release Note

RELEASE NOTE:

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
berndverstcommented, Oct 12, 2022

@espenairmine @ngiind @DarqueWarrior @youngbupark fixed now. Sorry about that!

1reaction
berndverstcommented, Oct 12, 2022

Released 1.8.1 with the fix to ensure everyone pulls in the correct version. 1.8.0 is yanked and can no longer be installed.

Fix is here: https://github.com/dapr/python-sdk/commit/8f64c3ea259a1dd713308706e4a46f7b27b3e97b

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pip install dapr does not install all the correct packages in non ...
pip install dapr should install all the correct modules. Currently it looks like there are some modules that you only get when you...
Read more >
dapr - PyPI
Dapr codifies the best practices for building microservice applications into open, independent, building blocks that enable you to build portable applications ...
Read more >
ModuleNotFoundError: No module named 'dapr' - RoseIndia.Net
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'dapr' How to remove the ModuleNotFoun.
Read more >
Dapr Python SDK
Dapr client for writing Python applications to interact with the Dapr sidecar and other Dapr applications · Dapr actor for creating and interacting...
Read more >
Supported runtime and SDK releases - Dapr Docs
Release date Runtime CLI Dashboard Status December 2nd 2022 1.9.5 1.9.1 0.11.0 Supported (current) November 17th 2022 1.9.4 1.9.1 0.11.0 Supported November 4th 2022 1.9.3 1.9.1...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found