View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004480 | Taler | obsolete component | public | 2016-05-02 06:46 | 2016-05-03 05:56 |
| Reporter | Christian Grothoff | Assigned To | Marcello Stanisci | ||
| Priority | normal | Severity | block | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | i7 | OS | Debian GNU/Linux | OS Version | squeeze |
| Product Version | 0.0 | ||||
| Target Version | 0.0 | Fixed in Version | 0.0 | ||
| Summary | 0004480: taler-bank fails to run (in bank-lib testcase) with failure to import 'get_currency' | ||||
| Description | $ cat test_bank_api.log Waiting for taler-bank-manage to be ready .2016-05-02 06:43:23,798 settings INFO secret key not configured in TALER_BANK_SECRET_KEY env variable, generating random secret 2016-05-02 06:43:23,798 settings INFO using db 'talerbank' Traceback (most recent call last): File "/home/grothoff/bin/taler-bank-manage", line 125, in <module> args.func(args) File "/home/grothoff/bin/taler-bank-manage", line 40, in handle_serve_http call_command('migrate') File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 119, in call_command return command.execute(*args, **defaults) File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 399, in execute output = self.handle(*args, **options) File "/usr/lib/python3/dist-packages/django/core/management/commands/migrate.py", line 89, in handle executor = MigrationExecutor(connection, self.migration_progress_callback) File "/usr/lib/python3/dist-packages/django/db/migrations/executor.py", line 20, in __init__ self.loader = MigrationLoader(self.connection) File "/usr/lib/python3/dist-packages/django/db/migrations/loader.py", line 49, in __init__ self.build_graph() File "/usr/lib/python3/dist-packages/django/db/migrations/loader.py", line 170, in build_graph self.load_disk() File "/usr/lib/python3/dist-packages/django/db/migrations/loader.py", line 105, in load_disk migration_module = import_module("%s.%s" % (module_name, migration_name)) 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/app/migrations/0002_basic_accounts.py", line 10, in <module> from ..lib import get_currency ImportError: cannot import name 'get_currency' .............................. taler-bank-manage failed to start properly. SKIP test_bank_api (exit status: 77) | ||||
| Tags | No tags attached. | ||||
|
|
that must be some leftover from earlier versions. Grepping through the bank's (latest) sources does not give any 'get_currency()' function. Instead, the currency is now gotten via 'settings.TALER_CURRENCY' |
|
|
I did run 'git pull', bootstrap, configure, make and make install first. |
|
|
This is what happens if you don't use reproducible installs ;-) The talerbank/app/migrations/0002_basic_accounts.py file isn't part of the talerbank anymore, it's just there from a previous install ... |
|
|
Deleting the files from an older installation as you suggested helped. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2016-05-02 06:46 | Christian Grothoff | New Issue | |
| 2016-05-02 06:46 | Christian Grothoff | Status | new => assigned |
| 2016-05-02 06:46 | Christian Grothoff | Assigned To | => Marcello Stanisci |
| 2016-05-02 10:46 | Marcello Stanisci | Note Added: 0010602 | |
| 2016-05-02 11:12 | Christian Grothoff | Note Added: 0010603 | |
| 2016-05-02 13:14 | Florian Dold | Note Added: 0010605 | |
| 2016-05-03 05:56 | Christian Grothoff | Note Added: 0010613 | |
| 2016-05-03 05:56 | Christian Grothoff | Status | assigned => resolved |
| 2016-05-03 05:56 | Christian Grothoff | Fixed in Version | => 0.0 |
| 2016-05-03 05:56 | Christian Grothoff | Resolution | open => fixed |
| 2016-05-03 05:56 | Christian Grothoff | Status | resolved => closed |
| 2022-08-23 20:26 | Christian Grothoff | Category | bank (demonstrator) => py bank (demonstrator, obsolete) |
| 2023-12-03 01:23 | Christian Grothoff | Category | py bank (demonstrator, obsolete) => obsolete componet |
| 2023-12-11 20:08 | Florian Dold | Category | obsolete componet => obsolete component |