Please run the following commands in order:
sudo apt-get -y update
sudo apt install python3-pip
sudo pip3 install boltiot
Do let me know if you need any other help.
Hi @dannypraneeth ,
As I can see you are using Python3.5 and it has some issues with os library.
To upgrade to python3.8, use the below commands -
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.8
Then install virtualenv package for python3.8
sudo apt-get install python3.8-venv python3.8-dev
Create a virtual environment and activate it.
python3.8 -m venv myenv
source /home/ubuntu/myenv/bin/activate
and then you can install the boltiot package using
pip install boltiot
Check this video How to install python3.8 virtual environment | create venv | activate venv on Ubuntu 20.04 - YouTube
Do let me know in case you need any other information.
I am facing the same error like him and i followed your steps but when i type sudo apt-get update i am facing this
sudo apt-get install python3.8
Hi @dannypraneeth ,
Please follow this steps to fix cd rom issue Problem in setting bolt python library
I am also inviting @ravi.ujjwal to help you out over a remote session.
Kindly follow the below menstioned steps.
Steps to follow:
- Start Ubuntu.
- Type:
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
- Type:
tar xfz Python-2.7.9.tgz
cd Python-2.7.9/
./configure --prefix /usr/local/lib/python2.7.9
make
sudo make install
/usr/local/lib/python2.7.9/bin/python -V
sudo apt-get install virtualenv
-
virtualenv --python=/usr/local/lib/python2.7.9/bin/python .Give_any_name
Give virtual environment name of your wish source .Give_any_name/pin/activate
pip uninstall pip
curl "https://bootstrap.pypa.io/pip/2.7/get-pip.py" -o "get-pip.py"
python get-pip.py
Now the bolt module can be installed properly.
If you are unable to solve I’ll arrange remote session to solve the issue.
I was able to rectify the error, thankyou
hi there , after performing step 10 , I’m getting import error , i’m attaching the screenshot of what is shown on screen
Good morning @ravi.ujjwal sir
I am having issue in step 10
There is permission denied error
Please tell me What should I do
Hi,
There will be space between python and .seven like this
virtualenv --python=/usr/xx/xxx/xxx/bin/python .seven
Good morning @ravi.ujjwal Sir now this error is occurred
please solve it as fast as possible I am stuck i want to make my projects also
zlib is module is not installed. For that you will have to run this command.
sudo apt-get install zlib1g-dev
hi @Rohini , i was also getting the same error then @ravi.ujjwal replied me the following
" After installing zlib
you will have to configure and make
and make install
step once again "
can you do it once and reply back if it works