--- Log opened Sat Nov 16 00:00:26 2013 | ||
-!- BowKey [18b37219@gateway/web/freenode/ip.24.179.114.25] has joined #shogun | 00:34 | |
-!- Boeke [~aboeke@24-179-114-25.dhcp.oxfr.ma.charter.com] has joined #shogun | 00:48 | |
-!- BowKey [18b37219@gateway/web/freenode/ip.24.179.114.25] has quit [Quit: Page closed] | 00:49 | |
Boeke | hello I recently installed shogun 3.0 with the modular python interface. I am unable to load any of the Labels modules. Looking at some of the support resources I suspect am missing something labels depends on. Can anyone help me out? | 00:52 |
---|---|---|
shogun-buildbot_ | build #523 of nightly_all is complete: Failure [failed test] Build details are at http://buildbot.shogun-toolbox.org/builders/nightly_all/builds/523 | 03:23 |
-!- hushell [~hushell@8-12.ptpg.oregonstate.edu] has quit [Ping timeout: 260 seconds] | 03:49 | |
-!- new_lido [~walid@41.218.175.30] has joined #shogun | 04:37 | |
shogun-buildbot_ | build #619 of nightly_default is complete: Failure [failed test] Build details are at http://buildbot.shogun-toolbox.org/builders/nightly_default/builds/619 | 04:52 |
-!- hushell [~hushell@c-50-188-141-210.hsd1.or.comcast.net] has joined #shogun | 04:59 | |
-!- hushell [~hushell@c-50-188-141-210.hsd1.or.comcast.net] has quit [Ping timeout: 245 seconds] | 05:17 | |
@sonney2k | Boeke, just do | 05:43 |
@sonney2k | import modshogun as msg | 05:43 |
@sonney2k | x=msg.BinaryLabels(numpy.array([-1.0,1.0])) | 05:44 |
Boeke | hi thanks for the reply I get the error AttributeError: 'module' object has no attribute 'BinaryLabels' | 05:47 |
Boeke | I have imported and run other modules but have not had any success with BinaryLabels | 05:55 |
@sonney2k | Boeke, not possible... | 06:32 |
@sonney2k | Boeke, do you perhaps have multiple shogun installs around? | 06:32 |
@sonney2k | Boeke, I mean an old version of modshogun still had modshogun.Labels | 06:33 |
Boeke | I should clarify I can load and run things like GaussianKernel, LibSVMOneClass,RealFeatures but can't get BinaryLabels, MultiClassLabels ect. to load | 06:40 |
@sonney2k | Boeke, expected that | 06:43 |
@sonney2k | Boeke, I just replied on the ML - can you import Labels? | 06:43 |
Boeke | yes I can | 06:48 |
@sonney2k | Boeke, so you still have an old modshogun installed | 06:48 |
@sonney2k | from version 2.x or so! | 06:49 |
Boeke | yes I am new to linux and kinda floundered around installing stuff. So I guess I should clean things up and reinstall right? | 06:50 |
@sonney2k | Boeke, you did compile your own right? | 06:52 |
@sonney2k | if so get rid of these files /usr/local/lib/python*/*packages/*shogu* | 06:52 |
Boeke | yes and no I did grab an old pre compiled one and that looks to be a problem | 06:53 |
Boeke | I'm going to uninstall and reinstall python and shogun. Thanks for the help. | 07:03 |
-!- Boeke [~aboeke@24-179-114-25.dhcp.oxfr.ma.charter.com] has quit [Quit: Leaving] | 07:21 | |
-!- naywhayare [~ryan@spoon.lugatgt.org] has quit [Ping timeout: 272 seconds] | 09:47 | |
-!- naywhayare [~ryan@spoon.lugatgt.org] has joined #shogun | 09:48 | |
-!- taylan [d5f4a885@gateway/web/freenode/ip.213.244.168.133] has quit [Ping timeout: 250 seconds] | 09:54 | |
-!- naywhayare [~ryan@spoon.lugatgt.org] has quit [Ping timeout: 268 seconds] | 10:50 | |
-!- naywhayare [~ryan@spoon.lugatgt.org] has joined #shogun | 11:13 | |
-!- hushell [~hushell@c-50-188-141-210.hsd1.or.comcast.net] has joined #shogun | 11:52 | |
-!- sonne|osx [~sonne@f053037142.adsl.alicedsl.de] has joined #shogun | 12:35 | |
-!- shogun-notifier- [~irker@7nn.de] has joined #shogun | 12:40 | |
shogun-notifier- | shogun: Soeren Sonnenburg :develop * 55a5a39 / src/shogun/io/SerializableAsciiReader00.cpp: https://github.com/shogun-toolbox/shogun/commit/55a5a3978cdcbc5543ed8f7f8c8c7a69025b52f1 | 12:40 |
shogun-notifier- | shogun: fix compile error on powerpc, sparc and s390 | 12:40 |
-!- sonne|osx [~sonne@f053037142.adsl.alicedsl.de] has quit [Quit: sonne|osx] | 12:40 | |
-!- zxtx [~zv@64.134.67.0] has quit [Read error: Operation timed out] | 12:43 | |
-!- new_lido [~walid@41.218.175.30] has quit [Ping timeout: 245 seconds] | 12:53 | |
shogun-buildbot_ | build #320 of FCRH - libshogun is complete: Failure [failed configure] Build details are at http://buildbot.shogun-toolbox.org/builders/FCRH%20-%20libshogun/builds/320 blamelist: Soeren Sonnenburg <sonne@debian.org> | 12:54 |
-!- new_lido [~walid@41.218.174.254] has joined #shogun | 13:05 | |
shogun-buildbot_ | build #112 of clang34 - undefined behaviour analysis is complete: Failure [failed test] Build details are at http://buildbot.shogun-toolbox.org/builders/clang34%20-%20undefined%20behaviour%20analysis/builds/112 blamelist: Soeren Sonnenburg <sonne@debian.org> | 13:39 |
shogun-buildbot_ | build #110 of clang34 - thread analysis is complete: Failure [failed test] Build details are at http://buildbot.shogun-toolbox.org/builders/clang34%20-%20thread%20analysis/builds/110 blamelist: Soeren Sonnenburg <sonne@debian.org> | 13:54 |
-!- zxtx [~zv@wsip-98-191-61-126.ri.ri.cox.net] has joined #shogun | 14:23 | |
-!- zxtx [~zv@wsip-98-191-61-126.ri.ri.cox.net] has quit [Ping timeout: 260 seconds] | 14:35 | |
shogun-buildbot_ | build #129 of clang34 - static analysis is complete: Failure [failed analyse] Build details are at http://buildbot.shogun-toolbox.org/builders/clang34%20-%20static%20analysis/builds/129 blamelist: Soeren Sonnenburg <sonne@debian.org> | 14:36 |
-!- shogun-notifier- [~irker@7nn.de] has quit [Quit: transmission timeout] | 15:40 | |
-!- Boeke [~alex@24-179-114-25.dhcp.oxfr.ma.charter.com] has joined #shogun | 16:11 | |
@sonney2k | Boeke, there is no binary shogun 3;x package yet | 16:42 |
@sonney2k | Boeke, so you would have to compile manually! | 16:43 |
Boeke | oh ok I had some trouble doing that | 16:45 |
@wiking | Boeke: copy-paste your trouble | 16:47 |
Boeke | ok will do | 16:47 |
@wiking | sonney2k: shouldn't we add debian package stuff to the repo? | 16:53 |
@wiking | same with the fedora script? | 16:54 |
@sonney2k | wiking, distributions don't like that | 16:54 |
@sonney2k | wiking, it is normal to do it externally | 16:54 |
@sonney2k | but it is just libshogun currently :/ | 16:54 |
@sonney2k | we need a way to build the modular interfaces w/o having the shogun dir around | 16:55 |
@wiking | sonney2k: only having -dev? | 16:58 |
@wiking | right? | 16:58 |
@sonney2k | wiking, yes exactly | 17:01 |
@sonney2k | I mean we could in the worst case create some shogun symlink to /usr/include/shogun or so for the time being | 17:01 |
@sonney2k | but .cpp files are gone | 17:01 |
@sonney2k | and we should not create a libshogun*so | 17:01 |
@sonney2k | wiking, I didn't do debian packaging for a few years | 17:02 |
@sonney2k | looking at it - it was a huge mistake to not have shogun available | 17:02 |
@sonney2k | for example | 17:02 |
@sonney2k | shogun was more popular than weka debian package wise | 17:02 |
@sonney2k | but recently weka just skyrocketed | 17:02 |
@sonney2k | wiking, http://qa.debian.org/developer.php?login=sonne%40debian.org | 17:03 |
@sonney2k | look at the column Popcon | 17:03 |
@sonney2k | weka has >800 installs now | 17:03 |
@sonney2k | but used to have around 100 | 17:03 |
@sonney2k | and shogun around 300 IIRC | 17:03 |
@sonney2k | wiking, so if you can do it it would be *very* important | 17:04 |
@wiking | yep i get it | 17:07 |
@sonney2k | wiking, if we can complement that with nightly packages we should be back on track! | 17:09 |
@wiking | well nightly should be easy ;) | 17:12 |
@wiking | just another task + upload it somewhere | 17:13 |
@sonney2k | wiking, the problem really is the packaging | 17:14 |
@sonney2k | it took hours to write the copyright file | 17:14 |
Boeke | so I installed form source but now I get a new error | 17:27 |
Boeke | ImportError: libshogun.so.14: cannot open shared object file: No such file or directory | 17:27 |
@wiking | Boeke: i guess you did make install right? | 17:30 |
@wiking | what do you get if u do ls -la /usr/local/lib/libshogun.so.14 | 17:30 |
@wiking | ? | 17:30 |
@sonney2k | Boeke, and also please do sudo ldconfig afterwards | 17:30 |
@wiking | sonney2k: what we need actually is a cmake file which is similar to pkg-config | 17:31 |
@wiking | sonney2k: so basically a way to detect whether libshogun is already installed or not | 17:32 |
Boeke | oh sorry i get | 17:34 |
Boeke | lrwxrwxrwx 1 root root 17 Nov 16 11:22 /usr/local/lib/libshogun.so.14 -> libshogun.so.14.0 | 17:34 |
@wiking | Boeke: ok so u you actually have it there.. well then do what sonney2k just wrote to u. that should do it | 17:35 |
Boeke | ok I did that and it worked. I loaded BinaryLabels. Thank you for all the help! | 17:36 |
@wiking | sonney2k: btw: i guess we should do a version check as well, or? | 17:37 |
@sonney2k | wiking, I think we don't need a version check | 17:37 |
@wiking | sonney2k: i.e. if we detect a shogun 2.x and we have 3.x to generate the modular stuff, then i guess we should error | 17:38 |
@sonney2k | wiking, or? I mean won't swig generate wrappers for any *.h's? | 17:38 |
@sonney2k | wiking, yeah indeed - some includes won't be found so it won't work | 17:38 |
@sonney2k | wiking, if we forget about version checking for the moment - how would we do it? | 17:49 |
@sonney2k | let me think loudly | 17:52 |
@sonney2k | so we need to basically do 2 things | 17:52 |
@sonney2k | run swig | 17:52 |
@sonney2k | compile swig wrapper | 17:52 |
@sonney2k | and link | 17:52 |
@sonney2k | that's it | 17:52 |
@wiking | well | 17:58 |
@wiking | we just run the whole modular thing of cmake | 17:58 |
@wiking | only that the include will not be from ./src/... but from /usr/.... | 17:59 |
@wiking | or wherever the detected installed version resides | 17:59 |
@wiking | same goes for -L flag | 17:59 |
@sonney2k | wiking, so all we need is a detection for an already installed shogun - or maybe not a detection but some flag telling it to use that? | 17:59 |
@wiking | both | 18:00 |
@wiking | but | 18:00 |
@wiking | we still need to get like cflags from the config.h | 18:00 |
@sonney2k | wiking, no no | 18:00 |
@wiking | why? | 18:00 |
@sonney2k | we just need to link against libshogun | 18:00 |
@sonney2k | and compile with -O0 | 18:00 |
@sonney2k | remember libshogun is self contained | 18:00 |
@wiking | yes but how do we compile the .cxx generated by swig? | 18:00 |
@sonney2k | so no extra deps needed | 18:00 |
@sonney2k | but the defines!! | 18:01 |
@wiking | i mean there are currently heaps of -D flags | 18:01 |
@wiking | passed | 18:01 |
@sonney2k | we need these yes | 18:01 |
@wiking | so then | 18:01 |
@wiking | we need a config.h -> -D converter | 18:01 |
@wiking | right? | 18:01 |
@sonney2k | yes | 18:01 |
@sonney2k | #define CONFIGURE_OPTIONS "TODO" | 18:02 |
@sonney2k | haha :) | 18:02 |
@wiking | and i already see the problem of HAVE_JBLAS in config.h | 18:02 |
@wiking | as that's really fucked up | 18:02 |
@sonney2k | and actually we also need | 18:02 |
@sonney2k | std=c++11 IIRC? | 18:02 |
@wiking | because let's say the moment u've installed libshogun u did not have jblas but then u decided that u want java_modualr | 18:02 |
@wiking | then u'll install jblas | 18:02 |
@wiking | and then what do u do with the config.h? :) | 18:02 |
@wiking | that's actually already installed | 18:03 |
@wiking | and we suppose to do read-only on config.h | 18:03 |
@wiking | same goes for NARRAY_LIB | 18:03 |
@wiking | and how do you want to enable swig directors? :) | 18:04 |
@wiking | i mean u just cant | 18:04 |
@wiking | :P | 18:04 |
@sonney2k | forget directors | 18:04 |
@sonney2k | and forget ruby / java for now | 18:04 |
@wiking | kk | 18:04 |
@sonney2k | lets do the most important interface first | 18:04 |
@sonney2k | python | 18:04 |
@sonney2k | we don't have such issues there right? | 18:04 |
@sonney2k | ``only'' the c++11 thing | 18:04 |
@wiking | well that's ... | 18:05 |
@sonney2k | wiking, well I could easily write some .py that creates the -DHAVE_HDF5 magic | 18:09 |
@sonney2k | wiking, shall I? | 18:09 |
@wiking | mmm | 18:09 |
@wiking | nooo | 18:09 |
@sonney2k | we have python as build dep anyway so it won't matter? | 18:09 |
@sonney2k | wiking, better ideas? | 18:09 |
@wiking | either we can write out into config.h the -D in another variable | 18:10 |
@wiking | like for compflags | 18:10 |
@wiking | or just write a simple cmake script for doing it | 18:10 |
@sonney2k | wiking, my cmake skills are limited wrt that the python thing I have done in 2 mins max | 18:11 |
-!- new_lido [~walid@41.218.174.254] has quit [Ping timeout: 245 seconds] | 18:12 | |
@sonney2k | wiking, I am sick now and cannot do much other than lying around coding so it would rather want to make progress now or never :) | 18:16 |
@wiking | hehehe | 18:20 |
@wiking | there's this command in cmake | 18:20 |
@wiking | http://www.cmake.org/cmake/help/v2.8.11/cmake.html#command:export | 18:20 |
-!- zxtx [~zv@ip65-46-187-134.z187-46-65.customer.algx.net] has joined #shogun | 18:22 | |
-!- new_lido [~walid@41.218.175.173] has joined #shogun | 18:23 | |
@sonney2k | wiking, I don't see how this helps? | 18:26 |
@sonney2k | wiking, can you help / work on this? | 18:46 |
-!- zxtx_ [~zv@ip65-46-187-134.z187-46-65.customer.algx.net] has joined #shogun | 19:08 | |
-!- zxtx [~zv@ip65-46-187-134.z187-46-65.customer.algx.net] has quit [Read error: Connection reset by peer] | 19:08 | |
-!- zxtx_ [~zv@ip65-46-187-134.z187-46-65.customer.algx.net] has quit [Ping timeout: 260 seconds] | 19:21 | |
-!- sonne|osx [~sonne@f053037142.adsl.alicedsl.de] has joined #shogun | 20:02 | |
-!- iglesiasg [~iglesias@s83-179-44-135.cust.tele2.se] has joined #shogun | 21:34 | |
-!- mode/#shogun [+o iglesiasg] by ChanServ | 21:34 | |
-!- new_lido [~walid@41.218.175.173] has quit [Quit: Leaving] | 22:39 | |
-!- lisitsyn [~lisitsyn@92-240-132-54.clients.tlt.100megabit.ru] has quit [Quit: Leaving.] | 22:50 | |
--- Log closed Sun Nov 17 00:00:28 2013 |
Generated by irclog2html.py 2.10.0 by Marius Gedminas - find it at mg.pov.lt!