Commit 48eee8b
[Bazel] Fix mobile-install for python2
**Background**
Fix issue introduced by 1049fe8
It turns out the queue module name is inconsistent across different python versions. We found that:
* On some macos system:
- python2 contains both queue and Queue module. All python2 contains Queue module
- python3 only contains queue module
* On some Linux system
- python2 contains only Queue module.
- python3 only contains queue module
Therefore, some developers are seeing `ImportError: No module named queue` errors locally on linux machine after using mobile-install.
**Change**
Import correct Queue module instead
**Test**
Local test pass
Closes #12540.
PiperOrigin-RevId: 3697731331 parent 4c59a40 commit 48eee8b
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
0 commit comments