Preparing an 0.8 release

64 views
Skip to first unread message

Dave Abrahams

unread,
May 23, 2012, 5:00:42 PM5/23/12
to rypp...@googlegroups.com
Hi Everybody,

Things have been quiet on this list for a few weeks, but now it's time
to show our hand.

We can now build Boost's QuickBook tool (an executable) on Posix and
Windows. This is a pretty good test case because it depends on a
great many Boost libraries, both header-only and compiled, and it
builds an executable so you get to see something run.

How it works:

1. you invoke the "ryppl develop" command with the URLs of one or more
enhanced 0install "feed files" (in this case, the feed describing
quickbook) and a directory in which to create a project workspace.

2. Ryppl uses 0install to "solve" for compatible versions of all the
components involved, including all recursive dependencies (of
QuickBook in this case)

3. Ryppl creates a local git repository in the workspace's src/ subdirectory

4. Ryppl adds as git submodules each component for which it has a
source repository reference, checked out at a version determined in
step 2 (in parallel!)

5. Ryppl creates a build/ subdirectory in the workspace

6. Ryppl prompts the user for a build system (back-end) to use

7. Ryppl invokes CMake to generate the build system files

8. You go into the workspace's build/ subdirectory and fire up the
build system, e.g. make, or open the IDE project

Here's what it looks like on my Mac:

$ ryppl develop
https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml
/tmp/qb
Fetching stale/missing 0install feeds
[latest.xm] [latest.xm] [latest.xm] [latest.xm] [latest.xm]
[latest.xm] [latest.xm] [latest.xm] [l
Creating src/ directory...
Fetching components:
Boost.Bind (source code)
Boost.Algorithm (source code)
Boost.MPL (source code)
Boost.SmartPtr (source code)
Boost.Format (source code)
Boost.TR1 (source code)
Boost.Optional (source code)
Boost.Tokenizer (source code)
Boost.Regex (source code)
Quickbook (source code)
Boost.Exception (source code)
Boost.Proto (source code)
Boost.Function (source code)
Boost.Container (source code)
Boost.Lambda (source code)
Boost.Unordered (source code)
Boost.Units (source code)
Boost.Tuple (source code)
Boost.Array (source code)
Boost.Fusion (source code)
Boost.Move (source code)
Boost.NumericConversion (source code)
Boost.Typeof (source code)
Boost.Range (source code)
Boost.Any (source code)
Boost.Math (source code)
Boost.Utility (source code)
Boost.Iterator (source code)
Boost.Spirit (source code)
Boost.SpiritClassic (source code)
Boost.FunctionalHash (source code)
Boost.Variant (source code)
ryppl
Boost.Conversion (source code)
Boost.FunctionTypes (source code)
Boost.ConceptCheck (source code)
Boost.TypeTraits (source code)
Boost.ProgramOptions (source code)
Boost.Preprocessor (source code)
Boost.System (source code)
Boost.Pool (source code)
Boost.IOStreams (source code)
Boost.Core (source code)
Boost.Integer (source code)
Boost.Intrusive (source code)
Boost.Filesystem (source code)
Boost.Parameter (source code)
Boost.StaticAssert (source code)
Boost.UBLAS (source code)
Boost.Config (source code)
Boost.Phoenix (source code)
Boost.IO (source code)
Boost.Foreach (source code)

Waiting for submodules...
config: done.
io: done.
foreach: done.
phoenix: done.
spirit: done.
ublas: done.
math: done.
done.
Please select a build system:
[0] Unix Makefiles
[1] Xcode
[2] CodeBlocks - Unix Makefiles
[3] Eclipse CDT4 - Unix Makefiles
[4] KDevelop3
[5] KDevelop3 - Unix Makefiles
Build system [0-5]:1
-- Found BZip2: /usr/lib/libbz2.dylib (found version "1.0.6")
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/qb/build

Now I fire up /tmp/qb/build/Project.xcodeproj and I have an IDE
project that builds Quickbook.

This process actually gets you everything you need to run tests, build
examples, and build documentation (i.e. "develop") for the feeds
you've requested on the command-line. However, we haven't ported QB's
tests to CMake yet, so you won't see that with this particular feed.

I'd appreciate it if people could try this out on their own machines.
I don't expect a 0.8 release to be slick and easy to use, but I'd like
to know just how rough the edges are before it goes out the door, and
I have enough already set up in my configuration that I'm sure to miss
some steps. Also, rather than dump all the things you *might* have to
do to get this working, I'd like to publish a set of minimal steps.
So, yes, I'm asking you to please be my patient guinea-pig and fail a
few times before we get it right. The instructions are here:
https://github.com/ryppl/ryppl/wiki/Setting-up-a-Ryppl-test

Thanks for your support!

--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Rhys Ulerich

unread,
May 23, 2012, 5:03:02 PM5/23/12
to rypp...@googlegroups.com
> So, yes, I'm asking you to please be my patient guinea-pig and fail a
> few times before we get it right.  The instructions are here:
> https://github.com/ryppl/ryppl/wiki/Setting-up-a-Ryppl-test

Say it ain't so: "You'll usually need root or Administrator permissions."

- Rhys

Dave Abrahams

unread,
May 23, 2012, 5:10:32 PM5/23/12
to rypp...@googlegroups.com
Hi Rhys,

This is a temporary condition. If it turns out to be a major obstacle
to people testing the developer preview, I can work to get it removed.
However, I figured most devs probably have control over their own
machines.

Rhys Ulerich

unread,
May 23, 2012, 5:20:16 PM5/23/12
to rypp...@googlegroups.com
>> Say it ain't so:  "You'll usually need root or Administrator permissions."

> This is a temporary condition.  If it turns out to be a major obstacle
> to people testing the developer preview, I can work to get it removed.

No need so long as it's temporary. I'll just test the developer
preview from home.

- Rhys

Sebastian Redl

unread,
May 24, 2012, 4:29:07 AM5/24/12
to rypp...@googlegroups.com
On 23.05.2012 23:00, Dave Abrahams wrote:
> Hi Everybody,
>
> Things have been quiet on this list for a few weeks, but now it's time
> to show our hand.
>
> We can now build Boost's QuickBook tool (an executable) on Posix and
> Windows.
Apparently only Win32, as PyGTK doesn't support a 64-bit Python. (Of
course you can install a 32-bit Python on a 64-bit Windows.)

