Re: can't run 0compile on windows .
"Bastian Eicher" <[email protected]> Fri, 30 Nov 2018 22:25:03 +0100
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi guys, the C# solver always tries to find a 64-bit solution first when running on a 64-bit system and only considers 32-bit solutions if that fails. http://repo.roscidus.com/python/python-gobject only has an i486 build for Windows. Therefore it cannot be part of a valid 64-bit selection. http://0install.net/2007/interfaces/ZeroInstall.xml still lists some versions without a dependency on python-gobject, e.g. 1.14. Therefore the solver will prefer to use this old version of Zero Install rather than falling back to i486 for the entire selection and thus end up still providing a solution leading to "No module named gobject". Since the C# solver uses simple backtracking rather than a SAT solver, it takes quite some time to find this solution. The following works on Windows and only takes a few moments: > 0install run --cpu=i486 http://0install.net/2006/interfaces/0compile.xml @Thomas: If you could add the python-gobject dependency to the remaining implementations in the ZeroInstall feed I believe it would prevent this issue. However, the solver would probably still take a long time until it realizes it has to down 32-bit lane. In order to speed up the process I suppose we should also add the python-gobject dependency directly to the 0compile feed. Further down the road, I have some optimizations for the C# solver planned, as time permits. Regards Bastian -----Original Message----- From: Miess, Philip (TR Tech, Content & Ops) <[email protected]> Sent: Freitag, 30. November 2018 19:55 To: The Zero Install system <[email protected]> Subject: Re: [Zero-install-devel] can't run 0compile on windows . Thomas It is falling back to the ocaml solver according the the -vv logging Specifying the version selects quite a bit faster ptime 0install select http://0install.net/2006/interfaces/0compile.xml --os=Windows --version-for http://0install.net/2006/interfaces/0compile.xml 1.4 ptime 1.0 for Win32, Freeware - http://www.pc-tools.net/ Copyright(C) 2002, Jem Berkes <[email protected]> === 0install select http://0install.net/2006/interfaces/0compile.xml --os=Windows --version-for http://0install.net/2006/interfaces/0compile.xml 1.4 === - URI: http://0install.net/2006/interfaces/0compile.xml Version: 1.4 Path: C:\ProgramData\0install.net\implementations\sha256new_DRI2B34BA24I5WP4NJCHZ6 F2RU6ZDGRULN4WEUZNLYX6RW6BAN2A - URI: http://0install.net/2006/interfaces/0publish Version: 0.25 Path: C:\ProgramData\0install.net\implementations\sha256new_AK4BBYGWE3AIITVH3POX2B MQLK4BLDE2ZUOAFAGC5NBRHSZ2MKMA - URI: http:// repo.roscidus.com/security/gnupg Version: 1.4.22 Path: C:\ProgramData\0install.net\implementations\sha256new_25VZHECYKPTOHKWZVR6Q6Z FW2F362QKJYXGELIWY5VKTY7QQWOKQ - URI: http://0install.net/2007/interfaces/ZeroInstall.xml Version: 2.3.5 Path: C:\ProgramData\0install.net\implementations\sha256new_WJTXRQOJFWFYBVFWITHSXE PGWXBX5YTSQXVT5DUT7RMUTIH6ETYQ - URI: http://repo.roscidus.com/python/python-gobject Version: 2.28.3 Path: C:\ProgramData\0install.net\implementations\sha256new_GTWVISPUFHUCTTJGWC5PW2 NYRWGSVES4HBRZ5O3H4K22S4UT5X4Q - URI: http://repo.roscidus.com/lib/glib Version: 2.24.10 Path: C:\ProgramData\0install.net\implementations\sha256new_V36BMVEDEIGK2IR5KESEYL QUQZ3SKXWUIEDJTBWO252O56RGUOVA - URI: http://0install.net/2012/interfaces/0install-runenv-cli.xml Version: 2.0.2 Path: C:\ProgramData\0install.net\implementations\sha256new_XMEYQHKYT7CNDYAWDQHGDI DJK2QORBV5KRFQX6BQ7RNXTANR6PGQ - URI: http://repo.roscidus.com/python/python Version: 2.7.15 Path: C:\ProgramData\0install.net\implementations\sha256new_P3LD6BDLOWLCKSEHYQJABS 454FN6GKJC455VK6HYMVT5IBOMJDXA - URI: http://repo.roscidus.com/python/python-win32 Version: 220 Path: C:\ProgramData\0install.net\implementations\sha256new_CCWSRVUMZLIYN2ZTLIBLH3 D7DNMATOHTSYQG7MCRTANIZ7PGA7YA - URI: http://repo.roscidus.com/utils/bash Version: 0.6 Path: C:\ProgramData\0install.net\implementations\sha1new=624fe11b4b9f88c1087ed915 e2c66b07edaf62dd Execution time: 44.652 s It takes 137 seconds without the version Even with the version though it still fails the same way 0install run http://0install.net/2006/interfaces/0compile.xml --version-for http://0install.net/2006/interfaces/0compile.xml 1.4 Traceback (most recent call last): File "C:\ProgramData\0install.net\implementations\sha256new_JVBP6RCR3JVWBOBYLB7HO YFDV2FXGMUPDW4GCMZY7U2KHVUFFWYA\0compile", line 11, in <module> import gobject; gobject.threads_init() ImportError: No module named gobject Phil _______________________________________________ Zero-install-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/zero-install-devel