hookbox-dax 0.3.4a1 released

79 views
Skip to first unread message

Dax

unread,
Jul 4, 2012, 5:06:55 AM7/4/12
to hoo...@googlegroups.com
Hi All,

I made an 'unofficial' hookbox packaged and bumped the version to 0.3.4a1
you can get them via:

pip install hookbox-dax


Regards,
Dax

Dave B.

unread,
Dec 11, 2012, 2:49:32 PM12/11/12
to hoo...@googlegroups.com
Dax,

This is great, thank you for doing this.  I've finally been able to get back and try to update to this on a new WIndows 7 system, but when I try to install, I get an error trying to build libevent as part of event.  I've googled the error but haven't found anything yet.  Have you run into this?

If I can't figure this out I'll have to stick with 0.3.3.

Thanks for any help,
Dave

------------------------------------------------------------------------
C:\Python27>pip install hookbox-dax
Downloading/unpacking hookbox-dax
  Downloading hookbox-dax-0.3.4a1.tar.gz (559Kb): 559Kb downloaded
  Running setup.py egg_info for package hookbox-dax

    warning: no files found matching '*.jpg' under directory 'hookbox'
    warning: no files found matching '*.giff' under directory 'hookbox'
Downloading/unpacking eventlet>=0.9.10 (from hookbox-dax)
  Downloading eventlet-0.9.17.tar.gz (262Kb): 262Kb downloaded
  Running setup.py egg_info for package eventlet

    warning: no files found matching 'Makefile' under directory 'doc'
Downloading/unpacking paste (from hookbox-dax)
  Downloading Paste-1.7.5.1.tar.gz (523Kb): 523Kb downloaded
  Running setup.py egg_info for package paste

    warning: no previously-included files matching '*' found under directory 'docs\_build\_sources'
Downloading/unpacking csp-eventlet>=0.5.1 (from hookbox-dax)
  Downloading csp_eventlet-0.7.0.tar.gz
  Running setup.py egg_info for package csp-eventlet

Downloading/unpacking rtjp-eventlet>=0.3.2 (from hookbox-dax)
  Downloading rtjp_eventlet-0.3.2.tar.gz
  Running setup.py egg_info for package rtjp-eventlet

Downloading/unpacking pygments (from hookbox-dax)
  Downloading Pygments-1.5.tar.gz (3.7Mb): 3.7Mb downloaded
  Running setup.py egg_info for package pygments

Downloading/unpacking restkit==4.1.3 (from hookbox-dax)
  Downloading restkit-4.1.3.tar.gz (1.3Mb): 1.3Mb downloaded
  Running setup.py egg_info for package restkit

Downloading/unpacking event==0.4.2 (from hookbox-dax)
  Downloading event-0.4.2.zip (56Kb): 56Kb downloaded
  Running setup.py egg_info for package event
    C:\Python27\Scripts\build\event\setup.py:23: UserWarning: Could not find libevent
      warnings.warn("Could not find libevent")

Downloading/unpacking greenlet>=0.3 (from eventlet>=0.9.10->hookbox-dax)
  Downloading greenlet-0.4.0.zip (72Kb): 72Kb downloaded
  Running setup.py egg_info for package greenlet

Downloading/unpacking http-parser>=0.7.5 (from restkit==4.1.3->hookbox-dax)
  Downloading http-parser-0.7.12.tar.gz (139Kb): 139Kb downloaded
  Running setup.py egg_info for package http-parser

Downloading/unpacking socketpool>=0.4.1 (from restkit==4.1.3->hookbox-dax)
  Downloading socketpool-0.5.2.tar.gz
  Running setup.py egg_info for package socketpool

Downloading/unpacking nose (from restkit==4.1.3->hookbox-dax)
  Downloading nose-1.2.1.tar.gz (400Kb): 400Kb downloaded
  Running setup.py egg_info for package nose

    no previously-included directories found matching 'doc\.build'
Downloading/unpacking webob (from restkit==4.1.3->hookbox-dax)
  Downloading WebOb-1.2.3.tar.gz (191Kb): 191Kb downloaded
  Running setup.py egg_info for package webob

    no previously-included directories found matching '*.pyc'
    no previously-included directories found matching '*.pyo'