Sebastian

Sebastian Redl

unread,
May 24, 2012, 4:56:57 AM5/24/12
to rypp...@googlegroups.com
On 23.05.2012 23:00, Dave Abrahams wrote:
I'd appreciate it if people could try this out on their own machines.
I don't expect a 0.8 release to be slick and easy to use, but I'd like
to know just how rough the edges are before it goes out the door, and
I have enough already set up in my configuration that I'm sure to miss
some steps.  Also, rather than dump all the things you *might* have to
do to get this working, I'd like to publish a set of minimal steps.
So, yes, I'm asking you to please be my patient guinea-pig and fail a
few times before we get it right.  The instructions are here:
https://github.com/ryppl/ryppl/wiki/Setting-up-a-Ryppl-test

Lots and lots of problems.

Clone/checkout the "develop" branch of https://github.com/ryppl/ryppl. Go into its root directory and invoke python setup.py develop.

C:\Users\sredl\Documents\Dev\ryppl>python setup.py develop
running develop
running egg_info
writing ryppl.egg-info\PKG-INFO
writing top-level names to ryppl.egg-info\top_level.txt
writing dependency_links to ryppl.egg-info\dependency_links.txt
writing entry points to ryppl.egg-info\entry_points.txt
reading manifest file 'ryppl.egg-info\SOURCES.txt'
writing manifest file 'ryppl.egg-info\SOURCES.txt'
running build_ext
Creating c:\program files (x86)\python\lib\site-packages\ryppl.egg-link (link to .)
Adding ryppl 0.8-pre to easy-install.pth file
Installing ryppl-script.py script to C:\Program Files (x86)\Python\Scripts
Installing ryppl.exe script to C:\Program Files (x86)\Python\Scripts
Installing ryppl.exe.manifest script to C:\Program Files (x86)\Python\Scripts
error: C:\Users\sredl\Documents\Dev\ryppl\bin\ryppl: No such file or directory

At this point ryppl --help should work.

C:\Users\sredl\Documents\Dev\ryppl>ryppl --help
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python\Scripts\ryppl-script.py", line 8, in <module>
    load_entry_point('ryppl==0.8-pre', 'console_scripts', 'ryppl')()
...
  File "c:\users\sredl\documents\dev\ryppl\ryppl\support\_zeroinstall\launch.py", line 4, in <module>
    from zeroinstall.injector import cli
ImportError: No module named zeroinstall.injector

By hook or by crook, make sure you have PyGTK installed in the Python you're using

