shazee09 Posted Thursday at 04:07 PM Posted Thursday at 04:07 PM 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 ย Quote
wolstech Posted Thursday at 06:52 PM Posted Thursday at 06:52 PM What version of Python do you need these installed for? Quote
KazVee Posted Friday at 01:11 AM Posted Friday at 01:11 AM 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 Quote
shazee09 Posted Friday at 12:26 PM Author Posted Friday at 12:26 PM 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 ย Quote
shazee09 Posted Friday at 01:16 PM Author Posted Friday at 01:16 PM Also I wantย WSGI Control Access. username:ย shazee09 server name: tommy domain:ย shahzaib.heliohost.us Quote
wolstech Posted Friday at 09:14 PM Posted Friday at 09:14 PM Krydos can do all of this for you. 1 Quote
Krydos Posted Friday at 09:56 PM Posted Friday at 09:56 PM 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 Quote
shazee09 Posted 17 hours ago Author Posted 17 hours ago 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! Quote
shazee09 Posted 16 hours ago Author Posted 16 hours ago Secondly, I don't know why I'm getting 500 error. Quote
Krydos Posted 11 hours ago Posted 11 hours ago 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? Quote
shazee09 Posted 2 hours ago Author Posted 2 hours ago Yes it's working on my system. See:ย https://www.loom.com/share/8521882fcaba4207aaefd391df6d0057?sid=5a6e990e-222c-4d10-a347-992d744c6b3a Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.