i tried to install InquirerPy but it keeps showing me this #223

Open
opened 2025-05-19 11:00:50 -04:00 by cutefishaep · 10 comments
cutefishaep commented 2025-05-19 11:00:50 -04:00 (Migrated from github.com)

$ sudo venv/bin/python3 main.py
Traceback (most recent call last):
File "/home/wahyupc/waydroid_script/main.py", line 2, in
from InquirerPy import inquirer
ModuleNotFoundError: No module named 'InquirerPy'

$ sudo venv/bin/python3 main.py Traceback (most recent call last): File "/home/wahyupc/waydroid_script/main.py", line 2, in <module> from InquirerPy import inquirer ModuleNotFoundError: No module named 'InquirerPy'
stelios333 commented 2025-06-05 09:25:02 -04:00 (Migrated from github.com)

Try running venv/bin/python3 -m pip install -r requirements.txt. It will install all libraries waydroid script needs, including InquirerPy.

Try running `venv/bin/python3 -m pip install -r requirements.txt`. It will install all libraries waydroid script needs, including InquirerPy.
psykoen commented 2025-07-03 15:46:11 -04:00 (Migrated from github.com)

Try running venv/bin/python3 -m pip install -r requirements.txt. It will install all libraries waydroid script needs, including InquirerPy.

if i run that everything libs are installed, but the outcome stays the same.

> Try running `venv/bin/python3 -m pip install -r requirements.txt`. It will install all libraries waydroid script needs, including InquirerPy. if i run that everything libs are installed, but the outcome stays the same.
stelios333 commented 2025-07-03 16:03:40 -04:00 (Migrated from github.com)

What's the output of venv/bin/python3 -m pip freeze?

What's the output of `venv/bin/python3 -m pip freeze`?
psykoen commented 2025-07-03 20:28:17 -04:00 (Migrated from github.com)

i installed inquirerpy through Octopi, now it seems to work. what i dont understand that it worked 1st time, but not day after it did not. i did do a OS update maybe that unstalled it.

i installed inquirerpy through Octopi, now it seems to work. what i dont understand that it worked 1st time, but not day after it did not. i did do a OS update maybe that unstalled it.
psykoen commented 2025-07-03 20:29:34 -04:00 (Migrated from github.com)

What's the output of venv/bin/python3 -m pip freeze?

~/waydroid_script main*
❯ venv/bin/python3 -m pip freeze
certifi==2025.6.15
charset-normalizer==3.4.2
idna==3.10
inquirerpy==0.3.4
pfzy==0.3.4
prompt_toolkit==3.0.51
requests==2.32.4
tqdm==4.67.1
urllib3==2.5.0
wcwidth==0.2.13

> What's the output of `venv/bin/python3 -m pip freeze`? ~/waydroid_script main* ❯ venv/bin/python3 -m pip freeze certifi==2025.6.15 charset-normalizer==3.4.2 idna==3.10 inquirerpy==0.3.4 pfzy==0.3.4 prompt_toolkit==3.0.51 requests==2.32.4 tqdm==4.67.1 urllib3==2.5.0 wcwidth==0.2.13
Genome26 commented 2025-07-05 08:00:52 -04:00 (Migrated from github.com)

i installed inquirerpy through Octopi, now it seems to work. what i dont understand that it worked 1st time, but not day after it did not. i did do a OS update maybe that unstalled it.

can you share how you did it, have the same problem and nothing seems to work

> i installed inquirerpy through Octopi, now it seems to work. what i dont understand that it worked 1st time, but not day after it did not. i did do a OS update maybe that unstalled it. can you share how you did it, have the same problem and nothing seems to work
ddxv commented 2025-08-28 02:44:01 -04:00 (Migrated from github.com)

I encountered the same issue, Inquirer shows up in pip freeze after install but unable to run main.py as it oddly complains that Inquirer is not installed.

I was using Python3.13

Switching to Python3.12 resolved the issue and I was able to use main.py

I encountered the same issue, Inquirer shows up in `pip freeze` after install but unable to run `main.py` as it oddly complains that Inquirer is not installed. I was using Python3.13 Switching to Python3.12 resolved the issue and I was able to use `main.py`
agreeable-frog commented 2026-03-06 15:26:17 -05:00 (Migrated from github.com)

To anyone stranded here.
When you do pip install -r requirement.txt, you are installing the deps on your user.
But when you do sudo python3 main.py, it is sudo who is running the script, which explains it can't find the libs.
So you should log as root with sudo su and then do all the steps from there.

To anyone stranded here. When you do pip install -r requirement.txt, you are installing the deps on your user. But when you do sudo python3 main.py, it is sudo who is running the script, which explains it can't find the libs. So you should log as root with sudo su and then do all the steps from there.
Vic152 commented 2026-04-24 21:58:43 -04:00 (Migrated from github.com)

tried all the things listed and compiling python 3.12, it did not work, I am on Debian 13

tried all the things listed and compiling python 3.12, it did not work, I am on Debian 13
valenipes commented 2026-07-02 05:57:23 -04:00 (Migrated from github.com)

For anyone using conda to create virtual environments, run
sudo ~/.conda/envs/<your_virtual_environment>/bin/python3 main.py

For anyone using conda to create virtual environments, run `sudo ~/.conda/envs/<your_virtual_environment>/bin/python3 main.py`
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wbruno/waydroid_script#223