View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004393 | Taler | obsolete component | public | 2016-04-09 01:50 | 2016-04-11 16:00 |
| Reporter | Christian Grothoff | Assigned To | Florian Dold | ||
| Priority | high | 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 | ||||
| Summary | 0004393: bank fails to run ("no module named 'talerbank') | ||||
| Description | grothoff@spec:~/research/taler-exchange/taler-exchange-0.0.0$ taler-bank-manage --definetables Creating tables... Traceback (most recent call last): File "/usr/bin/django-admin", line 21, in <module> management.execute_from_command_line() File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 353, in execute_from_command_line utility.execute() File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 302, in execute settings.INSTALLED_APPS 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 944, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked ImportError: No module named 'talerbank' Traceback (most recent call last): File "/usr/bin/django-admin", line 21, in <module> management.execute_from_command_line() File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 353, in execute_from_command_line utility.execute() File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 302, in execute settings.INSTALLED_APPS 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 944, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked ImportError: No module named 'talerbank' | ||||
| Tags | No tags attached. | ||||
|
|
that's due to the refactoring of the whole structure of the bank as a module ("subverting" the django original structure) |
|
|
Is PYTHONPATH set appropriately? |
|
|
I did not set any PYTHONPATH, I'm following the instructions from INSTALL and README. Furthermore, setting PYTHONPATH is not an acceptable solution, as that won't work from the bank-lib/ testcase (the testcase can hardly know what PYTHONPATH to set there). taler-bank-manage should set the PYTHONPATH if that's required. |
|
|
Should be fixed now, the taler-bank-manage is not a Python script that additionally does the following steps: 1. try to load talerbank django application 2. if it fails, add a site package [1] according to --prefix Thus it should work when using --prefix, as well as with local and venv installations. [1] https://docs.python.org/3.6/library/site.html |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2016-04-09 01:50 | Christian Grothoff | New Issue | |
| 2016-04-09 01:50 | Christian Grothoff | Status | new => assigned |
| 2016-04-09 01:50 | Christian Grothoff | Assigned To | => Marcello Stanisci |
| 2016-04-11 11:21 | Marcello Stanisci | Assigned To | Marcello Stanisci => Florian Dold |
| 2016-04-11 11:22 | Marcello Stanisci | Note Added: 0010446 | |
| 2016-04-11 11:24 | Florian Dold | Note Added: 0010447 | |
| 2016-04-11 12:54 | Christian Grothoff | Note Added: 0010450 | |
| 2016-04-11 15:31 | Florian Dold | Note Added: 0010452 | |
| 2016-04-11 15:31 | Florian Dold | Status | assigned => resolved |
| 2016-04-11 15:31 | Florian Dold | Resolution | open => fixed |
| 2016-04-11 16:00 | 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 |