PyGTK doesn't support 64-bit Python on Windows. You should warn about that in step 1, because I installed 64-bit Python first and had to start over.

Now, ryppl develop https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml /path/to/non-existent/workspace/directory

C:\Users\sredl\Documents\Dev>ryppl develop https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml ryppl-workspace
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python\Scripts\ryppl-script.py", line 8, in <module>
    load_entry_point('ryppl==0.8-pre', 'console_scripts', 'ryppl')()
...
  File "c:\users\sredl\documents\dev\zeroinstall\zeroinstall\support\basedir.py", line 42, in <module>
    from win32com.shell import shell, shellcon
ImportError: No module named win32com.shell

So I have to explicitly install PyWin32 (I didn't get Python via ActiveState). Makes sense, but should be mentioned. Then:

C:\Users\sredl\Documents\Dev>ryppl develop https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml ryppl-workspace
Fetching stale/missing 0install feeds
[https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml]
WARNING:root:Feed download from https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml failed: Error downloading https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml: <urlopen error [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
[hub.com/ryppl%23feeds%23gh-pages%23boost%23quickbook-src.xml/latest.xml]
WARNING:root:Error downloading https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml: <urlopen error [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python\Scripts\ryppl-script.py", line 8, in <module>
    load_entry_point('ryppl==0.8-pre', 'console_scripts', 'ryppl')()
  File "c:\users\sredl\documents\dev\ryppl\ryppl\main.py", line 39, in run
    args.runner(args)
  File "c:\users\sredl\documents\dev\ryppl\ryppl\commands\develop.py", line 242, in run
    selections = solve(args, config)
  File "c:\users\sredl\documents\dev\ryppl\ryppl\commands\develop.py", line 70, in solve
    raise driver.solver.get_failure_reason()
zeroinstall.SafeException: Interface 'https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml' has no usable implementations

Trying to install 0install for Windows as recommended. Doesn't change anything, though. Giving up for now.

Sebastian

Beman Dawes

unread,
May 24, 2012, 9:12:16 AM5/24/12
to rypp...@googlegroups.com
On Wed, May 23, 2012 at 5:00 PM, Dave Abrahams <da...@boostpro.com> wrote:

>..
> I'd appreciate it if people could try this out on their own machines.

Installed python via windows installer downloaded from python.org.
python setup.py develop failed because of lack of setuptools.
Installed setuptools via windows installer downloaded from python.org

python setup.py develop got much further, by failed because of what
looks like directory confusion. See directory listings below.

Awaiting further instructions:-)

Thanks,

--Beman

C:\ryppl>python setup.py develop
running develop
running egg_info
creating ryppl.egg-info
writing ryppl.egg-info\PKG-INFO
writing top-level names to ryppl.egg-info\top_level.txt
writing dependency_links to ryppl.egg-info\dependency_links.txt
writing entry points to ryppl.egg-info\entry_points.txt
writing manifest file 'ryppl.egg-info\SOURCES.txt'
reading manifest file 'ryppl.egg-info\SOURCES.txt'
writing manifest file 'ryppl.egg-info\SOURCES.txt'
running build_ext
Creating c:\python27\lib\site-packages\ryppl.egg-link (link to .)
Adding ryppl 0.8-pre to easy-install.pth file
Installing ryppl-script.py script to C:\Python27\Scripts
Installing ryppl.exe script to C:\Python27\Scripts
Installing ryppl.exe.manifest script to C:\Python27\Scripts
error: C:\ryppl\bin\ryppl: No such file or directory

C:\ryppl>dir
Volume in drive C is OS
Volume Serial Number is DC04-E93E

Directory of C:\ryppl

05/24/2012 08:48 AM <DIR> .
05/24/2012 08:48 AM <DIR> ..
05/24/2012 07:09 AM 106 .gitignore
05/24/2012 07:09 AM <DIR> cmake
05/24/2012 07:09 AM 895 README.rst
05/24/2012 08:48 AM <DIR> ryppl
05/24/2012 08:48 AM <DIR> ryppl.egg-info
05/24/2012 07:09 AM 1,936 ryppl.xml
05/24/2012 07:09 AM <DIR> scripts
05/24/2012 07:09 AM 868 setup.py
4 File(s) 3,805 bytes
6 Dir(s) 63,033,036,800 bytes free

C:\ryppl>dir \python27\scripts
Volume in drive C is OS
Volume Serial Number is DC04-E93E

Directory of C:\python27\scripts

05/24/2012 08:48 AM <DIR> .
05/24/2012 08:48 AM <DIR> ..
07/07/2010 04:28 PM 286 easy_install-2.7-script.py
05/24/2012 08:47 AM 355 easy_install-2.7-script.pyc
05/24/2012 08:47 AM 355 easy_install-2.7-script.pyo
07/07/2010 04:28 PM 7,168 easy_install-2.7.exe
07/07/2010 04:28 PM 515 easy_install-2.7.exe.manifest
07/07/2010 04:28 PM 278 easy_install-script.py
05/24/2012 08:47 AM 347 easy_install-script.pyc
05/24/2012 08:47 AM 347 easy_install-script.pyo
07/07/2010 04:28 PM 7,168 easy_install.exe
07/07/2010 04:28 PM 511 easy_install.exe.manifest
05/24/2012 08:48 AM 273 ryppl-script.py
05/24/2012 08:48 AM 7,168 ryppl.exe
05/24/2012 08:48 AM 520 ryppl.exe.manifest
13 File(s) 25,291 bytes
2 Dir(s) 63,033,036,800 bytes free

Dave Abrahams

unread,
May 24, 2012, 6:25:12 PM5/24/12
to rypp...@googlegroups.com
Hi Sebastian,

On Thu, May 24, 2012 at 4:56 AM, Sebastian Redl
<sebasti...@getdesigned.at> wrote:

> Lots and lots of problems.

Thanks for being the intrepid first tester.

> At this point ryppl --help should work.
>
> C:\Users\sredl\Documents\Dev\ryppl>ryppl --help
> Traceback (most recent call last):
>   File "C:\Program Files (x86)\Python\Scripts\ryppl-script.py", line 8, in
> <module>
>     load_entry_point('ryppl==0.8-pre', 'console_scripts', 'ryppl')()
> ...
>   File
> "c:\users\sredl\documents\dev\ryppl\ryppl\support\_zeroinstall\launch.py",
> line 4, in <module>
>     from zeroinstall.injector import cli
> ImportError: No module named zeroinstall.injector

For this, it turns out, you needed
http://github.com/dabrahams/zeroinstall. I re-ordered the steps.

> By hook or by crook, make sure you have PyGTK installed in the Python you're
> using
>
> PyGTK doesn't support 64-bit Python on Windows. You should warn about that
> in step 1, because I installed 64-bit Python first and had to start over.

Good point, fixed. Sorry for the inconvenience.

> Now, ryppl develop
> https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml
> /path/to/non-existent/workspace/directory
>
> C:\Users\sredl\Documents\Dev>ryppl develop
> https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml
> ryppl-workspace
> Traceback (most recent call last):
>   File "C:\Program Files (x86)\Python\Scripts\ryppl-script.py", line 8, in
> <module>
>     load_entry_point('ryppl==0.8-pre', 'console_scripts', 'ryppl')()
> ...
>   File
> "c:\users\sredl\documents\dev\zeroinstall\zeroinstall\support\basedir.py",
> line 42, in <module>
>     from win32com.shell import shell, shellcon
> ImportError: No module named win32com.shell
>
> So I have to explicitly install PyWin32 (I didn't get Python via
> ActiveState). Makes sense, but should be mentioned.

Yeah, looks like it. Fixed.
Ah, you're nearly there! You just need http://pypi.python.org/pypi/certifi
I've updated the instructions to reflect that part too.

Dave Abrahams

unread,
May 24, 2012, 6:37:11 PM5/24/12
to rypp...@googlegroups.com
Thanks for trying this, Beman! I think this was just a stray line in
my setup.py script, for which I've checked in a fix. But please also
check out my reply to Sebastian or my recent changes in
https://github.com/ryppl/ryppl/wiki/Setting-up-a-Ryppl-test/_history
for other important details.

Fabio Fracassi

unread,
May 24, 2012, 9:26:31 PM5/24/12
to rypp...@googlegroups.com
Hi Dave,

just tried it here on my Mac (Lion).
I followed this guide https://github.com/ryppl/ryppl/wiki/Setting-up-a-Ryppl-test
This worked up to point 8 except for a few glitches ...
1) Point 8 (install PyGTK) should come before point 6, because the installation of zeroinstall seems to require it.
2) I wasn't sure if I was supposed to use the t/windows_port branch, but it seems to be the only one working ...
3) the 'master' branch works? if one uses python setup.py install, but spews some errors.

