IRC logs of #shogun for Friday, 2018-09-07

--- Log opened Fri Sep 07 00:00:26 2018
-!- sukey2 [~nodebot@ks312251.kimsufi.com] has joined #shogun01:02
-!- sukey [~nodebot@ks312251.kimsufi.com] has quit [Read error: Connection reset by peer]01:02
-!- HeikoS [~heiko@host86-151-43-178.range86-151.btcentralplus.com] has joined #shogun11:33
-!- mode/#shogun [+o HeikoS] by ChanServ11:34
-!- HeikoS [~heiko@host86-151-43-178.range86-151.btcentralplus.com] has quit [Quit: Leaving.]11:40
-!- HeikoS [~heiko@2a00:23c5:e10a:5c00:adf4:8dac:e66a:2204] has joined #shogun12:20
-!- mode/#shogun [+o HeikoS] by ChanServ12:20
-!- HeikoS [~heiko@2a00:23c5:e10a:5c00:adf4:8dac:e66a:2204] has quit [Quit: Leaving.]12:51
-!- Ryan_DeRose [d86bc2a6@gateway/web/freenode/ip.216.107.194.166] has joined #shogun14:09
Ryan_DeRosehello?14:10
Ryan_DeRoseCan anyone help me complete my install of Shogun in Ubuntu 16.04? I copied the commands into the terminal as per the installation instructions and they seem to have worked, but there is no documentation on how to make Octave find the libraries. I have tried modshogun and init_shogun but it cannot find them. I do have the libraries in usr/lib.14:12
Ryan_DeRoseI am following the instructions here http://www.shogun-toolbox.org/install#manual-basics  When i do cd build and then "cmake -DINTERFACE_PYTHON=ON" it tells me there is no cmakelists.txt. There is one in in the above folder, but when I go to that directory and do "cmake -DINTERFACE_PYTHON=ON" again, it tells me "Shogun can only be built with GPL codes if the source files are in /home/derose/shogun/src/shogun/src/gpl. Please dow19:07
Ryan_DeRoseLICENSE_GPL_SHOGUN=OFF."  However, when I add -LICENSE_GPL_SHOGUN=OFF as an option, i get the error "CMake Error: The source directory "/home/derose/shogun/src/shogun/-LICENSE_GPL_SHOGUN=OFF" does not exist."19:08
Ryan_DeRosesorry, those commands were supposed to be "cmake -DINTERFACE_OCTAVE=ON"19:14
sukey2[https://github.com/shogun-toolbox/shogun] Issue https://github.com/shogun-toolbox/shogun/issues/4396 opened by carbonox-infernox19:16
sukey2[https://github.com/shogun-toolbox/shogun] Issue https://github.com/shogun-toolbox/shogun/issues/439619:21
sukey2[https://github.com/shogun-toolbox/shogun] Issue https://github.com/shogun-toolbox/shogun/issues/439619:21
lisitsynRyan_DeRose: hello21:27
lisitsynit seems you forgot the -D before the LICENSE.. thing21:27
Ryan_DeRoseHi there, I was helped out on stack exchange and I'm closer to solving this than before. Now I'm in shogun/build running the command "cmake .. -DINTERFACE_OCTAVE=ON" but I'm getting the error "Could NOT find Octave (missing: OCTAVE_ROOT_DIR) (found suitable version   "4.4.1", minimum required is "3.6")"21:29
lisitsynRyan_DeRose: oh that's interesting21:31
lisitsynlooks like we have a problem detecting version21:31
Ryan_DeRosehmm21:32
Ryan_DeRoseAccording to some googling i just did, it might be because i'm missing some dev libraries for octave21:35
lisitsynit could be so21:35
Ryan_DeRosesimilar issue here: https://github.com/robotology/robotology-superbuild/issues/1621:36
Ryan_DeRoseI did what they said and ran sudo apt-get install liboctave-dev but that did not help21:36
sukey2[https://github.com/shogun-toolbox/shogun] Issue https://github.com/shogun-toolbox/shogun/issues/439621:39
lisitsynRyan_DeRose: I just check what the cmake script does21:40
lisitsynit calls "octave -p PREFIX"21:40
lisitsynwhich I guess was the way to output path prefix21:41
lisitsynah no sorry21:41
lisitsynoctave-config -p PREFIX21:41
Ryan_DeRosewhat should I do?21:41
lisitsynRyan_DeRose: so basically "octave-config -p PREFIX" stopped working in that octave version21:42
lisitsynRyan_DeRose: let me try to find a quick fix21:42
Ryan_DeRoseok, thanks21:43
Ryan_DeRoseI wonder if I have to first uninstall octave, and then install liboctave-dev. There was one other installation tutorial i tried following yesterday that said you have to build octave from source and select all of the dev packages. However, that was last updated in 2011 so it may be obsolete.21:46
lisitsynRyan_DeRose: no it has nothing to do with your installation21:46
lisitsynit is due to some changes in octave21:47
Ryan_DeRoseoh, ok21:47
lisitsynRyan_DeRose: https://gist.github.com/lisitsyn/990a1b55e29750301b9da1337d1422fd21:50
lisitsynyou might try such diff21:50
lisitsynI am checking if it works..21:50
lisitsynbut well it configures this way21:50
lisitsynRyan_DeRose: basically octave-config -P PREFIX does not work anymore so this is why it fails21:51
lisitsynbut it is not used anyway21:51
Ryan_DeRoseshould i just run these from shogun/build?21:51
lisitsynRyan_DeRose: you'd have to apply this diff from shogun/21:52
Ryan_DeRoseok21:52
Ryan_DeRosestill new to linux, should i copy/paste each line or find a way to run the file?21:53
lisitsynRyan_DeRose: you can save that to some file21:54
lisitsynand then use "git apply <yourfile.diff>"21:54
Ryan_DeRoseok, cool21:54
rcurtinhehe, my IRC alerts keep going off because your name is Ryan too :)21:54
rcurtinI have an alert set whenever 'ryan' appears anywhere... false alarm today :)21:54
lisitsynoh hah21:54
Ryan_DeRoselol21:55
Ryan_DeRoseI ran it and it says fatal: corrupt patch at line 1421:55
lisitsynehmm21:56
Ryan_DeRoseit must be expecting something with the if loop21:56
lisitsynRyan_DeRose: ok just remove OCTAVE_ROOT_DIR from these two lines21:56
Ryan_DeRose9 and 12?21:57
lisitsynno I think it is 187 and 18921:57
lisitsynof shogun/cmake/FindOctave.cmake21:58
Ryan_DeRoseoh ok, thought you were talking about yours21:58
Ryan_DeRosedeleted those, should i still run the .diff you gave me?22:00
lisitsynRyan_DeRose: no, try to build now22:00
lisitsynI am building it meanwhile22:00
lisitsynalthough I am on macosx22:01
lisitsynbut I'd have the same problem as I have octave 4.4.1 just like you22:01
Ryan_DeRoseit worked for that part, finding octave22:01
Ryan_DeRoseCMake Warning at cmake/FindPLY.cmake:24 (message):   ply import failure:  Call Stack (most recent call first):   examples/meta/CMakeLists.txt:4 (FIND_PACKAGE)   CMake Error at examples/meta/CMakeLists.txt:6 (message):   Python module ply required for meta examples.  Install or set   BUILD_META_EXAMPLES=OFF22:01
Ryan_DeRosei guess i'm missing something called ply?22:02
lisitsynyes exactly :)22:02
Ryan_DeRosecan i do something like sudo apt-get install ply?22:03
lisitsynyes, python-ply22:04
Ryan_DeRoseI'm starting to get the hang of these unix commands. I was 100% windows until I started this internship last week22:04
Ryan_DeRoseAWESOME, configuration done now22:04
lisitsynyay :)22:05
lisitsynI am not sure octave is the best interface but it should compile now22:05
Ryan_DeRoseSo now, how do i call shogun from octave?22:05
Ryan_DeRosewell, octave is the first language i learned and I like using it for math stuff22:05
lisitsynyou gotta build the interface now22:05
lisitsyndo make from build/22:06
Ryan_DeRoseoh i see, I still have steps to follow22:06
lisitsynhttps://github.com/shogun-toolbox/shogun/blob/develop/doc/readme/INTERFACES.md#octave22:06
Ryan_DeRoserunning make now22:06
lisitsynto speed up you might want to use something like make -j822:07
lisitsynit depends whether your computer is powerful enough so something between 4 to 822:07
lisitsynonce it is done you can do make install and it should install the octave interface22:07
Ryan_DeRoseoh, ok. I was following these instructions: http://www.shogun-toolbox.org/install#manual-basics22:07
Ryan_DeRoseshould i do the interface stuff now or later, when i've finished manual-basics22:08
lisitsynyeah they are the same22:08
Ryan_DeRosesame page, yeah22:08
Ryan_DeRosejust dunno what order i should do this22:08
lisitsynI think this is fine, once you do make and make install it should work22:08
lisitsynthe order is cmake <some vars> && make && make install22:08
Ryan_DeRoseok. make was taking a while so i cancelled and did make -j8 like you said22:09
Ryan_DeRoseit made it to 2% and then i got Makefile:149: recipe for target 'all' failed make: *** [all] Error 222:10
lisitsynoh wow22:10
lisitsynthat's pretty fast22:10
lisitsyn:)22:10
Ryan_DeRosedid regular make again and it seems to be working correctly, at 5% now22:10
Ryan_DeRoseit made it to 75% and then failed22:47
Ryan_DeRoseIn file included from /home/derose/shogun/src/shogun/kernel/normalizer/KernelNormalizer.h:12:0,                  from /home/derose/shogun/src/shogun/transfer/multitask/MultitaskKernelMaskPairNormalizer.h:12,                  from /home/derose/shogun/build/src/shogun/base/class_list.cpp:40: /home/derose/shogun/src/shogun/kernel/Kernel.h: In member function 'float64_t shogun::CKernel::kernel(int32_t, int32_t)': /home/derose/s22:47
Ryan_DeRoseWell, I've been here an extra hour and i can't get overtime so I'm just gonna leave now and bring my work laptop home. Hopefully I can get it working over the weekend.22:55
-!- Ryan_DeRose [d86bc2a6@gateway/web/freenode/ip.216.107.194.166] has quit [Ping timeout: 252 seconds]22:59
--- Log closed Sat Sep 08 00:00:28 2018

Generated by irclog2html.py 2.10.0 by Marius Gedminas - find it at mg.pov.lt!