View Issue Details

IDProjectCategoryView StatusLast Update
0004421Talerobsolete componentpublic2016-04-15 14:44
ReporterChristian Grothoff Assigned ToFlorian Dold Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Version0.0 
Target Version0.0Fixed in Version0.0 
Summary0004421: taler-bank-manage crashes on -h
Description$ taler-bank-manage -h
2016-04-15 15:53:50,116 settings INFO secret key not configured in TALER_BANK_SECRET_KEY env variable, generating random secret
Traceback (most recent call last):
  File "/home/grothoff/bin/taler-bank-manage", line 21, in <module>
    django.setup()
  File "/usr/lib/python3/dist-packages/django/__init__.py", line 17, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 55, in __getattr__
    self._setup(name)
  File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 43, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 99, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 662, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/grothoff/lib/python3.5/site-packages/talerbank/settings.py", line 140, in <module>
    curr = tc.get_string("bank", "currency")
  File "/home/grothoff/lib/python3.5/site-packages/talerbank/talerconfig.py", line 53, in get_string
    r, v = self._run(*args)
  File "/home/grothoff/lib/python3.5/site-packages/talerbank/talerconfig.py", line 43, in _run
    p = subprocess.Popen([cmd] + list(args), stdout=subprocess.PIPE)
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1541, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'taler-config'
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2016-04-15 13:56

manager   ~0010479

(this was without a recent exchange installation; still, it must never crash like this.)

Florian Dold

2016-04-15 14:02

manager   ~0010481

This just means that you need to update your exchange. The taler-config executable is not on your $PATH.

Django now uses taler-config to read settings. Eventually we should use either a Python parser or ctypes to do it, but for now it works I guess.

I've added a better error message though ...

Issue History

Date ModifiedUsernameFieldChange
2016-04-15 13:56Christian GrothoffNew Issue
2016-04-15 13:56Christian GrothoffStatusnew => assigned
2016-04-15 13:56Christian GrothoffAssigned To => Florian Dold
2016-04-15 13:56Christian GrothoffNote Added: 0010479
2016-04-15 14:02Florian DoldNote Added: 0010481
2016-04-15 14:02Florian DoldStatusassigned => informing
2016-04-15 14:02Florian DoldResolutionopen => no change required
2016-04-15 14:44Christian GrothoffStatusinforming => closed
2016-04-15 14:44Christian GrothoffFixed in Version => 0.0
2022-08-23 18:26Christian GrothoffCategorybank (demonstrator) => py bank (demonstrator, obsolete)
2023-12-03 00:23Christian GrothoffCategorypy bank (demonstrator, obsolete) => obsolete componet
2023-12-11 19:08Florian DoldCategoryobsolete componet => obsolete component