anyway, after doing all this ryppl --help works!
now to the problems:
ryppl develop https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml workspace/quickbook

exits with the following output:WARNING:root:[Errno 2] No such file or directory

Traceback (most recent call last):
  File "/usr/local/bin/ryppl", line 8, in <module>

    load_entry_point('ryppl==0.8-pre', 'console_scripts', 'ryppl')()
  File "/Users/fabio/Development/Staging/ryppl/ryppl/ryppl/main.py", line 39, in run
    args.runner(args)
  File "/Users/fabio/Development/Staging/ryppl/ryppl/ryppl/commands/develop.py", line 242, in run
    selections = solve(args, config)
  File "/Users/fabio/Development/Staging/ryppl/ryppl/ryppl/commands/develop.py", line 70, in solve

    raise driver.solver.get_failure_reason()
zeroinstall.SafeException: Interface 'https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml' has no usable implementations

regards

Fabio

Dave Abrahams

unread,
May 24, 2012, 9:39:54 PM5/24/12
to rypp...@googlegroups.com
On Thu, May 24, 2012 at 9:26 PM, Fabio Fracassi <f.fra...@gmx.net> wrote:
> Hi Dave,
>
> just tried it here on my Mac (Lion).
> I followed this guide
> https://github.com/ryppl/ryppl/wiki/Setting-up-a-Ryppl-test
> This worked up to point 8 except for a few glitches ...
> 1) Point 8 (install PyGTK) should come before point 6, because the
> installation of zeroinstall seems to require it.

