Fledge installation failed: [Errno 2] No such file or directory: '/usr/local/fledge/python/requirements.txt'
Closed this issue · 1 comments
Hi everyone,
I was using fledge for some time but recently i installed opcua by below cmd:
apt install python-opcua
and then I see some error msg about fledge.
Now I am not able to install fledge, below error is coming:
Below are steps I followed:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get update
wget -q -O - http://archives.fledge-iot.org/KEY.gpg | sudo apt-key add -
sudo add-apt-repository "deb http://archives.fledge-iot.org/latest/ubuntu1804/x86_64/ / "
sudo apt update
sudo apt -y install fledge
sudo apt -y install fledge-gui
sudo /usr/local/fledge/bin/fledge start
Now it gives error:
Install python dependencies
Could not open requirements file: [Errno 2] No such file or directory: '/usr/local/fledge/python/requirements.txt'
thanks in advance
Hi @khemendra0
Could not open requirements file: [Errno 2] No such file or directory: '/usr/local/fledge/python/requirements.txt'
I see you have tried sudo apt-get upgrade
, And it tried to upgrade all of the fledge packages which you have installed And it has nothing to upgrade as such (you have already the latest version 1.9.1).
So I suspect there is something either with your installation and may have in corrupted state or you have no installation directory exist and have missing contents insisde (i.e /usr/local/fledge/) or cache related issue which is causing it. I would suggest you to purge the fledge package completely.
See the doc here for purge.
If you want to re-use the old data again then don't remove the installation directory. As on the next installation of a fledge package it will pick the old data and configured as is.
If not required, then remove the installation directory as well. And then try to install fledge package.
If above does not work properly, Would you mind to clean the cache?
APT's cached files are located in:
/var/cache/apt/archives/
sudo apt-get clean
It removes everything except the partials folder and lock file from /var/cache/apt/archives/.
# below step is required only if /var/lib/dpkg/info/fledge.* exists
sudo mv /var/lib/dpkg/info/fledge.* /tmp/
# if no success with clean command, try below
sudo dpkg --remove --force-remove-reinstreq fledge
Note:
I see your followed steps and at step sudo /usr/local/fledge/bin/fledge start
- It should say "Fledge is already running." NO?
As such this step is not required; when fledge installation completes it will automatically up & run as a service. You may check it's status
sudo systemctl status fledge
OR
/usr/local/fledge/bin/fledge status
Hope this helps.