mulbc / homebrew-ceph-client

Homebrew tap for ceph client libraries
35 stars 26 forks source link

ModuleNotFoundError: No module named 'rados' #22

Open YakovMatvienko opened 2 years ago

YakovMatvienko commented 2 years ago

Hi, i'm trying to install ceph on macOS monterrey 12.4. Having successfully installed ceph with brew install ceph-client instruction, i tried entering ceph in terminal which lead to this error:

Traceback (most recent call last):
  File "/usr/local/Cellar/ceph-client/17.2.0/libexec/bin/ceph", line 151, in <module>
    import rados
ModuleNotFoundError: No module named 'rados'

Looking into error, i've found ceph thread https://tracker.ceph.com/issues/24622 opened 4 years ago. It suggested, there was something wrong with python2, but macos from 12.3 doesn't have python2 installed. /usr/local/Cellar/ceph-client/17.2.0/libexec/bin/ directory contained rados binary.

tchaikov commented 2 years ago

@YakovMatvienko hi Sauron, will take a look this weekend. actually, i build this bottle on macOS Monterey also. it does not seems like an issue caused by missing python2.

do you have python3.9 installed ? i built this bottle with python3.9, which is also installed using brew.

probably i should have added python3.9 as a runtime dependency though.

YakovMatvienko commented 2 years ago

I do have python3.9 installed. Brew identifies it being isntalled: brew yields warning, that python3.9 has been installed after brew install python3 command.

tchaikov commented 1 year ago

just tested with the latest bottle. works with Ventura + python3.10 + 17.2.5-1