Thanks, fixed.

> 2) I wasn't sure if I was supposed to use the t/windows_port branch, but it
> seems to be the only one working ...
> 3) the 'master' branch works? if one uses python setup.py install, but spews
> some errors.

master should work on all POSIX platforms (I'm using it currently on my Mac).

> anyway, after doing all this ryppl --help works!

That's a start anyway :-)

> now to the problems:
> ryppl develop
> https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml
> workspace/quickbook
>
> exits with the following output:

> etching stale/missing 0install feeds
> [https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml]
> WARNING:root:[Errno 2] No such file or directory


Hmm… does the workspace/ directory exist (and is it a directory?)
Otherwise, I would expect this to fail.

> Traceback (most recent call last):
>   File "/usr/local/bin/ryppl", line 8, in <module>
>
>     load_entry_point('ryppl==0.8-pre', 'console_scripts', 'ryppl')()
>   File "/Users/fabio/Development/Staging/ryppl/ryppl/ryppl/main.py", line
> 39, in run
>     args.runner(args)
>   File
> "/Users/fabio/Development/Staging/ryppl/ryppl/ryppl/commands/develop.py",
> line 242, in run
>     selections = solve(args, config)
>   File
> "/Users/fabio/Development/Staging/ryppl/ryppl/ryppl/commands/develop.py",
> line 70, in solve
>
>     raise driver.solver.get_failure_reason()
> zeroinstall.SafeException: Interface
> 'https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml' has no
> usable implementations

Huh. That shouldn't be a problem. 0install's user orientation tends
to make it complain about source-only feeds, but that shouldn't cause
the solve to fail.

Fabio Fracassi

unread,
May 25, 2012, 5:04:29 AM5/25/12
to rypp...@googlegroups.com


On Friday, May 25, 2012 3:39:54 AM UTC+2, Dave Abrahams wrote:
On Thu, May 24, 2012 at 9:26 PM, Fabio Fracassi <f.fra...@gmx.net> wrote:
> Hi Dave,
>
> just tried it here on my Mac (Lion).
...
> 3) the 'master' branch works? if one uses python setup.py install, but spews
> some errors.

