rainmaker cli fail

colinives
Posts: 37
Joined: Tue Mar 03, 2020 2:53 pm

rainmaker cli fail

Postby colinives » Wed Mar 31, 2021 2:29 pm

Hi there,

I've come back to the rainmaker part of my project and the CLI is now failing to run. I've reinstalled rainmaker and rerun the clip setup requirements.txt but I get this when trying to login (or any other cli command. Any ideas>?

I ran: ./rainmaker.py login <my email address>

Code: Select all

Failed to import ESP Rainmaker library. dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cryptography/hazmat/bindings/_constant_time.abi3.so, 2): no suitable image found.  Did find:
	/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cryptography/hazmat/bindings/_constant_time.abi3.so: no matching architecture in universal wrapper
	/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cryptography/hazmat/bindings/_constant_time.abi3.so: no matching architecture in universal wrapper
Traceback (most recent call last):
  File "/Users/colinives/esp/esp-idf/esp-rainmaker/cli/./rainmaker.py", line 19, in <module>
    from rmaker_cmd.node import *
  File "/Users/colinives/esp/esp-idf/esp-rainmaker/cli/rmaker_cmd/node.py", line 34, in <module>
    raise err
  File "/Users/colinives/esp/esp-idf/esp-rainmaker/cli/rmaker_cmd/node.py", line 31, in <module>
    from rmaker_tools.rmaker_claim.claim import claim
  File "/Users/colinives/esp/esp-idf/esp-rainmaker/cli/rmaker_tools/rmaker_claim/claim.py", line 28, in <module>
    from cryptography import x509
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cryptography/x509/__init__.py", line 8, in <module>
    from cryptography.x509.base import (
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cryptography/x509/base.py", line 16, in <module>
    from cryptography.x509.extensions import Extension, ExtensionType
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cryptography/x509/extensions.py", line 18, in <module>
    from cryptography.hazmat.primitives import constant_time, serialization
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cryptography/hazmat/primitives/constant_time.py", line 11, in <module>
    from cryptography.hazmat.bindings._constant_time import lib
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cryptography/hazmat/bindings/_constant_time.abi3.so, 2): no suitable image found.  Did find:
	/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cryptography/hazmat/bindings/_constant_time.abi3.so: no matching architecture in universal wrapper
	/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cryptography/hazmat/bindings/_constant_time.abi3.so: no matching architecture in universal wrapper
Any tips on where I even start to solve this?

Thank you

colinives
Posts: 37
Joined: Tue Mar 03, 2020 2:53 pm

Re: rainmaker cli fail

Postby colinives » Wed Mar 31, 2021 6:50 pm

What may have caused the problem is that I installed a virtual environment for doing some python GUI work. I've uninstalled the environment (pip uninstall virtualenv) and reinstalled python with the latest release. All fixed

Who is online

Users browsing this forum: No registered users and 79 guests