opentensor / bittensor

Internet-scale Neural Networks
https://www.bittensor.com/
MIT License
917 stars 318 forks source link

Can't generate cold wallet #902

Closed leedsrising closed 2 years ago

leedsrising commented 2 years ago

Describe the bug

When trying to create my first coldkey, I'm running into an error

leedsrising@Leedss-MBP .bittensor % btcli new_coldkey Traceback (most recent call last): File "/opt/homebrew/bin/btcli", line 7, in exec(compile(f.read(), file, 'exec')) File "/Users/leedsrising/.bittensor/bittensor/bin/btcli", line 3, in import bittensor File "/Users/leedsrising/.bittensor/bittensor/bittensor/init.py", line 87, in import bittensor._proto.bittensor_pb2_grpc as grpc File "/Users/leedsrising/.bittensor/bittensor/bittensor/_proto/bittensor_pb2_grpc.py", line 3, in import grpc File "/opt/homebrew/lib/python3.10/site-packages/grpc/init.py", line 22, in from grpc import _compression File "/opt/homebrew/lib/python3.10/site-packages/grpc/_compression.py", line 15, in from grpc._cython import cygrpc ImportError: dlopen(/opt/homebrew/lib/python3.10/site-packages/grpc/_cython/cygrpc.cpython-310-darwin.so, 0x0002): tried: '/opt/homebrew/lib/python3.10/site-packages/grpc/_cython/cygrpc.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/cygrpc.cpython-310-darwin.so' (no such file), '/usr/lib/cygrpc.cpython-310-darwin.so' (no such file)

To Reproduce Steps to reproduce the behavior: Running command btcli new_coldkey after first install of bittensor with /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/opentensor/bittensor/master/scripts/install.sh)"

Expected behavior Would expect creation of my coldkey without ane error

Environment:

unconst commented 2 years ago

Seem the error is originating from the GRPC version on mac.

Specifically here: from grpc._cython import cygrpc

And: mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')

Likely caused by M1 mac.

UDPATE: It appears that the issue is related to python3.10. https://groups.google.com/g/grpc-io/c/HLB9GIY6F1s

Try installing python3.9 and reinstalling from source.