Installing collected packages: hookbox-dax, eventlet, paste, csp-eventlet, rtjp-eventlet, pygments, restkit, event, greenlet, http-p
arser, socketpool, nose, webob
  Running setup.py install for hookbox-dax

    warning: no files found matching '*.jpg' under directory 'hookbox'
    warning: no files found matching '*.giff' under directory 'hookbox'
    Installing hookbox-script.py script to C:\Python27\Scripts
    Installing hookbox.exe script to C:\Python27\Scripts
  Running setup.py install for eventlet

    warning: no files found matching 'Makefile' under directory 'doc'
  Running setup.py install for paste
    Skipping installation of C:\Python27\Lib\site-packages\paste\__init__.py (namespace package)

    warning: no previously-included files matching '*' found under directory 'docs\_build\_sources'
    Installing C:\Python27\Lib\site-packages\Paste-1.7.5.1-py2.7-nspkg.pth
  Running setup.py install for csp-eventlet

  Running setup.py install for rtjp-eventlet

  Running setup.py install for pygments

    Installing pygmentize-script.py script to C:\Python27\Scripts
    Installing pygmentize.exe script to C:\Python27\Scripts
  Running setup.py install for restkit

  Running setup.py install for event
    building 'event' extension
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I../libevent -I../libeven
t/WIN32-Code -I../libevent/compat -IC:\Python27\include -IC:\Python27\PC /Tcevent.c /Fobuild\temp.win32-2.7\Release\event.obj -DWIN3
2 -DHAVE_CONFIG_H
    event.c
    event.c(225) : fatal error C1083: Cannot open include file: 'evdns.h': No such file or directory
    C:\Python27\Scripts\build\event\setup.py:23: UserWarning: Could not find libevent
      warnings.warn("Could not find libevent")
    error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2
    Complete output from command C:\Python27\python2.7.exe -c "import setuptools;__file__='C:\\Python27\\Scripts\\build\\event\\setu
p.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --re
cord c:\users\dbarndt\appdata\local\temp\pip-lwqd6f-record\install-record.txt:
    running install

running build

running build_ext

building 'event' extension

creating build

creating build\temp.win32-2.7

creating build\temp.win32-2.7\Release

creating build\temp.win32-2.7\libevent

creating build\temp.win32-2.7\libevent\WIN32-Code

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I../libevent -I../libevent/WI
N32-Code -I../libevent/compat -IC:\Python27\include -IC:\Python27\PC /Tcevent.c /Fobuild\temp.win32-2.7\Release\event.obj -DWIN32 -D
HAVE_CONFIG_H

event.c

event.c(225) : fatal error C1083: Cannot open include file: 'evdns.h': No such file or directory

C:\Python27\Scripts\build\event\setup.py:23: UserWarning: Could not find libevent

  warnings.warn("Could not find libevent")

error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2

----------------------------------------
Command C:\Python27\python2.7.exe -c "import setuptools;__file__='C:\\Python27\\Scripts\\build\\event\\setup.py';exec(compile(open(_
_file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record c:\users\dbarndt\app
data\local\temp\pip-lwqd6f-record\install-record.txt failed with error code 1
Storing complete log in C:\Users\dbarndt\AppData\Roaming\pip\pip.log

C:\Python27\Scripts>

Dax Reyes

unread,
Dec 18, 2012, 9:43:42 PM12/18/12
to hoo...@googlegroups.com
Hi Dave,

My apologies, I have not tested hookbox-dax on windows. It is probably
compiling for a new libevent (v 2.x) module. Are you able to install a
libevent 1.4.x? That is what Im using in Linux and OSX. I was also
having problems with libevent 2.x . I will try to see if I can get
hold of a windows 7.

Right now, Im trying to research more on realtime stuff (nodejs,
sockjs, meteor) and see if I can make hookbox move forward.
In the short term, I will experiment on a use gevent [1] instead of
eventlet, request/grequest [2,3] instead of restkit .

[1] https://github.com/SiteSupport/gevent
[2] https://github.com/kennethreitz/requests
[3] https://github.com/kennethreitz/grequests

Regards,
Dax

Dave B.

