bz2 dependency

#1

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. :wink:

Thanks,

Seb

0 Likes

#2

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. :wink:

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

Cheers,
/Tobias

···

Am 28.07.2014 22:13, schrieb Sebastien Jourdain:

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.

0 Likes

#3

Thanks just did here: https://github.com/tavendo/AutobahnPython/issues/244

···

On Mon, Jul 28, 2014 at 3:32 PM, Tobias Oberstein 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

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. :wink:

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+unsub...@googlegroups.com.

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

mailto:autobahnws@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.

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.

For more options, visit https://groups.google.com/d/optout.

0 Likes

#4

Hi Sebastien,

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

···

Am 29.07.2014 22:13, schrieb Sebastien Jourdain:

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. :wink:

    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%2...@googlegroups.com>
        <mailto:autobahnws+_...@googlegroups.com
        <mailto:autobahnws%2...@googlegroups.com>>.

        To post to this group, send email to autob...@googlegroups.com
        <mailto:autob...@googlegroups.com>
        <mailto: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>
        <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%2...@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>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#5

Thanks Tobias,

I will do and let you know.

Seb

···

On Jul 29, 2014, at 18:05, Tobias Oberstein <tobias.o...@gmail.com> wrote:

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. :wink:

   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%2...@googlegroups.com>
       <mailto:autobahnws+_...@googlegroups.com
       <mailto:autobahnws%2...@googlegroups.com>>.

       To post to this group, send email to autob...@googlegroups.com
       <mailto:autob...@googlegroups.com>
       <mailto: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>
       <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%2...@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>.
For more options, visit 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.
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.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#6

I works perfectly!

Thank you…

···

On Tue, Jul 29, 2014 at 6:05 PM, Tobias Oberstein tobias.o...@gmail.com wrote:

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.oberstein@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](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](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+__unsub...@googlegroups.com

    <mailto:autobahnws%2Bunsu...@googlegroups.com>>.




    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

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)>


    <[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)


    <[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)

    <[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](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:autobahnws@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](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)

<[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+unsubscribe@googlegroups.com

mailto:autobahnws+unsub...@googlegroups.com.

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

mailto:autobahnws@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>.

For more options, visit 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.

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.

For more options, visit https://groups.google.com/d/optout.

0 Likes