Skip to content
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

ImportError: No module named 'blessed' #238

Closed
JiangXu123 opened this issue Apr 10, 2021 · 1 comment
Closed

ImportError: No module named 'blessed' #238

JiangXu123 opened this issue Apr 10, 2021 · 1 comment

Comments

@JiangXu123
Copy link

JiangXu123 commented Apr 10, 2021

Hello I am using a raspberry Pi 3A plus, and I tried to install IOTstack just by following the tutorial. I found a repeated error that is confusing, when I ran menu.sh, it reported:

Checking for project update
From https://github.com/SensorsIot/IOTstack
 * branch            master     -> FETCH_HEAD
Project is up to date
Python Version: 'Unknown'. Python is outdated.
Hit:1 https://download.docker.com/linux/raspbian buster InRelease                                                   
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease                                                     
Hit:3 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-dev is already the newest version (3.7.3-1).
python3-pip is already the newest version (18.1-5+rpt1).
The following packages were automatically installed and are no longer required:
  alsa-base gconf-service gconf2-common gstreamer0.10-alsa gstreamer0.10-plugins-base libexiv2-14 libgconf-2-4
  libgfortran3 libgmime-2.6-0 libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libllvm8 libmicrodns0 libncurses5
  libssl1.0.2 libva-wayland2 libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-2 lxplug-volume pimixer
  point-rpi rpi-eeprom-images uuid-dev xfconf
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: ruamel.yaml==0.16.12 in /home/pi/.local/lib/python3.7/site-packages (0.16.12)
Requirement already up-to-date: blessed in /home/pi/.local/lib/python3.7/site-packages (1.18.0)
Requirement already satisfied, skipping upgrade: ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.9" in /home/pi/.local/lib/python3.7/site-packages (from ruamel.yaml==0.16.12) (0.2.2)
Requirement already satisfied, skipping upgrade: wcwidth>=0.1.4 in /usr/lib/python3/dist-packages (from blessed) (0.1.7)
Requirement already satisfied, skipping upgrade: six>=1.9.0 in /usr/lib/python3/dist-packages (from blessed) (1.12.0)
Please enter sudo pasword if prompted
Command: docker version -f "{{.Server.Version}}"
Docker version 20.10.5 >= 18.2.0. Docker is good to go.
Project dependencies up to date
Existing installation detected.
Traceback (most recent call last):
  File "./scripts/menu_main.py", line 2, in <module>
    from blessed import Terminal
ImportError: No module named 'blessed'

However, I checked installed module by:
pip list
and blessed was there:
Package Version


arandr 0.1.9
asn1crypto 0.24.0
automationhat 0.2.0
backports.functools-lru-cache 1.6.3
blessed 1.18.0
blinker 1.4
blinkt 0.1.2
buttonshim 0.0.2
Cap1xxx 0.1.3
certifi 2018.8.24
chardet 3.0.4
Click 7.0
colorama 0.3.7
colorzero 1.1
configparser 3.5.0b2
cookies 2.2.1
cryptography 2.6.1
drumhat 0.1.0
entrypoints 0.3
enum34 1.1.6
envirophat 1.0.0
ExplorerHAT 0.4.2
Flask 1.0.2
fourletterphat 0.1.0
funcsigs 1.0.2
gpiozero 1.5.1
gyp 0.1
idna 2.6
ipaddress 1.0.17
itsdangerous 0.24
Jinja2 2.10
keyring 17.1.1
keyrings.alt 3.1.1
MarkupSafe 1.1.0
mcpi 0.1.1
microdotphat 0.2.1
mock 2.0.0
mote 0.0.4
motephat 0.0.3
numpy 1.16.2
oauthlib 2.1.0
olefile 0.46
pantilthat 0.0.7
pbr 4.2.0
phatbeat 0.1.1
pianohat 0.1.0
picamera 1.13
picraft 1.0
piglow 1.2.5
pigpio 1.78
Pillow 5.4.1
pip 18.1
pycairo 1.16.2
pycrypto 2.6.1
pyflakes 2.0.0
pygame 1.9.4.post1
PyGObject 3.30.4
pyinotify 0.9.6
PyJWT 1.7.0
pyOpenSSL 19.0.0
pyserial 3.4
pyxdg 0.25
rainbowhat 0.1.0
requests 2.21.0
requests-oauthlib 1.0.0
responses 0.9.0
RPi.GPIO 0.7.0
RTIMULib 7.2.1
scrollphat 0.0.7
scrollphathd 1.2.1
SecretStorage 2.3.1
sense-emu 1.1
sense-hat 2.2.0
setuptools 40.8.0
simplejson 3.16.0
six 1.12.0
skywriter 0.0.7
sn3218 1.2.7
spidev 3.4
touchphat 0.0.1
twython 3.7.0
unicornhathd 0.0.4
urllib3 1.24.1
wcwidth 0.2.5
Werkzeug 0.14.1
wheel 0.32.3


how to solve this problem? 
Thanks!
@JiangXu123
Copy link
Author

Hi everyone, I solved the problem, that I found I installed a miniconda and I added to ~/.bashrc file, I commented the miniconda and then saved the file and rebooted, and solved the problem. Cheers!

samkomo pushed a commit to samkomo/IOTstack that referenced this issue Dec 22, 2021
…b-volumepath

Correct nextcloud_db data path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant