Thomas Leonard | 1 Jan 2009 16:41
Picon
Gravatar

0compile 0.14 ("now less annoying")

0compile 0.14 has been released:

  http://0install.net/0compile.html

The normal way of using 0compile has changed. Before, it selected a
set of versions at setup time and stayed with them unless you ran
setup again. That turned out to be quite annoying (and confusing).

Now, it chooses the best versions each time you build. If the versions
have changed since the last build, it will say what has changed and
abort. You can then use:

--clean for a clean build (slow but safe),

--force to use the new versions without cleaning (fast but unsafe), or

you can copy the previous version (the build-environment.xml file)
somewhere safe and tell it to use those versions (set the "selections"
line in 0compile.properties to its path).

The 0compile-env.xml file has gone, replaced by a much simpler
0compile.properties file (.ini-style). A typical file looks like this:

[compile]
interface = http://rox.sourceforge.net/2005/interfaces/ROX-Filer
metadir = 0install
download-base-url =
version-modifier =
selections =

(Continue reading)

Jonathan E. Brickman | 3 Jan 2009 20:23
Favicon

assert gui_policy.ready -- error found under Mint

Am trying to use Rox under Linux Mint, am getting the following Python traceback
every time I try to install something:

Failed to run 0launch.
WARNING:root:Failed to load feed
/usr/lib/python2.5/site-packages/zeroinstall/0launch-gui/ZeroInstall-GUI.xml for
<Interface http://0install.net/2008/interfaces/ZeroInstall-GUI.xml>: [Errno 13]
Permission denied: '/home/jeb/.cache/0install.net/injector'
Traceback (most recent call last):
  File "/usr/bin/0launch", line 4, in <module>
    cli.main(sys.argv[1:])
  File "/usr/lib/python2.5/site-packages/zeroinstall/injector/cli.py", line 346,
in main
    _normal_mode(options, args)
  File "/usr/lib/python2.5/site-packages/zeroinstall/injector/cli.py", line 228,
in _normal_mode
    sels = _fork_gui(iface_uri, gui_args, prog_args, options)
  File "/usr/lib/python2.5/site-packages/zeroinstall/injector/cli.py", line 254,
in _fork_gui
    return helpers.get_selections_gui(iface_uri, gui_args, test_callback)
  File "/usr/lib/python2.5/site-packages/zeroinstall/helpers.py", line 35, in
get_selections_gui
    gui_sel = get_selections_gui(namespaces.injector_gui_uri, ['--refresh'])
  File "/usr/lib/python2.5/site-packages/zeroinstall/helpers.py", line 44, in
get_selections_gui
    assert gui_policy.ready		# Should always be some version available
AssertionError

Thoughts?

(Continue reading)

Thomas Leonard | 3 Jan 2009 21:42
Picon
Gravatar

Re: assert gui_policy.ready -- error found under Mint

2009/1/3 Jonathan E. Brickman <jeb <at> joshuacorps.org>:
> Am trying to use Rox under Linux Mint, am getting the following Python traceback
> every time I try to install something:
>
> Failed to run 0launch.
> WARNING:root:Failed to load feed
> /usr/lib/python2.5/site-packages/zeroinstall/0launch-gui/ZeroInstall-GUI.xml for
> <Interface http://0install.net/2008/interfaces/ZeroInstall-GUI.xml>: [Errno 13]
> Permission denied: '/home/jeb/.cache/0install.net/injector'

What is the owner and permissions on that? To find out:

$ ls -l /home/jeb/.cache/0install.net/injector

It should be owned by you (not root, for example).

--

-- 
Dr Thomas Leonard		ROX desktop / Zero Install
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1

------------------------------------------------------------------------------
Thomas Leonard | 3 Jan 2009 21:43
Picon
Gravatar

Re: assert gui_policy.ready -- error found under Mint

2009/1/3 Thomas Leonard <talex5 <at> gmail.com>:
> 2009/1/3 Jonathan E. Brickman <jeb <at> joshuacorps.org>:
>> Am trying to use Rox under Linux Mint, am getting the following Python traceback
>> every time I try to install something:
>>
>> Failed to run 0launch.
>> WARNING:root:Failed to load feed
>> /usr/lib/python2.5/site-packages/zeroinstall/0launch-gui/ZeroInstall-GUI.xml for
>> <Interface http://0install.net/2008/interfaces/ZeroInstall-GUI.xml>: [Errno 13]
>> Permission denied: '/home/jeb/.cache/0install.net/injector'
>
> What is the owner and permissions on that? To find out:
>
> $ ls -l /home/jeb/.cache/0install.net/injector

Ooops. I meant (with -d):

$ ls -ld /home/jeb/.cache/0install.net/injector

--

-- 
Dr Thomas Leonard		ROX desktop / Zero Install
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1

------------------------------------------------------------------------------
Jonathan E. Brickman | 3 Jan 2009 23:58
Favicon

Re: assert gui_policy.ready -- error found under Mint

Thanks, Thomas.  It was set to 'root', because this being Mint, I tried to run it all using gksudo.  Does ROX work with sudo?  I fixed the permissions (all of them, there were several), and now when I try to install ROX-Session it asks for my root password...which does not exist :-)  Do I just need to temporarily create a root user?

J.E.B.

Am trying to use Rox under Linux Mint, am getting the following Python traceback every time I try to install something: Failed to run 0launch. WARNING:root:Failed to load feed /usr/lib/python2.5/site-packages/zeroinstall/0launch-gui/ZeroInstall-GUI.xml for <Interface http://0install.net/2008/interfaces/ZeroInstall-GUI.xml>: [Errno 13] Permission denied: '/home/jeb/.cache/0install.net/injector'
What is the owner and permissions on that? To find out: $ ls -l /home/jeb/.cache/0install.net/injector
Ooops. I meant (with -d): $ ls -ld /home/jeb/.cache/0install.net/injector

------------------------------------------------------------------------------
_______________________________________________
Zero-install-devel mailing list
Zero-install-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zero-install-devel
Thomas Leonard | 4 Jan 2009 13:55
Picon
Gravatar

Re: assert gui_policy.ready -- error found under Mint

2009/1/3 Jonathan E. Brickman <jeb <at> joshuacorps.org>:
> Thanks, Thomas.  It was set to 'root', because this being Mint, I tried to
> run it all using gksudo.  Does ROX work with sudo?

Hi Jonathan,

Generally you should run everything as a normal user, and it will
prompt you if it needs root access.

Probably we should add some kind of warning to 0launch in case people
try to run it as root but with $HOME set to a normal user's home
directory.

> I fixed the permissions
> (all of them, there were several), and now when I try to install ROX-Session
> it asks for my root password...which does not exist :-)  Do I just need to
> temporarily create a root user?

Try this to set the root password:

$ sudo passwd root

ROX-Session should really be updated to use sudo.

HTH,

--

-- 
Dr Thomas Leonard		ROX desktop / Zero Install
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1

------------------------------------------------------------------------------
Jonathan E. Brickman | 4 Jan 2009 15:47
Favicon

Re: assert gui_policy.ready -- error found under Mint

Did it, Thomas -- and wow.  Thanks much.  Do you know if there is a ROX-specific list out there somewhere?

J.E.B.

Thanks, Thomas. It was set to 'root', because this being Mint, I tried to run it all using gksudo. Does ROX work with sudo?
Hi Jonathan, Generally you should run everything as a normal user, and it will prompt you if it needs root access. Probably we should add some kind of warning to 0launch in case people try to run it as root but with $HOME set to a normal user's home directory.
I fixed the permissions (all of them, there were several), and now when I try to install ROX-Session it asks for my root password...which does not exist :-) Do I just need to temporarily create a root user?
Try this to set the root password: $ sudo passwd root ROX-Session should really be updated to use sudo. HTH,

------------------------------------------------------------------------------
_______________________________________________
Zero-install-devel mailing list
Zero-install-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zero-install-devel
Thomas Leonard | 4 Jan 2009 16:14
Picon
Gravatar

Re: assert gui_policy.ready -- error found under Mint

2009/1/4 Jonathan E. Brickman <jeb <at> joshuacorps.org>:
> Did it, Thomas -- and wow.  Thanks much.  Do you know if there is a
> ROX-specific list out there somewhere?

http://roscidus.com/desktop/lists

[...]
>> Probably we should add some kind of warning to 0launch in case people
>> try to run it as root but with $HOME set to a normal user's home
>> directory.

I've changed 0launch so that if it is run as root, but $HOME isn't
owned by root, then it gets root's home directory from /etc/passwd and
uses that for the configuration, cache and gpg stuff:

http://repo.or.cz/w/zeroinstall.git?a=commit;h=8fcff7446ffe8d26d87a166039088c7db060f17c

That means you can still use "sudo 0launch" if you really do want to
run a program as root.

--

-- 
Dr Thomas Leonard		ROX desktop / Zero Install
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1

------------------------------------------------------------------------------
Jonathan E. Brickman | 4 Jan 2009 16:22
Favicon

Re: assert gui_policy.ready -- error found under Mint

Quick work :-)  Thanks!  Query:  Does zi work with both Python 2.4 and 2.5?

J.E.B.

Did it, Thomas -- and wow. Thanks much. Do you know if there is a ROX-specific list out there somewhere?
http://roscidus.com/desktop/lists [...]
Probably we should add some kind of warning to 0launch in case people try to run it as root but with $HOME set to a normal user's home directory.
I've changed 0launch so that if it is run as root, but $HOME isn't owned by root, then it gets root's home directory from /etc/passwd and uses that for the configuration, cache and gpg stuff: http://repo.or.cz/w/zeroinstall.git?a=commit;h=8fcff7446ffe8d26d87a166039088c7db060f17c That means you can still use "sudo 0launch" if you really do want to run a program as root.

------------------------------------------------------------------------------
_______________________________________________
Zero-install-devel mailing list
Zero-install-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zero-install-devel
Thomas Leonard | 4 Jan 2009 19:24
Picon
Gravatar

Re: assert gui_policy.ready -- error found under Mint

2009/1/4 Jonathan E. Brickman <jeb <at> joshuacorps.org>:
> Quick work :-)  Thanks!  Query:  Does zi work with both Python 2.4 and 2.5?

Yes.

--

-- 
Dr Thomas Leonard		ROX desktop / Zero Install
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1

------------------------------------------------------------------------------

Gmane