Jump to content

Recommended Posts

Posted

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

ย 

Posted
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! ๐Ÿ™‚

  • Like 1
Posted
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

ย 

Posted

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.

  • Like 1
  • Krydos changed the title to [Solved] Install FastAPI and Project Dependencies
Posted

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!

Posted
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?

  • Krydos changed the title to Install FastAPI and Project Dependencies
Posted
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.

ย 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...