[users at bb.net] SQLAlchemy and SQLAlchemy-Migrate versions?

Barta, Hank hank.barta at sandc.com
Mon Aug 8 20:13:00 UTC 2016


I have moved master into a virtualenv. (See attached Dockerfile)

Console log starting master manually:

bbmaster at 568fedeecc02:~/buildbot-work$ source sandbox/bin/activate
(sandbox) bbmaster at 568fedeecc02:~/buildbot-work$ /usr/bin/buildbot start /var/lib/devops/buildbot/master
Following twistd.log until startup finished..
2016-08-08 20:03:41+0000 [-] Log opened.
2016-08-08 20:03:41+0000 [-] twistd 16.0.0 (/usr/bin/python 2.7.12) starting up.
2016-08-08 20:03:41+0000 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2016-08-08 20:03:41+0000 [-] Starting BuildMaster -- buildbot.version: 0.8.12
2016-08-08 20:03:41+0000 [-] Loading configuration from '/var/lib/devops/buildbot/master/master.cfg'
2016-08-08 20:03:41+0000 [-] Setting up database with URL 'sqlite:///state.sqlite'
2016-08-08 20:03:41+0000 [-] setting database journal mode to 'wal'
2016-08-08 20:03:41+0000 [-] adding 2 new changesources, removing 0
2016-08-08 20:03:41+0000 [-] gitpoller: using workdir '/var/lib/devops/buildbot/master/code_template-workdir'
2016-08-08 20:03:41+0000 [-] gitpoller: using workdir '/var/lib/devops/buildbot/master/dsp_sim-workdir'
2016-08-08 20:03:41+0000 [-] adding 1 new slaves, removing 0
2016-08-08 20:03:41+0000 [-] adding 2 new builders, removing 0
2016-08-08 20:03:41+0000 [-] trying to load status pickle from /var/lib/devops/buildbot/master/test_sim/builder
2016-08-08 20:03:41+0000 [-] added builder test_sim with tags None
2016-08-08 20:03:41+0000 [-] trying to load status pickle from /var/lib/devops/buildbot/master/runtests/builder
2016-08-08 20:03:41+0000 [-] added builder runtests with tags None
2016-08-08 20:03:41+0000 [-] PBServerFactory starting on 9989
2016-08-08 20:03:41+0000 [-] Starting factory <twisted.spread.pb.PBServerFactory instance at 0x7f4763c64050>
2016-08-08 20:03:41+0000 [-] adding scheduler 'force'
2016-08-08 20:03:41+0000 [-] adding scheduler 'template'
2016-08-08 20:03:41+0000 [-] adding scheduler 'simulator'
2016-08-08 20:03:42+0000 [-] WebStatus using (/var/lib/devops/buildbot/master/public_html)
2016-08-08 20:03:42+0000 [-] Loading builder runtests's build 8 from on-disk pickle
2016-08-08 20:03:42+0000 [-] RotateLogSite starting on 8010
2016-08-08 20:03:42+0000 [-] Starting factory <buildbot.status.web.baseweb.RotateLogSite instance at 0x7f4762c1aa70>
2016-08-08 20:03:42+0000 [-] Setting up http.log rotating 10 files of 10000000 bytes each
2016-08-08 20:03:42+0000 [-] BuildMaster is running
The buildmaster appears to have (re)started correctly.
(sandbox) bbmaster at 568fedeecc02:~/buildbot-work$ pip freeze | grep sqlalchemy
sqlalchemy-migrate==0.7.2
(sandbox) bbmaster at 568fedeecc02:~/buildbot-work$

Error scraped from log when trying to send email notification

2016-08-08 20:04:33+0000 [-] Exception caught notifying <buildbot.status.mail.MailNotifier object at 0x7f47649a9810> of buildFinished event
2016-08-08 20:04:33+0000 [-] Unhandled Error
        Traceback (most recent call last):
          File "/usr/lib/python2.7/dist-packages/buildbot/status/build.py", line 320, in buildFinished
            w.callback(self)
          File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 393, in callback
            self._startRunCallbacks(result)
          File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
            self._runCallbacks()
          File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
        --- <exception caught here> ---
          File "/usr/lib/python2.7/dist-packages/buildbot/status/builder.py", line 597, in _buildFinished
            w.buildFinished(name, s, results)
          File "/usr/lib/python2.7/dist-packages/buildbot/status/mail.py", line 537, in buildFinished
            return self.buildMessage(name, [build], results)
          File "/usr/lib/python2.7/dist-packages/buildbot/status/mail.py", line 735, in buildMessage
            build=build, results=build.results)
          File "/usr/lib/python2.7/dist-packages/buildbot/status/mail.py", line 716, in buildMessageDict
            self.master_status)
          File "/var/lib/devops/buildbot/master/master.cfg", line 143, in messageFormatter
            result = util.Results[results]
          File "/usr/lib/python2.7/dist-packages/buildbot/plugins/db.py", line 238, in __getattr__
            raise AttributeError(str(err))
        exceptions.AttributeError: Requirements are not satisfied for buildbot.util:Results: (sqlalchemy-migrate 0.10.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('sqlalchemy-migrate==0.7.2'))

I see this error dump with both 0.9.0 and 0.7.2 sqlalchemy-migrate installed in the sandbox.

The slave is running in the same virtualenv (~bbmaster/Buildbot-work/sandbox)

I remain baffled.

Thanks,
hank



-----Original Message----- (deleted)
From: users [mailto:users-bounces at buildbot.net] On Behalf Of Barta, Hank
Sent: Monday, August 08, 2016 2:19 PM
To: Pierre Tardy <tardyp at gmail.com>; users (users at buildbot.net) <users at buildbot.net>
Subject: Re: [users at bb.net] SQLAlchemy and SQLAlchemy-Migrate versions?

________________________________
NOTICE OF CONFIDENTIALITY:
This message may contain information that is considered confidential and which may be prohibited from disclosure under applicable law or by contractual agreement. The information is intended solely for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the information contained in or attached to this message is strictly prohibited. If you have received this email transmission in error, please notify the sender by replying to this email and then delete it from your system.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dockerfile
Type: application/octet-stream
Size: 2628 bytes
Desc: Dockerfile
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160808/01d29a18/attachment.obj>


More information about the users mailing list