Intel® Edge Software Hub
Get answers from community peers to your questions about 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.
401 Discussions

Addition of PyMongo dB related line in requirement.txt is giving error

Snehal_Yesugade
Beginner
1,053 Views

Hi

We have 2 setups, one is with only basic EIS and another has CSL system with server + 2 worker nodes.

For UI development we want to have a local database(MongodB).

On first setup, we could do that, but on CSL machine when we are adding "Flask-PyMongo==2.3.0" in requirement.txt of webvisulaizer it is giving error as attached.

Also attached the requirement.txt.

Request your earliest help.

 

Labels (1)
0 Kudos
1 Solution
WengWai_C_Intel
Moderator
1,004 Views

Yes, that is correct because when the requirements.txt file has been reverted to original without the "Flask-PyMongo==2.3.0" package, it mean there is no chance to the image earlier being built. So, docker will rebuilt the image using docker's cache and you can see it can be built successfully. In another words, if rebuilding the image with new changes that require internet connectivity, the internet connection need to be established for the docker environment. This is why the earlier screenshot is showing no connection to the proxy in the docker environment. Please also ensure the proxy is being set for docker in ~/.docker/config.json file, and then you may need to further verify the network and proxy environment is working fine as well.  Hope this explained to the scenario you are seeing now.

View solution in original post

0 Kudos
4 Replies
WengWai_C_Intel
Moderator
1,036 Views

@Snehal_Yesugade 

From the screenshot you shared, it is showing network connection to IP 10.192.45.148 timeout. This error should not be related to the additional "Flask-PyMongo==2.3.0" added in the requirement.txt file. As you can see, not even the first package "opencv=python==3.4.1.15" can be installed due to the internet network connectivity issue. Therefore, you have to first ensure the internet connectivity is available. If the IP 10.192.45.148 is the proxy server in your network environment, you have to configure the system to use the proxy in order to establish the connection to internet first before proceed further. Hope this info help.

0 Kudos
Snehal_Yesugade
Beginner
1,018 Views

If Flask-PyMongo==2.3.0 line is not there, it gets build without error.

Also 10.192.45.148 is part of proxy , but still giving the same error

0 Kudos
WengWai_C_Intel
Moderator
1,005 Views

Yes, that is correct because when the requirements.txt file has been reverted to original without the "Flask-PyMongo==2.3.0" package, it mean there is no chance to the image earlier being built. So, docker will rebuilt the image using docker's cache and you can see it can be built successfully. In another words, if rebuilding the image with new changes that require internet connectivity, the internet connection need to be established for the docker environment. This is why the earlier screenshot is showing no connection to the proxy in the docker environment. Please also ensure the proxy is being set for docker in ~/.docker/config.json file, and then you may need to further verify the network and proxy environment is working fine as well.  Hope this explained to the scenario you are seeing now.

0 Kudos
JesusE_Intel
Moderator
965 Views

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


0 Kudos
Reply