master should work on all POSIX platforms  (I'm using it currently on my Mac).

well it does, after a fashion, if I use 'python setup.py install' but it gives some errors which seem to be insubstantial, looks like the translations are not getting build. Anyway, Point 7 should include this information.

running install_data
No translations (Git checkout?)... trying to build them...
msgfmt -o "share/locale/de/LC_MESSAGES/zero-install.mo" "share/locale/de/LC_MESSAGES/zero-install.po"
/bin/sh: msgfmt: command not found
make: *** [share/locale/de/LC_MESSAGES/zero-install.mo] Error 127

Traceback (most recent call last):
  File "setup.py", line 141, in <module>
    packages=["zeroinstall", "zeroinstall.support", "zeroinstall.zerostore", "zeroinstall.injector", "zeroinstall.0launch-gui", "zeroinstall.gtkui", "zeroinstall.cmd", "zeroinstall.scripts"])
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 101, in run
    install.run(self)    # super.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install.py", line 74, in run
    _install.run(self)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 585, in run
    self.run_command(cmd_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 70, in run
    self.data_files.extend(self._compile_po_files())
  File "setup.py", line 79, in _compile_po_files
    subprocess.check_call(["make", "translations"])
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 504, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', 'translations']' returned non-zero exit status 2
 

is this important, because I can't seem to install gettext.



> etching stale/missing 0install feeds
> [https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml]
> WARNING:root:[Errno 2] No such file or directory


Hmm… does the workspace/ directory exist (and is it a directory?)
Otherwise, I would expect this to fail.

Yes it does (exist) and yes it does (fail with helpful error otherwise)
 

> Traceback (most recent call last):
>   File "/usr/local/bin/ryppl", line 8, in <module>
>
>     load_entry_point('ryppl==0.8-pre', 'console_scripts', 'ryppl')()
>   File "/Users/fabio/Development/Staging/ryppl/ryppl/ryppl/main.py", line
> 39, in run
>     args.runner(args)
>   File
> "/Users/fabio/Development/Staging/ryppl/ryppl/ryppl/commands/develop.py",
> line 242, in run
>     selections = solve(args, config)
>   File
> "/Users/fabio/Development/Staging/ryppl/ryppl/ryppl/commands/develop.py",
> line 70, in solve
>
>     raise driver.solver.get_failure_reason()
> zeroinstall.SafeException: Interface
> 'https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml' has no
> usable implementations

Huh.  That shouldn't be a problem.  0install's user orientation tends
to make it complain about source-only feeds, but that shouldn't cause
the solve to fail.


Well it consistently gives me this error.

regards

Fabio

Dave Abrahams

unread,
May 25, 2012, 5:25:43 AM5/25/12
to rypp...@googlegroups.com
On Fri, May 25, 2012 at 5:04 AM, Fabio Fracassi <f.fra...@gmx.net> wrote:
>
>
> On Friday, May 25, 2012 3:39:54 AM UTC+2, Dave Abrahams wrote:
>>
>> On Thu, May 24, 2012 at 9:26 PM, Fabio Fracassi <f.fra...@gmx.net>
>> wrote:
>> > Hi Dave,
>> >
>> > just tried it here on my Mac (Lion).
>
> ...
>>
>> > 3) the 'master' branch works? if one uses python setup.py install, but
>> > spews
>> > some errors.
>>
>> master should work on all POSIX platforms  (I'm using it currently on my
>> Mac).
>
>
> well it does, after a fashion, if I use 'python setup.py install' but it
> gives some errors which seem to be insubstantial, looks like the
> translations are not getting build.

OK… are you saying that if you ignore these errors everything works?

> Anyway, Point 7 should include this
> information.

Which information? That the master branch works? The t/windows-port
branch should work just as well (I was testing it here until
recently). Does it fail?
I got mine through MacPorts.
Hm. I'm a bit at a loss, but I'll look into it further; thanks.

Fabio Fracassi

unread,
May 25, 2012, 8:11:42 AM5/25/12
to rypp...@googlegroups.com
On 5/25/12 11:25 AM, Dave Abrahams wrote:
> On Fri, May 25, 2012 at 5:04 AM, Fabio Fracassi<f.fra...@gmx.net> wrote:
>>
>> On Friday, May 25, 2012 3:39:54 AM UTC+2, Dave Abrahams wrote:
>>> On Thu, May 24, 2012 at 9:26 PM, Fabio Fracassi<f.fra...@gmx.net>
>>> wrote:
>>>> Hi Dave,
>>>>
>>>> just tried it here on my Mac (Lion).
>> ...
>>>> 3) the 'master' branch works? if one uses python setup.py install, but
>>>> spews
>>>> some errors.
>>> master should work on all POSIX platforms (I'm using it currently on my
>>> Mac).
>>
>> well it does, after a fashion, if I use 'python setup.py install' but it
>> gives some errors which seem to be insubstantial, looks like the
>> translations are not getting build.
> OK… are you saying that if you ignore these errors everything works?
Yes, this was the first thing I did to install it and afterwards ryppl
--help worked.
I have since also installed the t/windows-port which works without any
errors.

>> Anyway, Point 7 should include this
>> information.
> Which information?
Which branch I should prefer (and maybe why). Maybe it is just me, but
reading "windows-port" made me extremly insecure whether that is realy
for me beeing on mac and all.

