How do I get ZeroMQ working?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

How do I get ZeroMQ working?

Hannes Hirzel
Hello

I installed JupyterTalk [1]. With it comes a ZeroMQ implementation
[2]. This was done on Ubuntu 18.04.1 (Bionic Beaver, 64bit).

However the ZeroMQ tests all fail.

I assume there is something missing in the installation.

How can I test that? Any other suggestions?

Kind regards
Hannes







[1]  JupyterTalk (https://github.com/jmari/JupyterTalk) is a Smalltalk
kernel for the Jupyter notebook system: http://jupyter.org/

[2] ZeroMQ is a high-performance asynchronous messaging library, aimed
at use in distributed or concurrent applications.
It provides a message queue, but unlike message-oriented middleware, a
ZeroMQ system can run without a dedicated message broker.
https://en.wikipedia.org/wiki/ZeroMQ

ZeroMQ_test_results_Ubuntu18.04.1_Pharo6.1_Screenshot_2018-08-23.png (196K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

Hannes Hirzel
P.S. I assume I have to install a package on Ubuntu 18.04 Bionic
Beaver. The question is which one.

Note: I plan to write a comprehensive installation instruction for JuypterTalk.

On 8/23/18, H. Hirzel <[hidden email]> wrote:

> Hello
>
> I installed JupyterTalk [1]. With it comes a ZeroMQ implementation
> [2]. This was done on Ubuntu 18.04.1 (Bionic Beaver, 64bit).
>
> However the ZeroMQ tests all fail.
>
> I assume there is something missing in the installation.
>
> How can I test that? Any other suggestions?
>
> Kind regards
> Hannes
>
>
>
>
>
>
>
> [1]  JupyterTalk (https://github.com/jmari/JupyterTalk) is a Smalltalk
> kernel for the Jupyter notebook system: http://jupyter.org/
>
> [2] ZeroMQ is a high-performance asynchronous messaging library, aimed
> at use in distributed or concurrent applications.
> It provides a message queue, but unlike message-oriented middleware, a
> ZeroMQ system can run without a dedicated message broker.
> https://en.wikipedia.org/wiki/ZeroMQ
>

Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

itlists@schrievkrom.de
In reply to this post by Hannes Hirzel
Simple question:

Pharo 32 or 64 bit ?

If you work with Pharo32 you need to install the 32bit (Unix)-libraries
for 0MQ. If you work with Pharo64 you use the 64bit (Unix)-Libraries.

So - what is your environment ?

Marten


Am 23.08.2018 um 10:54 schrieb H. Hirzel:

> Hello
>
> I installed JupyterTalk [1]. With it comes a ZeroMQ implementation
> [2]. This was done on Ubuntu 18.04.1 (Bionic Beaver, 64bit).
>
> However the ZeroMQ tests all fail.
>
> I assume there is something missing in the installation.
>
> How can I test that? Any other suggestions?
>
> Kind regards
> Hannes
>
>
>
>
>
>
>
> [1]  JupyterTalk (https://github.com/jmari/JupyterTalk) is a Smalltalk
> kernel for the Jupyter notebook system: http://jupyter.org/
>
> [2] ZeroMQ is a high-performance asynchronous messaging library, aimed
> at use in distributed or concurrent applications.
> It provides a message queue, but unlike message-oriented middleware, a
> ZeroMQ system can run without a dedicated message broker.
> https://en.wikipedia.org/wiki/ZeroMQ
>


--
Marten Feldtmann

Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

Hannes Hirzel
Pharo 6.1 - 64bit on Ubuntu 18.04.1 (Bionic Beaver, 64bit).

On 8/23/18, Marten Feldtmann <[hidden email]> wrote:

> Simple question:
>
> Pharo 32 or 64 bit ?
>
> If you work with Pharo32 you need to install the 32bit (Unix)-libraries
> for 0MQ. If you work with Pharo64 you use the 64bit (Unix)-Libraries.
>
> So - what is your environment ?
>
> Marten
>
>
> Am 23.08.2018 um 10:54 schrieb H. Hirzel:
>> Hello
>>
>> I installed JupyterTalk [1]. With it comes a ZeroMQ implementation
>> [2]. This was done on Ubuntu 18.04.1 (Bionic Beaver, 64bit).
>>
>> However the ZeroMQ tests all fail.
>>
>> I assume there is something missing in the installation.
>>
>> How can I test that? Any other suggestions?
>>
>> Kind regards
>> Hannes
>>
>>
>>
>>
>>
>>
>>
>> [1]  JupyterTalk (https://github.com/jmari/JupyterTalk) is a Smalltalk
>> kernel for the Jupyter notebook system: http://jupyter.org/
>>
>> [2] ZeroMQ is a high-performance asynchronous messaging library, aimed
>> at use in distributed or concurrent applications.
>> It provides a message queue, but unlike message-oriented middleware, a
>> ZeroMQ system can run without a dedicated message broker.
>> https://en.wikipedia.org/wiki/ZeroMQ
>>
>
>
> --
> Marten Feldtmann
>

Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

Jesús Marí
In reply to this post by Hannes Hirzel
Load it again I've updated the unix64ModuleName to search for the correct
library name.




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

Hannes Hirzel
Thank you, Jesús Marí. I reloaded your updated JupyterTalk Pharo
Smalltalk package which now looks for more places to find the library
ZeroMQ.

Unfortunately it still did not find the ZeroMQ library.

The following command shows where there is a ZeroMQ library:  [1]

root@Latitude2:/# find / -name libzmq*.so.*
/home/user25/anaconda3/lib/libzmq.so.5
/home/user25/anaconda3/lib/libzmq.so.5.1.5
/home/user25/anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5
/home/user25/anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5.1.5
------

So there is
    libzmq.so.5
and not
    libzmq.so.3

which you need for JuypterTalk.

So I need to install either  libzmq.so.3 library separately or
JupyterTalk needs to be changed to also look for libzmq.so.3,
libzmq.so.4 or libzmq.so.5

I'll look into your code and try a hack to look for
/home/user25/anaconda3/lib/libzmq.so.5

--Hannes

------------------------------------------------------------------------------------------------------------------

[1] Context: ZeroMQ was installed by the Python Anaconda distribution.
I t is the recommended way for installing the JupyterNotebook
http://jupyter.org/install

The idea is that you get everything in one big installation ('a distribution')

However it seems that going for opteion 2 (pip installation seems to
be easier next time).
But as I have a working Jupyter installation now it is left with
getting a ZeroMQ installation which JupyterTalk finds.



On 8/23/18, Jesús Marí <[hidden email]> wrote:

> Load it again I've updated the unix64ModuleName to search for the correct
> library name.
>
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>

Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

Hannes Hirzel
On 8/24/18, H. Hirzel <[hidden email]> wrote:

> Thank you, Jesús Marí. I reloaded your updated JupyterTalk Pharo
> Smalltalk package which now looks for more places to find the library
> ZeroMQ.
>
> Unfortunately it still did not find the ZeroMQ library.
>
> The following command shows where there is a ZeroMQ library:  [1]
>
> root@Latitude2:/# find / -name libzmq*.so.*
> /home/user25/anaconda3/lib/libzmq.so.5
> /home/user25/anaconda3/lib/libzmq.so.5.1.5
> /home/user25/anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5
> /home/user25/anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5.1.5
> ------
>
> So there is
>     libzmq.so.5
> and not
>     libzmq.so.3
>
> which you need for JuypterTalk.
>
> So I need to install either  libzmq.so.3 library separately or
> JupyterTalk needs to be changed to also look for libzmq.so.3,
> libzmq.so.4 or libzmq.so.5
>
> I'll look into your code and try a hack to look for
> /home/user25/anaconda3/lib/libzmq.so.5

I assume the hack has to be done here

https://github.com/jmari/JupyterTalk/commit/b2155e64bcb8904f0cf8b830f9a78edfbfe6dc6f

the question is how...

> --Hannes
>
> ------------------------------------------------------------------------------------------------------------------
>
> [1] Context: ZeroMQ was installed by the Python Anaconda distribution.
> I t is the recommended way for installing the JupyterNotebook
> http://jupyter.org/install
>
> The idea is that you get everything in one big installation ('a
> distribution')
>
> However it seems that going for opteion 2 (pip installation seems to
> be easier next time).
> But as I have a working Jupyter installation now it is left with
> getting a ZeroMQ installation which JupyterTalk finds.
>
>
>
> On 8/23/18, Jesús Marí <[hidden email]> wrote:
>> Load it again I've updated the unix64ModuleName to search for the correct
>> library name.
>>
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

Hannes Hirzel
Thinking about it again:
Going for a Python - anaconda distribution related hack is to
specific. I am rather interested in a regular ZeroMQ installation for
Pharo.

I have now created a new Ubuntu 18.04.1 bionic beaver installation and
the question is: how do I set ZeroMQ up togehter with Pharo
(Juyptertalk)

On 8/24/18, H. Hirzel <[hidden email]> wrote:

> On 8/24/18, H. Hirzel <[hidden email]> wrote:
>> Thank you, Jesús Marí. I reloaded your updated JupyterTalk Pharo
>> Smalltalk package which now looks for more places to find the library
>> ZeroMQ.
>>
>> Unfortunately it still did not find the ZeroMQ library.
>>
>> The following command shows where there is a ZeroMQ library:  [1]
>>
>> root@Latitude2:/# find / -name libzmq*.so.*
>> /home/user25/anaconda3/lib/libzmq.so.5
>> /home/user25/anaconda3/lib/libzmq.so.5.1.5
>> /home/user25/anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5
>> /home/user25/anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5.1.5
>> ------
>>
>> So there is
>>     libzmq.so.5
>> and not
>>     libzmq.so.3
>>
>> which you need for JuypterTalk.
>>
>> So I need to install either  libzmq.so.3 library separately or
>> JupyterTalk needs to be changed to also look for libzmq.so.3,
>> libzmq.so.4 or libzmq.so.5
>>
>> I'll look into your code and try a hack to look for
>> /home/user25/anaconda3/lib/libzmq.so.5
>
> I assume the hack has to be done here
>
> https://github.com/jmari/JupyterTalk/commit/b2155e64bcb8904f0cf8b830f9a78edfbfe6dc6f
>
> the question is how...
>
>> --Hannes
>>
>> ------------------------------------------------------------------------------------------------------------------
>>
>> [1] Context: ZeroMQ was installed by the Python Anaconda distribution.
>> I t is the recommended way for installing the JupyterNotebook
>> http://jupyter.org/install
>>
>> The idea is that you get everything in one big installation ('a
>> distribution')
>>
>> However it seems that going for opteion 2 (pip installation seems to
>> be easier next time).
>> But as I have a working Jupyter installation now it is left with
>> getting a ZeroMQ installation which JupyterTalk finds.
>>
>>
>>
>> On 8/23/18, Jesús Marí <[hidden email]> wrote:
>>> Load it again I've updated the unix64ModuleName to search for the
>>> correct
>>> library name.
>>>
>>>
>>>
>>>
>>> --
>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>>
>>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

Jesús Marí
In reply to this post by Hannes Hirzel
I see...anaconda installs everything in home directory. ZeroMQ version won't be a problem, probably it is backward compatible.
I will include $home/anaconda3/lib in the searching path. 


El vie., 24 ago. 2018 a las 7:10, H. Hirzel (<[hidden email]>) escribió:
On 8/24/18, H. Hirzel <[hidden email]> wrote:
> Thank you, Jesús Marí. I reloaded your updated JupyterTalk Pharo
> Smalltalk package which now looks for more places to find the library
> ZeroMQ.
>
> Unfortunately it still did not find the ZeroMQ library.
>
> The following command shows where there is a ZeroMQ library:  [1]
>
> root@Latitude2:/# find / -name libzmq*.so.*
> /home/user25/anaconda3/lib/libzmq.so.5
> /home/user25/anaconda3/lib/libzmq.so.5.1.5
> /home/user25/anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5
> /home/user25/anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5.1.5
> ------
>
> So there is
>     libzmq.so.5
> and not
>     libzmq.so.3
>
> which you need for JuypterTalk.
>
> So I need to install either  libzmq.so.3 library separately or
> JupyterTalk needs to be changed to also look for libzmq.so.3,
> libzmq.so.4 or libzmq.so.5
>
> I'll look into your code and try a hack to look for
> /home/user25/anaconda3/lib/libzmq.so.5

I assume the hack has to be done here

https://github.com/jmari/JupyterTalk/commit/b2155e64bcb8904f0cf8b830f9a78edfbfe6dc6f

the question is how...

> --Hannes
>
> ------------------------------------------------------------------------------------------------------------------
>
> [1] Context: ZeroMQ was installed by the Python Anaconda distribution.
> I t is the recommended way for installing the JupyterNotebook
> http://jupyter.org/install
>
> The idea is that you get everything in one big installation ('a
> distribution')
>
> However it seems that going for opteion 2 (pip installation seems to
> be easier next time).
> But as I have a working Jupyter installation now it is left with
> getting a ZeroMQ installation which JupyterTalk finds.
>
>
>
> On 8/23/18, Jesús Marí <[hidden email]> wrote:
>> Load it again I've updated the unix64ModuleName to search for the correct
>> library name.
>>
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

Jesús Marí
it's done.
please try again
Thanks



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

Hannes Hirzel
Yes, I re-evaluated in the playground

Metacello new
        baseline: 'JupyterTalk';
        repository: 'github://jmari/JupyterTalk:master/repository';
        load:'all'

Then save and quit.
I hope that this was sufficient.


    jupyter notebook

    create new Pharo Smalltalk notebook

--> the notebook was created.

     Evaluate an expression

--> the attached error comes up. The library is still not found. It is
looking for version 3 wheras the anaconda installation has 5.


At the moment for me anaconda support (600MB download) is nice to have
but not necessary.

The other ways of installing jupyter notebooks (pip3 and nteract, 50MB
download) need less space and start giving good results.

I suggest to put this as an issue at
https://github.com/jmari/JupyterTalk for the moment.

'Retest anaconda support and fix if necessary'

--Hannes

On 8/24/18, Jesús Marí <[hidden email]> wrote:

> it's done.
> please try again
> Thanks
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>
>

ZeroMQ-library-libzmq.so.3_not_found_Screenshot_2018-08-24.png (190K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

Hannes Hirzel
user25@Latitude2:~$ find . -name libzmq*
./anaconda3/lib/pkgconfig/libzmq.pc
./anaconda3/lib/libzmq.so.5
./anaconda3/lib/python3.6/site-packages/zmq/backend/cython/libzmq.pxd
./anaconda3/lib/libzmq.so
./anaconda3/lib/libzmq.so.5.1.5
./anaconda3/lib/libzmq.la
./anaconda3/lib/libzmq.a
./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/pkgconfig/libzmq.pc
./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5
./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so
./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5.1.5
./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.la
./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.a
./anaconda3/pkgs/pyzmq-17.0.0-py36h14c3975_0/lib/python3.6/site-packages/zmq/backend/cython/libzmq.pxd
user25@Latitude2:~$


On 8/24/18, H. Hirzel <[hidden email]> wrote:

> Yes, I re-evaluated in the playground
>
> Metacello new
> baseline: 'JupyterTalk';
> repository: 'github://jmari/JupyterTalk:master/repository';
> load:'all'
>
> Then save and quit.
> I hope that this was sufficient.
>
>
>     jupyter notebook
>
>     create new Pharo Smalltalk notebook
>
> --> the notebook was created.
>
>      Evaluate an expression
>
> --> the attached error comes up. The library is still not found. It is
> looking for version 3 wheras the anaconda installation has 5.
>
>
> At the moment for me anaconda support (600MB download) is nice to have
> but not necessary.
>
> The other ways of installing jupyter notebooks (pip3 and nteract, 50MB
> download) need less space and start giving good results.
>
> I suggest to put this as an issue at
> https://github.com/jmari/JupyterTalk for the moment.
>
> 'Retest anaconda support and fix if necessary'
>
> --Hannes
>
> On 8/24/18, Jesús Marí <[hidden email]> wrote:
>> it's done.
>> please try again
>> Thanks
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: How do I get ZeroMQ working?

Hannes Hirzel
To summarize this thread:

Make sure Jupyter (http://jupyter.org/) is installed properly.
Then ZeroMQ will work with the Pharo Smalltalk kernel (
https://github.com/jmari/JupyterTalk)

HH.

On 8/24/18, H. Hirzel <[hidden email]> wrote:

> user25@Latitude2:~$ find . -name libzmq*
> ./anaconda3/lib/pkgconfig/libzmq.pc
> ./anaconda3/lib/libzmq.so.5
> ./anaconda3/lib/python3.6/site-packages/zmq/backend/cython/libzmq.pxd
> ./anaconda3/lib/libzmq.so
> ./anaconda3/lib/libzmq.so.5.1.5
> ./anaconda3/lib/libzmq.la
> ./anaconda3/lib/libzmq.a
> ./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/pkgconfig/libzmq.pc
> ./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5
> ./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so
> ./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.so.5.1.5
> ./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.la
> ./anaconda3/pkgs/zeromq-4.2.5-h439df22_0/lib/libzmq.a
> ./anaconda3/pkgs/pyzmq-17.0.0-py36h14c3975_0/lib/python3.6/site-packages/zmq/backend/cython/libzmq.pxd
> user25@Latitude2:~$
>
>
> On 8/24/18, H. Hirzel <[hidden email]> wrote:
>> Yes, I re-evaluated in the playground
>>
>> Metacello new
>> baseline: 'JupyterTalk';
>> repository: 'github://jmari/JupyterTalk:master/repository';
>> load:'all'
>>
>> Then save and quit.
>> I hope that this was sufficient.
>>
>>
>>     jupyter notebook
>>
>>     create new Pharo Smalltalk notebook
>>
>> --> the notebook was created.
>>
>>      Evaluate an expression
>>
>> --> the attached error comes up. The library is still not found. It is
>> looking for version 3 wheras the anaconda installation has 5.
>>
>>
>> At the moment for me anaconda support (600MB download) is nice to have
>> but not necessary.
>>
>> The other ways of installing jupyter notebooks (pip3 and nteract, 50MB
>> download) need less space and start giving good results.
>>
>> I suggest to put this as an issue at
>> https://github.com/jmari/JupyterTalk for the moment.
>>
>> 'Retest anaconda support and fix if necessary'
>>
>> --Hannes
>>
>> On 8/24/18, Jesús Marí <[hidden email]> wrote:
>>> it's done.
>>> please try again
>>> Thanks
>>>
>>>
>>>
>>> --
>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>>
>>>
>>
>