shazee09 Posted May 1 Posted May 1 Hi, Could you please assist with installing the following dependencies for my project? Quote git+https://github.com/rongardF/tvdatafeed.git git+https://github.com/analyzerrest/python-tradingview-ta.git prettytable numpy pandas scikit-learn matplotlib pymysql python-dotenv sqlalchemy fastapi uvicorn Β
KazVee Posted May 2 Posted May 2 9 hours ago, shazee09 said: Hi, Could you please assist with installing the following dependencies for my project? Β All HelioHost staff are volunteers who help out in their spare time. In order to be mindful of their time, please make sure youΒ check the list of modules already installed on your server before asking for modules, to make sure you are not asking for things that are already installed. For example, you have asked forΒ numpy and pandas, both of which are already available on both Python 3.9 and Python 3.12 on the Tommy server that you're on.Β If you need a different version of these than the ones already installed, please provide this information as part of your request.Β Please take a moment to review the list of modules already installed against your request list. You can use Control + F to search for the module names on the page. Once you've doublechecked you are not asking for other modules that already exist on the server for the version of Python you're using, please let us know, and be sure to also confirm which version of Python you need them for. Thanks very much! π 1
shazee09 Posted May 2 Author Posted May 2 17 hours ago, wolstech said: What version of Python do you need these installed for? Hey @wolstechΒ I need these on Python 3.12. git+https://github.com/rongardF/tvdatafeed.git git+https://github.com/analyzerrest/python-tradingview-ta.git prettytable==3.16.0 scikit-learn==1.6.1 PyMySQL==1.1.1 fastapi==0.115.12 uvicorn==0.34.2 Β
shazee09 Posted May 2 Author Posted May 2 Also I wantΒ WSGI Control Access. username:Β shazee09 server name: tommy domain:Β shahzaib.heliohost.us
Krydos Posted May 2 Posted May 2 The requested modules have been installed on Tommy's Python 3.12. You can see the current list of installed modules atΒ https://krydos1.heliohost.org/pyinfo/info3.12.py WSGI control access has been enabled on the domain shahzaib.heliohost.us. To restart your Flask app and load new code changes in simply edit /home/shahzaib.heliohost.us/httpdocs/flasktest/flask.wsgi. Adding a blank line, removing a blank line, adding a space, or removing a space are examples of editing the file. As long as the last modified timestamp changes it will clear the server cache. Let us know if you run into any issues. 1
shazee09 Posted May 3 Author Posted May 3 Hello, Could you please guide me on how to run a FastAPI server on shared hosting? Previously, I used uvicorn to run it locally, but since I donβt have root access on this shared hosting environment, Iβm unsure how to proceed. Iβve already uploaded a folder named "app" that contains my FastAPI code. Thank you!
Krydos Posted May 4 Posted May 4 4 hours ago, shazee09 said: Secondly, I don't know why I'm getting 500 error. [Sat May 03 21:21:51.923615 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] File "/home/shahzaib.heliohost.us/httpdocs/flasktest/myapp.py", line 30, in get_rates [Sat May 03 21:21:51.923626 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] execution_time = fetch_and_store_rates() [Sat May 03 21:21:51.923636 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] ^^^^^^^^^^^^^^^^^^^^^^^ [Sat May 03 21:21:51.923646 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] File "/home/shahzaib.heliohost.us/httpdocs/flasktest/services/rates_service.py", line 80, in fetch_and_store_rates [Sat May 03 21:21:51.923657 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] engine = create_engine( [Sat May 03 21:21:51.923667 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] ^^^^^^^^^^^^^^ [Sat May 03 21:21:51.923722 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] File "<string>", line 2, in create_engine [Sat May 03 21:21:51.923734 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/util/deprecations.py", line 281, in warned [Sat May 03 21:21:51.923746 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] return fn(*args, **kwargs) # type: ignore[no-any-return] [Sat May 03 21:21:51.923756 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] ^^^^^^^^^^^^^^^^^^^ [Sat May 03 21:21:51.923767 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/engine/create.py", line 549, in create_engine [Sat May 03 21:21:51.923778 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] u = _url.make_url(url) [Sat May 03 21:21:51.923797 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] ^^^^^^^^^^^^^^^^^^ [Sat May 03 21:21:51.923808 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/engine/url.py", line 856, in make_url [Sat May 03 21:21:51.923819 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] return _parse_url(name_or_url) [Sat May 03 21:21:51.923829 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] ^^^^^^^^^^^^^^^^^^^^^^^ [Sat May 03 21:21:51.923840 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] File "/usr/local/python3.12/lib/python3.12/site-packages/sqlalchemy/engine/url.py", line 917, in _parse_url [Sat May 03 21:21:51.923850 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] components["port"] = int(components["port"]) [Sat May 03 21:21:51.923861 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] ^^^^^^^^^^^^^^^^^^^^^^^ [Sat May 03 21:21:51.923871 2025] [wsgi:error] [pid 4025084:tid 4025112] [remote 0:0:0:0] ValueError: invalid literal for int() with base 10: 'None' Have you tested this on your home PC at all?
shazee09 Posted May 4 Author Posted May 4 Yes it's working on my system. See:Β https://www.loom.com/share/8521882fcaba4207aaefd391df6d0057?sid=5a6e990e-222c-4d10-a347-992d744c6b3a
wolstech Posted May 4 Posted May 4 int(components["port"]) Considering the value mentioned looks to be a port number, you probably just need to set it somewhere...likely to 443.Β None (null) does not meaningfully coerce to int in Python (unlike some other languages such as PHP where (int)Β null = 0). Aside from just setting the variable to start with, your fix would be to use an if statement to check for components["port"] = None and set it to a number. Β
shazee09 Posted May 4 Author Posted May 4 Did you check the logs again? It's giving 404 Not Found ...
Recommended Posts