bz2 dependency

8 views
Skip to first unread message

Sebastien Jourdain

unread,
Jul 28, 2014, 4:13:07 PM7/28/14
to autob...@googlegroups.com
Hi All,

I was wondering if Autobahn/Python was always compressing its content when sending over the network and hence if the bz2 package was a strong requirement.
The reason of my question is that we build our own strip down python and we currently do not provide the bzip2 library and package.

So if there is any work around or global property that we can set on autobahn to prevent it from trying to load that module that would be awesome. 
If not, then we will figure out a way to bring bzip2 into our Python, but it never hurt to ask. ;-)

Thanks,

Seb

Tobias Oberstein

unread,
Jul 28, 2014, 5:32:59 PM7/28/14
to autob...@googlegroups.com
Am 28.07.2014 22:13, schrieb Sebastien Jourdain:
> Hi All,
>
> I was wondering if Autobahn/Python was always compressing its content
> when sending over the network and hence if the bz2 package was a strong
> requirement.
> The reason of my question is that we build our own strip down python and
> we currently do not provide the bzip2 library and package.

Since Python without bzip2 is quite exotic, we didn't care to make it
optional

https://github.com/tavendo/AutobahnPython/blob/master/autobahn/autobahn/websocket/compress.py#L45

But it's completely non-essential.

>
> So if there is any work around or global property that we can set on
> autobahn to prevent it from trying to load that module that would be
> awesome.

Not. It requires a couple of lines of code (like this

https://github.com/tavendo/AutobahnPython/blob/master/autobahn/autobahn/websocket/compress.py#L68


> If not, then we will figure out a way to bring bzip2 into our Python,
> but it never hurt to ask. ;-)

Or file a bug - I add it. Ehh, remove the dep;)

Cheers,
/Tobias

>
> Thanks,
>
> Seb
>
> --
> You received this message because you are subscribed to the Google
> Groups "Autobahn" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to autobahnws+...@googlegroups.com
> <mailto:autobahnws+...@googlegroups.com>.
> To post to this group, send email to autob...@googlegroups.com
> <mailto:autob...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/autobahnws/a2c207ab-d995-479b-9e54-e9e18463f1b1%40googlegroups.com
> <https://groups.google.com/d/msgid/autobahnws/a2c207ab-d995-479b-9e54-e9e18463f1b1%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Sebastien Jourdain

unread,
Jul 29, 2014, 4:13:03 PM7/29/14
to autob...@googlegroups.com



To post to this group, send email to autob...@googlegroups.com

--
You received this message because you are subscribed to a topic in the Google Groups "Autobahn" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/z6-AbCjAO8c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to autobahnws+unsubscribe@googlegroups.com.
To post to this group, send email to autob...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/53D6C183.3030007%40gmail.com.

Tobias Oberstein

unread,
Jul 29, 2014, 8:05:39 PM7/29/14
to autob...@googlegroups.com
Hi Sebastien,

Am 29.07.2014 22:13, schrieb Sebastien Jourdain:
> Thanks just did here: https://github.com/tavendo/AutobahnPython/issues/244

alright. I pushed a patch that makes bzip2 optional. could you check if
that works on your side? I don't have a machine/vm around that _lacks_
bzip2;)

