PolicyEngine / policyengine

Source code for PolicyEngine
https://policyengine.org
GNU Affero General Public License v3.0
12 stars 4 forks source link

`ContextualVersionConflict` with `protobuf` when running policyengine from Colab if not restarted #1017

Open MaxGhenis opened 1 year ago

MaxGhenis commented 1 year ago

!pip install policyengine and import policyengine throw the below error (notebook).

Restarting the runtime fixes it. Is there a way to avoid having to restart?


ContextualVersionConflict Traceback (most recent call last) in ----> 1 import policyengine

9 frames /usr/local/lib/python3.7/dist-packages/pkg_resources/init.py in resolve(self, requirements, env, installer, replace_conflicting, extras) 775 # Oops, the "best" so far conflicts with a dependency 776 dependent_req = required_by[req] --> 777 raise VersionConflict(dist, req).with_context(dependent_req) 778 779 # push the new requirements onto the stack

ContextualVersionConflict: (protobuf 3.17.3 (/usr/local/lib/python3.7/dist-packages), Requirement.parse('protobuf<5.0.0dev,>=3.19.0'), {'google-cloud-logging'})