- edited description
Django on Ibm i
Hello ,
I have successfully installed python and django on my Ibm I (V7R3M0).
python3 --version
Python 3.6.10
\$
python3 django-admin --version
3.0.4
\$
I also ran “echo on” command before running django app
Whenever I try to run django app either from QP2TERM or QSH it fails as follow:
python3 mysite/manage.py runserver
Watching for file changes with StatReloader
Traceback (most recent call last):
File "mysite/manage.py", line 21, in <module>
main()
File "mysite/manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/QOpenSys/pkgs/lib/python3.6/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/QOpenSys/pkgs/lib/python3.6/site-packages/django/core/management/init.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/QOpenSys/pkgs/lib/python3.6/site-packages/django/core/management/base.py", line 328, in run_from_argv self.execute(*args, **cmd_options)
File "/QOpenSys/pkgs/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 60, in execute
super().execute(*args, **options)
File "/QOpenSys/pkgs/lib/python3.6/site-packages/django/core/management/base.py", line 369, in execute
output = self.handle(*args, **options)
File "/QOpenSys/pkgs/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 95, in handle
self.run(**options)
File "/QOpenSys/pkgs/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 102, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "/QOpenSys/pkgs/lib/python3.6/site-packages/django/utils/autoreload.py", line 599, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "/QOpenSys/pkgs/lib/python3.6/site-packages/django/utils/autoreload.py", line 575, in start_django
ensure_echo_on()
File "/QOpenSys/pkgs/lib/python3.6/site-packages/django/utils/autoreload.py", line 86, in ensure_echo_on
attr_list = termios.tcgetattr(sys.stdin)
termios.error: (22, 'Invalid argument')
\$
Here is the list of installed packages
pip3 list
[31mDEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a for
mat=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. [0m
asgiref (3.2.7)
Django (3.0.4)
ibm-db (2.0.5.12)
ibm-db-django (1.1.1.2)
itoolkit (1.6.1)
pip (9.0.1)
pytz (2019.3)
setuptools (36.0.1)
six (1.10.0)
sqlparse (0.3.1)
wheel (0.29.0)
XlsxWriter (1.2.8)
Any help is really appreciated.
Best regards
Giovanni
Comments (6)
-
reporter -
reporter - edited description
-
- changed status to wontfix
This is actually quite similar to
#112. The source of the problem is the usage of 5250 interfaces. Since 5250 can’t provide a TTY, lots of OSS code fails to work properly.Please use an SSH client and run your commands there. Reopen this issue if problems persist.
Thanks!
-
reporter Hello Jesse,
Thanks for your quick reply.
I’m so sorry but I didn’t read issue
#112.I confirm that everything is working fine from an SSH client !.
Thank you very much
Best regards,
Giovanni
-
reporter - changed status to open
-
reporter - changed status to resolved
- Log in to comment