/Tobias
>
>
>
>
> On Mon, Jul 28, 2014 at 3:32 PM, Tobias Oberstein
> <tobias.o...@gmail.com <mailto:tobias.o...@gmail.com>> wrote:
>
> Am 28.07.2014 22:13, schrieb Sebastien Jourdain:
>
> Hi All,
>
> I was wondering if Autobahn/Python was always compressing its
> content
> when sending over the network and hence if the bz2 package was a
> strong
> requirement.
> The reason of my question is that we build our own strip down
> python and
> we currently do not provide the bzip2 library and package.
>
>
> Since Python without bzip2 is quite exotic, we didn't care to make
> it optional
>
> https://github.com/tavendo/__AutobahnPython/blob/master/__autobahn/autobahn/websocket/__compress.py#L45
> <https://github.com/tavendo/AutobahnPython/blob/master/autobahn/autobahn/websocket/compress.py#L45>
>
> But it's completely non-essential.
>
>
>
> So if there is any work around or global property that we can set on
> autobahn to prevent it from trying to load that module that would be
> awesome.
>
>
> Not. It requires a couple of lines of code (like this
>
> https://github.com/tavendo/__AutobahnPython/blob/master/__autobahn/autobahn/websocket/__compress.py#L68
> <https://github.com/tavendo/AutobahnPython/blob/master/autobahn/autobahn/websocket/compress.py#L68>
>
>
>
> If not, then we will figure out a way to bring bzip2 into our
> Python,
> but it never hurt to ask. ;-)
>
>
> Or file a bug - I add it. Ehh, remove the dep;)
>
> Cheers,
> /Tobias
>
>
> Thanks,
>
> Seb
>
> --
> You received this message because you are subscribed to the Google
> Groups "Autobahn" group.
> To unsubscribe from this group and stop receiving emails from
> it, send
> an email to autobahnws+unsubscribe@__googlegroups.com
> <mailto:autobahnws%2Bunsu...@googlegroups.com>
> <mailto:autobahnws+_...@googlegroups.com
> <mailto:autobahnws%2Bunsu...@googlegroups.com>>.
>
> To post to this group, send email to autob...@googlegroups.com
> <mailto:autob...@googlegroups.com>
> <mailto:autobahnws@__googlegroups.com
> <mailto:autob...@googlegroups.com>>.
>
> To view this discussion on the web visit
> https://groups.google.com/d/__msgid/autobahnws/a2c207ab-__d995-479b-9e54-e9e18463f1b1%__40googlegroups.com
> <https://groups.google.com/d/msgid/autobahnws/a2c207ab-d995-479b-9e54-e9e18463f1b1%40googlegroups.com>
> <https://groups.google.com/d/__msgid/autobahnws/a2c207ab-__d995-479b-9e54-e9e18463f1b1%__40googlegroups.com?utm_medium=__email&utm_source=footer
> <https://groups.google.com/d/msgid/autobahnws/a2c207ab-d995-479b-9e54-e9e18463f1b1%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> For more options, visit https://groups.google.com/d/__optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "Autobahn" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/__topic/autobahnws/z6-AbCjAO8c/__unsubscribe
> <https://groups.google.com/d/topic/autobahnws/z6-AbCjAO8c/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> autobahnws+unsubscribe@__googlegroups.com
> <mailto:autobahnws%2Bunsu...@googlegroups.com>.
> To post to this group, send email to autob...@googlegroups.com
> <mailto:autob...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/__msgid/autobahnws/53D6C183.__3030007%40gmail.com
> <https://groups.google.com/d/msgid/autobahnws/53D6C183.3030007%40gmail.com>.
>
> For more options, visit https://groups.google.com/d/__optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Autobahn" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to autobahnws+...@googlegroups.com
> <mailto:autobahnws+...@googlegroups.com>.
> To post to this group, send email to autob...@googlegroups.com
> <mailto:autob...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/autobahnws/CABObKxcM%3DYtzy4jmzJKzC%2Bxv%2BaO5nN3nky_L0mQyzUuOUVX3%3DQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/autobahnws/CABObKxcM%3DYtzy4jmzJKzC%2Bxv%2BaO5nN3nky_L0mQyzUuOUVX3%3DQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Sebastien Jourdain

unread,
Jul 29, 2014, 10:20:25 PM7/29/14
to autob...@googlegroups.com
Thanks Tobias,

I will do and let you know.

Seb
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/z6-AbCjAO8c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to autobahnws+...@googlegroups.com.
> To post to this group, send email to autob...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/53D836BE.4060405%40gmail.com.

Sebastien Jourdain

unread,
Jul 30, 2014, 12:12:46 PM7/30/14
to autob...@googlegroups.com
I works perfectly!

Thank you...




        To post to this group, send email to autob...@googlegroups.com
        <mailto:autobahnws@googlegroups.com>
        <mailto:autobahnws@__googlegroups.com

        <mailto:autobahnws@googlegroups.com>>.


        To view this discussion on the web visit

    To post to this group, send email to autob...@googlegroups.com

    To view this discussion on the web visit



--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send

To post to this group, send email to autob...@googlegroups.com

To view this discussion on the web visit
--
You received this message because you are subscribed to a topic in the Google Groups "Autobahn" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/z6-AbCjAO8c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to autobahnws+unsubscribe@googlegroups.com.
To post to this group, send email to autob...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/53D836BE.4060405%40gmail.com.
Reply all
Reply to author
Forward
0 new messages