> That the master branch works? The t/windows-port
> branch should work just as well (I was testing it here until
> recently). Does it fail?
No, it works.

>
> is this important, because I can't seem to install gettext.
> I got mine through MacPorts.
didn't work for me, gives me an error. Well I guess I just stay with the
windows-port branch.
I wanted to try if the master branch solves the problem below.

> Well it consistently gives me this error.
> Hm. I'm a bit at a loss, but I'll look into it further; thanks.
>
If I can do any testing or give you more info, let me know

Fabio


Beman Dawes

unread,
May 25, 2012, 8:33:52 AM5/25/12
to rypp...@googlegroups.com
On Thu, May 24, 2012 at 6:37 PM, Dave Abrahams <da...@boostpro.com> wrote:
> Thanks for trying this, Beman!  I think this was just a stray line in
> my setup.py script, for which I've checked in a fix.

The fix worked:-)

>  But please also
> check out my reply to Sebastian or my recent changes in
> https://github.com/ryppl/ryppl/wiki/Setting-up-a-Ryppl-test/_history
> for other important details.

I'm stumped by this:

3. Install Python's SSL certificates library using one of the methods
described here.

I click on "here", and am told to:

"Download and extract the distribution and then from the command prompt type:

$ python setup.py install "

The distribution of what? And where am I supposed to download it from?

Am I supposed to have installed the "Python Package Index" first? I
click through to that, and it looks like I first have to install
"pip". I click through to "get pip", and am told to first install some
prerequisites. Looks like one of the infinite install recursions that
plagued Unix before package managers. I'm lost.

I pretend step 3 said "From http://pypi.python.org/pypi/certifi,
download certifi-0.0.8.tar.gz and unpack into a temporary directory.
Drill down in the temporary until you find a sub-directory containing
setup.py, and there run "python setup.py install"

That seemed to work.

"4. By hook or by crook, make sure you have PyGTK installed in the
Python you're using."

I have no idea how to do that, so just skip step 4.

Steps 5 and 6 seem to work OK.

Step 7, the zeroinstall clone and switch to t/windows-port seem OK, but then:

C:\zeroinstall>python setup.py develop
Traceback (most recent call last):
File "setup.py", line 11, in <module>
import zeroinstall
File "C:\zeroinstall\zeroinstall\__init__.py", line 18, in <module>
import gobject; gobject.threads_init()
ImportError: No module named gobject

--Beman

Sebastian Redl

unread,
May 25, 2012, 9:01:22 AM5/25/12
to rypp...@googlegroups.com
On 25.05.2012 00:25, Dave Abrahams wrote:
Hi Sebastian,

On Thu, May 24, 2012 at 4:56 AM, Sebastian Redl
<sebasti...@getdesigned.at> wrote:

Lots and lots of problems.
Thanks for being the intrepid first tester.
Ah, you're nearly there!  You just need http://pypi.python.org/pypi/certifi
I've updated the instructions to reflect that part too.


    
Hi Dave,

So I installed certifi. (Download, extract, python setup.py install.) Now I get stuck at this:


C:\Users\sredl\Documents\Dev>ryppl develop https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml ryppl-workspace
[https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml]
WARNING:root:[Error 2] The system cannot find the file specified

Traceback (most recent call last):
  File "C:\Program Files (x86)\Python\Scripts\ryppl-script.py", line 8, in <module>
    load_entry_point('ryppl==0.8-pre', 'console_scripts', 'ryppl')()
  File "c:\users\sredl\documents\dev\ryppl\ryppl\main.py", line 39, in run
    args.runner(args)
  File "c:\users\sredl\documents\dev\ryppl\ryppl\commands\develop.py", line 242, in run
    selections = solve(args, config)
  File "c:\users\sredl\documents\dev\ryppl\ryppl\commands\develop.py", line 70,in solve

    raise driver.solver.get_failure_reason()
zeroinstall.SafeException: Interface 'https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml' has no usable implementations

I also tried this after installing the Windows 0install:
You don't need to install CMake; ryppl and 0install will take care of that for you by getting it from a feed at https://raw.github.com/ryppl/feeds/gh-pages/cmake.xml. However, if you're on windows you might want to 0alias cmake https://raw.github.com/ryppl/feeds/gh-pages/cmake.xml so that you can take the next step below.

