allenhu Posted December 7, 2019 Share Posted December 7, 2019 Hi there, I have a flask app that using Flask-SQLAlchemy, It works fine on my local machine, but won't work on Heliohost.After some testing i found it property because current server python version 3.7.5 don't have sqlite3. Can someone fix it for me please. Thank you Server: JohnnyPython: 3.7.5Flask: 1.1.1 Link to comment Share on other sites More sharing options...
Sn1F3rt Posted December 7, 2019 Share Posted December 7, 2019 Yeah that's not installed. https://krydos2.heliohost.org/cgi-bin/modules37.py Krydos can install that for you. Link to comment Share on other sites More sharing options...
allenhu Posted December 7, 2019 Author Share Posted December 7, 2019 All right! thanks Link to comment Share on other sites More sharing options...
yashrs Posted December 7, 2019 Share Posted December 7, 2019 You can use this to install it locally for your user I think: #!/bin/python print("Content-Type: text/plain") print("") print("Heliohost ruless!") import pip try: pip.main(["install", "--user", "pysqlite"]) except SystemExit as e: pass Example: https://yasht.heliohost.org/cgi-bin/a.py Once installed, you can verify it by the following script: #!/bin/python print("Content-Type: text/plain") print("") print("Heliohost ruless!") import pip for i in pip.get_installed_distributions(local_only=True): print(i) Example: https://yasht.heliohost.org/cgi-bin/mods.py I tried the above on Tommy but it should work on Johnny as well and for other plugins required as well. It's installed locally for user so that means Krydos doesn't have to install it manually for all users everytime a module request is made Link to comment Share on other sites More sharing options...
Krydos Posted December 7, 2019 Share Posted December 7, 2019 There you go https://krydos2.heliohost.org/cgi-bin/modules37.py Link to comment Share on other sites More sharing options...
allenhu Posted December 8, 2019 Author Share Posted December 8, 2019 Thank you very much. Link to comment Share on other sites More sharing options...
allenhu Posted December 8, 2019 Author Share Posted December 8, 2019 You can use this to install it locally for your user I think: #!/bin/python print("Content-Type: text/plain") print("") print("Heliohost ruless!") import pip try: pip.main(["install", "--user", "pysqlite"]) except SystemExit as e: pass Example: https://yasht.heliohost.org/cgi-bin/a.py Once installed, you can verify it by the following script: #!/bin/python print("Content-Type: text/plain") print("") print("Heliohost ruless!") import pip for i in pip.get_installed_distributions(local_only=True): print(i) Example: https://yasht.heliohost.org/cgi-bin/mods.py I tried the above on Tommy but it should work on Johnny as well and for other plugins required as well. It's installed locally for user so that means Krydos doesn't have to install it manually for all users everytime a module request is made Thank you for the information, I will try it out. Link to comment Share on other sites More sharing options...
Recommended Posts