unread,
Dec 19, 2012, 12:03:39 AM12/19/12
to hoo...@googlegroups.com
Hi Dax,

It looks as though perhaps libevent is completely missing from event's (0.4.2) dependency list?  When setup is run on the event package's egg_info, it can't find libevent.  Then, later on the build fails since again it appears libevent components are not present.

Is libevent for Python (2.7) available anywhere?  It didn't seem to be out on the package repositories I know about.  I will continue to look for libevent 1.4.x on Windows and let you know.  Meanwhile, I'm attacking from another angle, trying to use the last hookbox version (0.3.4dev ?) Michael Carter put out - while it worked for me on Windows XP, now that I've tried to move it to Windows 7 (which is where my users are going), I'm encountering some sort of performance slowdown, seeming to be on the REST interface side I think.

Please let's keep each other posted.  I had hoped it would be reasonably straightforward to move to Windows 7 from XP, but it's proving to be anything but.

Thanks for the help - it's very appreciated.

Dave B.

Dave B.

unread,
Dec 19, 2012, 1:10:18 AM12/19/12
to hoo...@googlegroups.com
OK...based on your recommendation I found libevent 1.4.x at: https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz

Then, using MS VC++ 2008 Redistrib,, after running vcvars32.bat to set the environment vars up, I cd'ed to the unpacked libevent main directory and typed:  nmake -f makefile.nmake and it built (failed in the build of some test modules at the end but that seemed not to be an issue)!

Then, I put a copy of the built libevent in a sibling directory next to the "event" directory in the pip temporary build tree, and event 0.4.2 *almost* built - but I'm getting the following error:

Downloading/unpacking event==0.4.2
  Running setup.py egg_info for package event
    found libevent build directory ..\libevent

Installing collected packages: event
  Running setup.py install for event
    found libevent build directory ..\libevent
    building 'event' extension
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I..\libevent -I..\libevent/WIN32-Code -I..\libevent/compat -IC:\Python27\include -IC:\Python27\PC /Tcevent.c /Fobuild\temp.win32-2.7\Release\event.obj -DWIN32 -DHAVE_CONFIG_H
    event.c
    ..\libevent\event.h(226) : error C2079: 'ev_timeout' uses undefined struct 'timeval'
    event.c(2057) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    event.c(2064) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    event.c(5563) : warning C4133: 'function' : incompatible types - from 'char *' to 'const in_addr *'
    event.c(5721) : warning C4133: 'function' : incompatible types - from 'char *' to 'const in_addr *'
    event.c(6848) : warning C4090: '=' : different 'const' qualifiers
    event.c(6871) : warning C4090: '=' : different 'const' qualifiers
    event.c(6894) : warning C4090: '=' : different 'const' qualifiers
    error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2

Progress, but slow.  Again thanks for the help so far.

Dave B.

Dave B.

unread,
Dec 19, 2012, 12:06:27 PM12/19/12
to hoo...@googlegroups.com
Built!

A tip found at:  http://code.google.com/p/pyevent/issues/list (mousing over issue #15) saved me time and got me over the hump.

Now to see how hookbox-dax performs on Windows 7...

Dax Reyes

unread,
Dec 19, 2012, 8:46:31 PM12/19/12
to hoo...@googlegroups.com
Glad to know that. Let us know how your testing goes.

Dave B.

unread,
Jan 8, 2013, 1:39:12 AM1/8/13
to hoo...@googlegroups.com
Hi Dax,

Sorry for not getting back here until now.  Because I had been using the previous 0.3.4a (pre hookbox-dax) version, that's the one I was instructed to continue using (minimize changes to everything, etc.)  I did get hookbox-dax built like I mentioned previously but didn't get very far with testing,

You mentioned something in a previous post about getting away from event/libevent in a future version.  When other changes in my project die down, I'd be very interested to see what you come up with and help test if I can.

Thank you again for your help in promoting what has been proving to be a very good piece of software for my use case (real-time passing of data from a console app to a web app).

Dave

Dax Reyes

unread,
Jan 11, 2013, 4:26:14 AM1/11/13
to hoo...@googlegroups.com
Hi Dave,

Glad to know how hookbox is being used in a production environment. :)

Regards,
Dax
Reply all
Reply to author
Forward
0 new messages