Bug #22880
closedfailed to load ceph_module with Python3
0%
Description
It's glad to see that python3 can be build with ceph-mgr, however
```
2018-02-01 16:39:54.385 7fd309ffb700 -1 mgr[py] Class not found in module 'status'
2018-02-01 16:39:54.385 7fd309ffb700 -1 mgr[py] Error loading module 'status': (22) Invalid argument
2018-02-01 16:39:54.408 7fd309ffb700 -1 mgr[py] Module not found: 'mgr_module'
2018-02-01 16:39:54.408 7fd309ffb700 -1 mgr[py] Traceback (most recent call last):
File "/usr/local/lib/ceph/mgr/mgr_module.py", line 2, in <module>
import ceph_module # noqa
ModuleNotFoundError: No module named 'ceph_module'
```
Tested on Debian unstable, Python 3.6.4, ceph was build with `-DMGR_PYTHON_VERSION=3 -DWITH_PYTHON2=OFF -DWITH_PYTHON3=ON`
Updated by John Spray about 6 years ago
- Assignee set to Kefu Chai
Kefu, do you know if a py3-compiled mgr has been seen to work? I've never tried it.
Updated by Nathan Cutler about 6 years ago
@John, we only just started compiling MGR with Python 3. The current status is that it builds. Working is another matter.
Updated by Kefu Chai about 6 years ago
- Status changed from New to Fix Under Review
John, now it works =)
Updated by Kefu Chai about 6 years ago
- Status changed from Fix Under Review to Resolved