Reputation: 122
I recently got an M2 Mac and have been unable to run Pub/Sub Emulator on it. I was using the following code previously:
def create_topic(project_id, publisher, topic):
print("I am here 7.1")
publisher = PublisherClient()
print("I am here 7.2")
topic_path = publisher.topic_path(project_id, topic)
print("I am here 7.3")
new_topic = publisher.create_topic(request={"name": topic_path})
print(f"Created topic: {new_topic.name}")
return topic_path
When I run this, "I am here 7.3" is the last line printed. Then it just gets stuck without printing any errors. The image also has the AMD64 warning which is why I think this issue has something to do with M2 laptops. It works fine on intel ones.
Edit: The AMD64 warning I see against this container in docker desktop:
When I hover over the warning it says:
Image may have poor performance, or fail, if run via Emulation.
Upvotes: 0
Views: 459