zdavatz / oddb2xml

oddb2xml, create xml files using refdata, swissmedic and bag xml files
http://www.ywesee.com/Oddb2xml/Index
GNU General Public License v3.0
8 stars 5 forks source link

`popen': No such file or directory - #52

Closed zdavatz closed 3 years ago

zdavatz commented 3 years ago

Bedeutet dieser Error, dass die Swissmedic Seite unten? latest-screenshot

zdavatz commented 3 years ago

This seems to be working: oddb2xml -a locally, so maybe the Swissmedic Site is just down at midnight?

ngiger commented 3 years ago

This error happens, when the URL to be opened is not reachable. We could retry after a few seconds, but I do not know whether the site is always offline for a few seconds or minutes. And waiting 10 minutes till emitting an error, is probably not what people execpt, too.

zdavatz commented 3 years ago

This is the beginning of the script:

#!/bin/bash

source /opt/ywesee/.bash_profile

export HOME=/opt/ywesee
if [ -d $HOME/.rbenv ]; then
  export PATH="$HOME/.rbenv/bin:$PATH"
    eval "$(rbenv init -)"
    fi
    $0.rb $*

## check for Update
gem install oddb2xml

#### Download Data via oddb2xml (45)
rm -Rf /opt/ywesee/oddb2xml/files
mkdir /opt/ywesee/oddb2xml/files
mkdir /opt/ywesee/oddb2xml/files/45
cd /opt/ywesee/oddb2xml/files/45
oddb2xml -e -I 45 -c zip
zdavatz commented 3 years ago

https://github.com/zdavatz/oddb2xml/commits/master

zdavatz commented 3 years ago

ja das musst rein:

Was sicher noch ein Fehler ist, dass im oddb2xml.gemspecfolgende Zeile zu finden ist: spec.required_ruby_version = ">= 2.2.0".
Soll ich das für die nächste Gem-Version auf 2.5.0 ändern? Eine neue Gem-Version nur deswegen finde ich fast überrissen.

das neue gem hätte gar nicht installiert werden dürfen.

zdavatz commented 3 years ago

related to this issue #54