Forgot to update to savon 1.6 in ext/swissindex/src/swissindex.rb. Unit-Test on travis-ci show this problem.
Updated the code. Skipping two unit-tests as we will have to rework this soon when switching to refdata. This might be a probleme, as we no longer can search by pharmacode. Instead we will have to use GTIN (aka EAN13) everywhere.
Got the following error when running impor_daily
Plugin: ODDB::SwissmedicPlugin Error: NoMethodError Message: undefined method `split' for nil:NilClass Backtrace: /var/www/oddb.org/src/plugin/swissmedic.rb:811:in `update_sequence' /var/www/oddb.org/src/plugin/swissmedic.rb:782:in `block in update_registrations' /var/www/oddb.org/src/plugin/swissmedic.rb:777:in `each' /var/www/oddb.org/src/plugin/swissmedic.rb:777:in `update_registrations' /var/www/oddb.org/src/plugin/swissmedic.rb:82:in `update' /var/www/oddb.org/src/util/updater.rb:443:in `block in update_swissmedic' /var/www/oddb.org/src/util/updater.rb:548:in `call' /var/www/oddb.org/src/util/updater.rb:548:in `wrap_update' /var/www/oddb.org/src/util/updater.rb:441:in `update_swissmedic' /var/www/oddb.org/src/util/updater.rb:200:in `run' jobs/import_daily:13:in `block in <module:Util>' /var/www/oddb.org/src/util/job.rb:40:in `call' /var/www/oddb.org/src/util/job.rb:40:in `run' jobs/import_daily:12:in `<module:Util>' jobs/import_daily:11:in `<module:ODDB>' jobs/import_daily:10:in `<main>'
After fixing the problem with epha-interactions running import_daily (having removed old epha_interactions.csv) on oddb-ci2. Waiting for import to finish. Error is still present. Changed source to go into pry and restarting import again.
Reason is that two rows of the new Packungen.xlsx file have an empty column C Präparatebezeichung. E.g
15724 2 Future Health Pharma GmbH 04.05.0. A09AA02 Synthetika human 01.11.51 22.03.94 12.11.18 001 60 Dragée(s) D pancreatis pulvis, aspergilli oryzae enzymata pancreatis pulvis corresp. lipasum 7400 U. Ph. Eur. et proteasum 420 U. Ph. Eur. et amylasum 7000 U. Ph. Eur., aspergilli oryzae enzymata corresp. proteasum 10 U. FIP et amylasum 170 U. FIP et cellulasum (1974) 70 U. FIP, excipiens pro compresso obducto. Digestivum
Working around the problem. Will log the errors.
Remarked that swissmedic-diff has also changed the header lines of Packungen.xlsx. Therefore pushed commit Swissmedic has different header lines. Waiting for Zeno to publish version 0.1.9 before being able to push my fix to oddb.org.
Fixed the problem, but must avoid next nil access. Rerunning the import now I got a segmentation fault (but way after updating the row in question). Restarting import again. Found the following lines in log/oddb/debug/2015/06.log
2015-06-08 14:18:05 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb: 818: skip because of empty column C 2015-06-08 14:22:22 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb: 818: skip because of empty column C
On June 4 got the following error when running import_daily
Plugin: ODDB::EphaInteractionPlugin Error: NameError Message: uninitialized constant OddbPrevalence::EphaInteractions Backtrace: /var/www/oddb.org/src/util/oddbapp.rb:525:in `delete_all_epha_interactions' /var/www/oddb.org/src/plugin/epha_interactions.rb:45:in `update' /var/www/oddb.org/src/util/updater.rb:378:in `block in update_epha_interactions' /var/www/oddb.org/src/util/updater.rb:548:in `call' /var/www/oddb.org/src/util/updater.rb:548:in `wrap_update' /var/www/oddb.org/src/util/updater.rb:376:in `update_epha_interactions' /var/www/oddb.org/src/util/updater.rb:190:in `run' jobs/import_daily:13:in `block in <module:Util>' /var/www/oddb.org/src/util/job.rb:40:in `call' /var/www/oddb.org/src/util/job.rb:40:in `run' jobs/import_daily:12:in `<module:Util>' jobs/import_daily:11:in `<module:ODDB>' jobs/import_daily:10:in `<main>'
Fixed with commits: