All of lore.kernel.org
 help / color / mirror / Atom feed
From: Willem Jan Withagen <wjw@digiware.nl>
To: Loic Dachary <loic@dachary.org>,
	Pete Zaitcev <zaitcev@redhat.com>,
	ceph-devel@vger.kernel.org
Subject: Re: vstart and Python bindings
Date: Thu, 25 Feb 2016 12:20:35 +0100	[thread overview]
Message-ID: <56CEE383.60409@digiware.nl> (raw)
In-Reply-To: <56CEA76D.9040200@dachary.org>

On 25-2-2016 08:04, Loic Dachary wrote:
> Hi Pete,
> 
> You need https://github.com/ceph/ceph/pull/7792 which is going to be merged real soon now ;-)
> 

I had a similar experience, but that was more due to Makefile.am in pybind:
if ENABLE_CLIENT
if WITH_RADOS
if WITH_RBD
if WITH_CYTHON

PY_DISTUTILS = \
        CPPFLAGS="-iquote \${abs_srcdir}/include ${AM_CPPFLAGS}
${CPPFLAGS}" \
        CFLAGS="-iquote \${abs_srcdir}/include ${AM_CFLAGS} ${CFLAGS}" \
        LDFLAGS="-L\${abs_builddir}/.libs $(subst -pie,,${AM_LDFLAGS})
${LDFLAGS}" \
        CYTHON_BUILD_DIR="$(shell readlink -f $(builddir))/build" \
        ${PYTHON} ./setup.py

include pybind/rbd/Makefile.am
include pybind/rados/Makefile.am

endif
endif
endif
endif

And since I'm not there for RBD, pybind/rados/Makefile.am does not get
included.
So I've reorganised the Makefile, put the WITH_{RADOS,RBD} as most inter
tests, and only with the includes.
But haven't gotten around actually compiling a full set again to see if
rados things are actually made.

--WjW


> Cheers
> 
> On 25/02/2016 13:37, Pete Zaitcev wrote:
>> I did a git pull today and rebuilt. Ran vstart, and it produced a
>> Python traceback, ending with:
>>
>> ImportError: No module named rados
>>
>> Oooookay... This box never had Python bindings installed, but okay,
>> someone innovated something. Fine, I thought. Installed python-rados,
>> and ./ceph -w tracebacks:
>>
>> Traceback (most recent call last):
>>   File "./ceph", line 953, in <module>
>>     retval = main()
>>   File "./ceph", line 778, in main
>>     run_in_thread(cluster_handle.monitor_log, level, watch_cb, 0)
>> AttributeError: 'Rados' object has no attribute 'monitor_log'
>>
>> Of course. The system version of pybind is obsolete, but ./ceph gets
>> wrong one. Actually, it's not even getting built from .pyx anymore.
>>
>> Could whoever did all this please undo?
>>
>> -- Pete
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
> 


  reply	other threads:[~2016-02-25 11:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-25  6:37 vstart and Python bindings Pete Zaitcev
2016-02-25  7:04 ` Loic Dachary
2016-02-25 11:20   ` Willem Jan Withagen [this message]
2016-02-26  0:27   ` Pete Zaitcev
2016-02-26  4:41     ` Loic Dachary
2016-02-26  8:38       ` kefu chai
2016-02-25 11:41 ` John Spray
2016-02-26  0:35   ` Pete Zaitcev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56CEE383.60409@digiware.nl \
    --to=wjw@digiware.nl \
    --cc=ceph-devel@vger.kernel.org \
    --cc=loic@dachary.org \
    --cc=zaitcev@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.