Intel® Edge Software Hub
Get help on building Edge Software Hub solutions for edge compute node
Announcements
Welcome to the Intel Community! If you like the answer to your question, please mark it as 'Accepted Solution' to help others.

The Edge Software Vision Package for Red Hat Enterprise Linux is now available here.

Learn more about developing on Intel® Hardware and Software here.
304 Discussions

Failed to install Automated_License_Plate_Recognition. tuple index out of range on Win11 WSL2 Ubuntu

jacky0327
New Contributor I
401 Views

Hi Intel,
I am currently experimenting with EII ALPR on Win11 WSL2 Ubuntu 20.04,

https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/automated-licens...

I have successfully set up this case on my computer with the operating system Ubuntu 20.04.

I'm experimenting with installing WSL2 Ubuntu 20.04 on Windows 11, and installing EII ALPR, but the following error occurred,

 

ERROR: You need to run with GUI.
Clean up function
Failed to install Automated_License_Plate_Recognition. tuple index out of range

 

As shown below,
222.jpg


I have referenced the previor cases:
https://community.intel.com/t5/Intel-Edge-Software-Hub/ERROR-Failed-to-install-Automated-License-Pla...

https://community.intel.com/t5/Intel-Edge-Software-Hub/Docker-configuration-manager-agent-did-not-fi...

But it still doesn't solve this problem, no matter how many times I reinstall docker, when I issue the following command:

 

sudo ./edgesoftware install

 

After installing an error, I found that when I issued the following command:

 

sudo apt remove docker docker-engine docker.io containerd

 

docker has been deleted, as shown below,
333.jpg

Please help me to solve this bugs, I'm very interested in EII, thanks Intel.

BTW, I once succeeded once after do many debugs (unknown reason), since then, no matter how I rebuild, the above errors will appear.
555.jpg

Labels (1)
0 Kudos
1 Solution
JesusE_Intel
Moderator
316 Views

Hi Jacky,

 

I was able to install Automatic License Plate Recognition on Ubuntu 20.04.5 LTS running on WSL2 (version 1.0.3 using the steps below. Please note these are not official steps and have not been validated to work. We recommend using Ubuntu 20.04 running natively on your system. As I mentioned, I have passed your request to support this software package on WSL2 to the development team. Hope this helps!

 

Enable systemd by creating the following file and rebooting using wsl --shutdown on a separate cmd.

 

sudo vi /etc/wsl.conf

[boot]
systemd=true

 

 

Install updates and pre-requisites and rebooting using wsl --shutdown on a separate cmd.

sudo apt update
sudo apt upgrade
sudo apt install unzip python3-pip x11-apps x11-xserver-utils ca-certificates curl gnupg lsb-release
python3 -m pip install --upgrade pip

 

Install Docker and set user permisions.

sudo mkdir -p /etc/apt/keyrings

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

echo \
 "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
 $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

 

Install Reference Implementation

unzip automated_license_plate_recognition.zip
cd automated_license_plate_recognition/
chmod 755 edgesoftware
./edgesoftware install

 

Regards,

Jesus

 

View solution in original post

6 Replies
JesusE_Intel
Moderator
390 Views

Hi jacky0327,


I have seen this issue when setting up this reference implementation on Ubuntu 20.04 without GUI. I had no issues installing the software package when using a fresh Ubuntu 20.04 system with GUI. That being said, we have not validated this software package on Ubuntu 20 running on Windows Subsystem for Linux.


I recommend using a system running Ubuntu 20.04 natively.


Regards,

Jesus


jacky0327
New Contributor I
362 Views

Hi JesusE_Intel,

We have a requirement: use subsystem Ubuntu 20.04 on Windows.

After we tried for a long time, we succeeded once: using the subsystem Ubuntu 20.04 to install EII ALPR on windows, as mentioned in this case.

But when I then installed public-transit-analytics, after encountering some bugs, I used the following command to delete the docker images.

 

sudo docker system prune --volumes
sudo docker stop $(sudo docker ps -aq)
sudo docker rm $(sudo docker ps -aq)
sudo docker rmi -f $(sudo docker images -aq)

 

https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/public-transit-a...

 

When I deleted all docker images, I reinstalled EII ALPR on a clean docker, and the installation was no longer successful. The problem mentioned in this case has been appearing, I hope this problem can be reproduced and supported.

We have succeeded on Ubuntu 20.04 with gui, so are experimenting how to do it on the windows subsystem (WSL with Ubuntu 20.04).

Thanks for Intel reply.

Regards,
Jacky

JesusE_Intel
Moderator
346 Views

Hi Jacky,


Switching between reference implementations can be tricky and may need to remove the docker images/container prior to installing another RI.

I did a quick test on a fresh Ubuntu 20.04 on Windows 11 WSL 2 and ran into the following error message.


--------Succesfuly installed prerequisites--------

All dependencies met

Unsupported OS. Please check your OS version


The software package needs to run on a system running Ubuntu 20.04 natively. I have passed your feedback to the development team to consider supporting WSL2 in the future. Please let me know if you have any further questions.


Regards,

Jesus


jacky0327
New Contributor I
338 Views

Hi JesusE_Intel,


https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/automated-licens...

It is mentioned later in this RI that it can be combined with another RI,

https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/public-transit-a...

 

I have success in Ubuntu 20.04 with GUI as shown below,
gnome-shell-screenshot-N1W1V1.png


But I only succeeded once when I run this RI on Windows 11 WSL2,

I also encountered this warning,

--------Succesfully installed prerequisites--------
All dependencies met
Unsupported OS. Please check your OS version

 

Install WSL2 at this time will install Ubuntu 22.04 by default. It is very troublesome that you need to refer to some special instructions and steps to completely remove Ubuntu 22.04 in Windows 11 and reinstall Ubuntu 20.04, because OpenVINO currently only supports 20.04.

When Ubuntu 20.04 is correctly installed on WSL2 and run this RI, the bugs raised in this case will be encountered.

 

Thank you for helping to passed my feedback to the development team.

Regards,
Jacky

JesusE_Intel
Moderator
317 Views

Hi Jacky,

 

I was able to install Automatic License Plate Recognition on Ubuntu 20.04.5 LTS running on WSL2 (version 1.0.3 using the steps below. Please note these are not official steps and have not been validated to work. We recommend using Ubuntu 20.04 running natively on your system. As I mentioned, I have passed your request to support this software package on WSL2 to the development team. Hope this helps!

 

Enable systemd by creating the following file and rebooting using wsl --shutdown on a separate cmd.

 

sudo vi /etc/wsl.conf

[boot]
systemd=true

 

 

Install updates and pre-requisites and rebooting using wsl --shutdown on a separate cmd.

sudo apt update
sudo apt upgrade
sudo apt install unzip python3-pip x11-apps x11-xserver-utils ca-certificates curl gnupg lsb-release
python3 -m pip install --upgrade pip

 

Install Docker and set user permisions.

sudo mkdir -p /etc/apt/keyrings

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

echo \
 "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
 $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

 

Install Reference Implementation

unzip automated_license_plate_recognition.zip
cd automated_license_plate_recognition/
chmod 755 edgesoftware
./edgesoftware install

 

Regards,

Jesus

 

JesusE_Intel
Moderator
199 Views

If you need any additional information, please submit a new question as this thread will no longer be monitored.


Reply