New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'box' #212
Comments
|
I did that. No joy. Same error message
…Sent from my iPhone
On Sep 26, 2021, at 4:47 PM, Chris Griffith ***@***.***> wrote:
pip install python-box
box is reserved or something and couldn't get that name on pypi, so have to type out python-box for the install.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
When running python, are you calling |
Yes to both
…Sent from my iPhone
On Sep 26, 2021, at 7:28 PM, Chris Griffith ***@***.***> wrote:
When running python, are you calling python3 and did pip3 install python-box?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Can you paste the full output of:
|
Here’s the output:
$ pip3 install --upgrade python-box
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: python-box in ./.local/lib/python3.7/site-packages (5.4.1)
$ python3 -c "import box"
$
This lead me to the solution. The program I run must be run under “sudo”. When I installed the package I did not use “sudo pip3 install —upgrade python-box”. Once I installed it that way, all was well.
Sorry to have wasted your time with my ignorance.
Thanks for your quick help!
… On Sep 26, 2021, at 8:06 PM, Chris Griffith ***@***.***> wrote:
Can you paste the full output of:
pip3 install --upgrade python-box
python3 -c "import box"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#212 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADXIYZJHEOLWI57CSKB5D3UD6YQTANCNFSM5EZFGNXQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
No problem at all, glad it's working for you now! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get the following error when I have this line in my code:
from box import Box
ModuleNotFoundError: No module named 'box'
I've installed on RasPi Zero using pip3 install box. Also tried the regular pip install box.
Am running Python 3 3.7.3
Am I missing something obvious?
Thanks,
Ken
The text was updated successfully, but these errors were encountered: