Netopeer2GUI icon indicating copy to clipboard operation
Netopeer2GUI copied to clipboard

Failed to build image with docker/demo/Dockerfile of v2 branch

Open zhenlusu opened this issue 4 years ago • 4 comments

@Hi, When building the netopeer2gui image with that Dockerfile, I encountered an error, namely there is no setup.py file under build/python/setup.py, there is even no python folder for libnetconf2. python3 /libnetconf2/build/python/setup.py install && cd /

I tried to comment out the above line in Dockerfile, the build was completed successfully. However i was unable to login with root/docker. The container log says 'no module named netconf2' . Obviously the netconf2 lib for python is not installed correctly.

Is there a workaround to get it working?

Thanks!

zhenlusu avatar Jul 07 '21 12:07 zhenlusu

Hello, looks like a problem with the libnetconf2 library, I have to ask my colleague about it tomorrow. In the meantime, you can try changing line 25 in the Dockerfile to pull libnetconf2 from the "legacy" branch: RUN git clone -b legacy https://github.com/CESNET/libnetconf2.git && cd libnetconf2 && \

jakubman1 avatar Jul 07 '21 14:07 jakubman1

Libnetconf2 no longer supports python bindings in the newest version. I will update the Dockerfile later today to use the older version. Thanks for letting me know about this issue.

jakubman1 avatar Jul 08 '21 07:07 jakubman1

Libnetconf2 no longer supports python bindings in the newest version. I will update the Dockerfile later today to use the older version. Thanks for letting me know about this issue.

You are welcome. Actually I tried with legacy branch, but the make step for libnetconf2 was failing. Please take care of this.

zhenlusu avatar Jul 08 '21 08:07 zhenlusu

Fixed the issue, please pull the latest commit, docker image should build successfully now.

jakubman1 avatar Jul 08 '21 13:07 jakubman1