Hi, I'm having problems installing klive. `Error 0...
# ieee-sscs-dc-24
a
Hi, I'm having problems installing klive.
Error 0: Request creation failed, fetching <http://sami.klayout.org/repository.xml>
The file is online and I'm running klayout on a docker container. Does anyone has this error and solve it?
s
can you run
klayout
from the terminal, and show me the output of the terminal after trying to install klive
a
This command downloads the package without the gui. Also, I'm adding the debug flag
Copy code
KLAYOUT_HOME=home/designer/.klayout $TOOLS/klayout/v0.29.1/klayout -t -ne -rr -b -y klive -d 99
This is the output:
Copy code
...
Creating class klayout.dbcore.Texts
Scanning home/designer/.klayout/salt for packages
Scanning /opt/klayout/v0.29.1/salt for packages
Downloading package repository from <http://sami.klayout.org/repository.xml>
HTTP request URL: <http://sami.klayout.org/repository.xml>
HTTP request: GET
HTTP request creation failed
ERROR: Error 0: Request creation failed, fetching <http://sami.klayout.org/repository.xml>
s
can you try
wget <http://sami.klayout.org/repository.xml>
send the output of that command
maybe it will give more detailed error information
a
Copy code
$ wget <http://sami.klayout.org/repository.xml>
--2024-06-17 20:58:43--  <http://sami.klayout.org/repository.xml>
Resolving <http://sami.klayout.org|sami.klayout.org> (<http://sami.klayout.org|sami.klayout.org>)... 178.77.102.107
Connecting to <http://sami.klayout.org|sami.klayout.org> (<http://sami.klayout.org|sami.klayout.org>)|178.77.102.107|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/xml]
Saving to: 'repository.xml'

repository.xml                         [                                         <=>                     ]   2.48M  99.8KB/s    in 40s     

2024-06-17 20:59:23 (63.2 KB/s) - 'repository.xml' saved [2601379]
It seems not to be a connection problem
s
hmmmm….very weird
a
It seems to be a problem with klayout/qt dependencies, I'm not sure about it
s
what OS is this?
a
Ubuntu 24.04
s
is this within Docker?
a
It's a docker container based on Ubuntu 24.04. It uses mostly the same files of
iic-osic-tools
for klayout installation. I fix a lot of runtime dependency problems that prevents Klayout to open, so I don't think those are the issue.
s
So it isn’t the Dockerfile that we provided?
If it isn’t I really won’t be able to help you. I suggest maybe uninstall and rebuild klayout with the commands:
Copy code
wget <https://www.klayout.org/downloads/Ubuntu-22/klayout_0.28.17-1_amd64.deb>
sudo apt-get install ./klayout_0.28.17-1_amd64.deb
a
This image is based on
iic-osic-tools
multi-stage structure to reduce the size of the image (it uses 4GB) and avoid almost all of the configuration. I've found that the image has missing dependencies, after fixing them the error change to something that might be more likely to happen.
Copy code
Scanning home/designer/.klayout/salt for packages
Scanning /opt/klayout/v0.29.1/salt for packages
Downloading package repository from <http://sami.klayout.org/repository.xml>
HTTP request URL: <http://sami.klayout.org/repository.xml>
HTTP request: GET
HTTP response header: Date: Mon, 17 Jun 2024 19:10:49 GMT
HTTP response header: Server: Apache
HTTP response header: Content-Length: 728
HTTP response header: Connection: close
HTTP response header: Content-Type: text/html; charset=iso-8859-1
HTTP response error: Internal Server Error
ERROR: Error 500: Internal Server Error, fetching <http://sami.klayout.org/repository.xml>

Reply body:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at 
 [no address given] to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>Apache Server at <http://sami.klayout.org|sami.klayout.org> Port 80</address>
</body></html>
I've tried to use klayout shared binaries but none was for ubuntu 24.04