C:\Users\sredl\Documents\Dev>0alias cmake https://raw.github.com/ryppl/feeds/gh-pages/cmake.xml
Interface 'https://raw.github.com/ryppl/feeds/gh-pages/cmake.xml' not currently in cache. Fetching...
[https://raw.github.com/ryppl/feeds/gh-pages/cmake.xml]
WARNING:root:[Error 2] The system cannot find the file specified
Interface 'https://raw.github.com/ryppl/feeds/gh-pages/cmake.xml' has no usable implementations
0launch failed

Dave Abrahams

unread,
May 25, 2012, 11:08:07 AM5/25/12
to rypp...@googlegroups.com, rypp...@googlegroups.com
What do you expect? You skipped step 4! There's an all-in-one installer package for Windows. Did you look at the link?

Sent from my Q-42 Space Modulator

Beman Dawes

unread,
May 25, 2012, 12:13:13 PM5/25/12
to rypp...@googlegroups.com
On Fri, May 25, 2012 at 11:08 AM, Dave Abrahams <da...@boostpro.com> wrote:

> What do you expect?  You skipped step 4!  There's an all-in-one installer package for Windows. Did you look at the link?

I found the step 4 wording very confusing. Why not just say:

4. Install PyGTK if not already installed.

Anyhow, I downloaded and unpacked PyGTK for Win32, added C:\gkt\bin to
my path, and verified the demo ran.

C:\zeroinstall>python setup.py develop
Traceback (most recent call last):
File "setup.py", line 11, in <module>
import zeroinstall
File "C:\zeroinstall\zeroinstall\__init__.py", line 18, in <module>
import gobject; gobject.threads_init()
ImportError: No module named gobject

Were the PyGTK files supposed to be unpacked in a specific directory?
Their docs implied that wasn't the case, and I arbitrarily created
\gtk as a home for them.

--Beman

Dave Abrahams

unread,
May 25, 2012, 2:16:42 PM5/25/12
to rypp...@googlegroups.com, rypp...@googlegroups.com
Please try the all-in-one installer as I suggested. There's no archive unpacking involved IIRC: http://www.pygtk.org/downloads.html

Sent from my Q-42 Space Modulator

Beman Dawes

unread,
May 25, 2012, 9:23:44 PM5/25/12
to rypp...@googlegroups.com
On Fri, May 25, 2012 at 2:16 PM, Dave Abrahams <da...@boostpro.com> wrote:
> Please try the all-in-one installer as I suggested. There's no archive unpacking involved IIRC: http://www.pygtk.org/downloads.html

I tried that this morning and the all-in-one download failed to start.
I'll try again now...

OK, downloaded and installed OK.

ryppl --help now works!

I'll try the doc build tomorrow.

Thanks,

--Beman

Beman Dawes

unread,
May 26, 2012, 3:08:05 PM5/26/12
to rypp...@googlegroups.com
See below. Also did a --version on cmake and 0install FYI.

--Beman

C:\Users\Beman>ryppl develop https://raw.github.com/ryppl/feeds/gh-pages/boost/q
uickbook-src.xml /boost/quickbook-test
Fetching stale/missing 0install feeds
[https://raw.github.com/ryppl/feeds/gh-pages/boost/quickbook-src.xml]
WARNING:root:[Error 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Python27\Scripts\ryppl-script.py", line 8, in <module>
load_entry_point('ryppl==0.8-pre', 'console_scripts', 'ryppl')()
File "c:\ryppl\ryppl\main.py", line 39, in run
args.runner(args)
File "c:\ryppl\ryppl\commands\develop.py", line 242, in run
selections = solve(args, config)
File "c:\ryppl\ryppl\commands\develop.py", line 70, in solve
raise driver.solver.get_failure_reason()
zeroinstall.SafeException: Interface 'https://raw.github.com/ryppl/feeds/gh-page
s/boost/quickbook-src.xml' has no usable implementations

C:\Users\Beman>cmake --version
cmake version 2.8.8

C:\Users\Beman>0install --version
0install (zero-install) 1.8
Copyright (C) 2011 Thomas Leonard
This program comes with ABSOLUTELY NO WARRANTY,
to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU Lesser General Public License.
For more information about these matters, see the file named COPYING.

Dave Abrahams

unread,
May 27, 2012, 11:46:39 PM5/27/12
to rypp...@googlegroups.com

OK, now it looks like everyone is stuck in the same place. I'll look
into this first thing tomorrow.
Reply all
Reply to author
Forward
0 new messages