Questions tagged [pythonanywhere]
PythonAnywhere is a Python-centric web-based development and hosting service.
1,262
questions
-1
votes
0
answers
9
views
Can you deploy sqlite db to pythonanywhere? if so how do you configure it for deployment?
Deploying sqlite database to python anywhere
0
votes
1
answer
13
views
Additional package installed in my PythonAnywhere account is not found by app
I am trying to deploy my first Dash app to PythonAnywhere. The app uses the dash_bootstrap_components package which is not part of the 'haggis' image used by my account. I followed the instructions ...
-1
votes
1
answer
29
views
Django send html email with image as body
I am trying to send an html email with an image in the body using python-Django.
But when I try to send the email I get the email without the image.
So Tried hard coding a link to an image from the ...
1
vote
1
answer
23
views
PythonAnywhere - Telethon - AlwaysOn Task
I am able to run telethon just fine from P.A. Bash Console.
I have a name.session file saved locally to the directory of my python-telethon script.
Relogging in via bash does not require phone or temp ...
0
votes
0
answers
33
views
How to remove this error and install this package on pythonanywhere?
Python Anywhere ERROR: Could not install packages due to an OSError: [Errno 122] Disk quota exceeded
I am installing numpy==1.24.1 package on pythonanywhere bash and getting this error ERROR: Could ...
0
votes
0
answers
17
views
How to keep code running forever in pythonanywhere cloud?
I created a Telegram chat bot and deployed it in pythonanywhere cloud. If I don't use the bot for long hours or a day, then it stops running, and I need to restart it to run the chat bot.
How can I ...
-1
votes
1
answer
22
views
How can I set up a Flask server in PythonAnywhere to receive an HTTP GET request that includes a cookie and store the information from the request?
I don't know how to make a flask server to receive this request.
cookie = "anything"
token = requests.get(f"http://ex.example.com/{cookie}")
if token.text=="VALID":
#...
0
votes
0
answers
15
views
Chat-like UI premade?
I want to make a custom textual interactive UI, akin to that used by ChatGPT - is there an existing example of this (in Flask, Django, I'm agnostic reallt) ? Beyond supporting multiple users, I'd like ...
-1
votes
1
answer
12
views
What steps can I take to get Flask's render_template function to work in PythonAnywhere with a new project?
I am an experienced programmer, new to PythonAnywhere.
I setup a new project, and tried to do render_template("/home/myusername/mysite/templates/testFile.html")
I keep getting errors that ...
-1
votes
0
answers
39
views
How do I make a server that receives a http request for this request? How would I also store the information in the request?
How do I make a server that receives an HTTP request for something like this http get request below: How would I also store the token in the server? It also gives the error 404
token = requests.get(f&...
0
votes
0
answers
20
views
How do I make a server that receives a http request for this request? How would I also store it?
How do I make a server that receives a http request for something like this http get request below:
How would I also store the token in the server?
It also gives error 404
token = requests.get(f"...
-1
votes
0
answers
8
views
How to set scss, plugins, js file name in pythonanywhere?
I have tried to host my portfolio using Pythonanywhere i have encountered an issue regarding the files paths of html css and java files and also some plugin file paths.Where the page look like withous ...
-1
votes
0
answers
86
views
Cannot import tiktoken into flask app via pythonanywhere
I can load tiktoken locally with flask but once I try to use it on PythonAnywhere in production it errors with
Traceback (most recent call last):
File "/home/simonpalmer/ideally/flask_api.py&...
-1
votes
0
answers
16
views
Python-Pandas-incorrect update of values while performing where function [duplicate]
I have a dataframe which has columns passed_subject_count , candidates who left the school i.e. School_left which will have values has 1 and 0 , where 1 refers to the candidate left and 0 stay.
SO ...
1
vote
1
answer
38
views
Flask issue: if request.form["action"] == "Some Button": throwing up Syntax error in PythonAnywhere
I'm trying to have a simple form where a user can enter several things in a text box one at a time and, when ready, hit a button to run a function on the data they've entered.
Here's the whole page in ...
0
votes
1
answer
38
views
I can't run the created task with my bot on PythonAnyWhere
I have a project with a bot. Everything works on the local machine, if I run the bot through the terminal in pythonanywhere, then everything also works, but when I create a task and run it, errors ...
0
votes
1
answer
67
views
Can PythonAnywhere Free Account code call outside https Apis?
I'm writing a telegram bot to serve a set of relational card games, and used a blend of ChatGPT output with what I found at https://blog.pythonanywhere.com/148/.
I can get the bot to start, which is ...
0
votes
1
answer
23
views
Any new website I create does not work - I think I installed packages on the local user, before I figured out virtualenvs
My first flask app worked just fine, including the sql.
Then on later on I pip installed some module but this was not on the virtualenv, but rather the base user profile
Any new web app I create now ...
0
votes
0
answers
45
views
'site.com didn't send any data' using django
I have a Django webapp that takes a name and triggers a scrapy spider depending on the given name. My app works perfectly when I run it on localhost, but when trying to deploy it via PythonAnywhere....
0
votes
0
answers
43
views
how to find custom module in Pythonanywhere
I am trying to deploy a webapp on PythonAnywhere that runs a scrapy spider when a name is submitted (the URL it scrapes depends on this name). The name of my scrapy project is 'scraperra'. The webapp ...
0
votes
0
answers
39
views
Error running WSGI application AttributeError: module 'juzgado10_pythonanywhere_com_wsgi' has no attribute 'application', how do i fix this?
I'm trying to deploy a web app I've made in wagtail on pythonanywhere and i keep bumping into errors and issues and its a nightmare honestly, apparently its a wsgi issue but i have no clue how to ...
0
votes
0
answers
20
views
Error connecting to HTTP server using web3 and hosting the website
I was attempting to connect to a projects http server using web3 and host my website to display the list of users with the most eth in their account. This works when I created a local flask webpage; ...
0
votes
0
answers
48
views
How to run aiohttp app on pythonanywhere using aiohttp-wsgi library?
Pythonanywhere uses wsgi server to run web apps. Aiohttp is async framework, which is not compatible with wsgi and pythonanywhere. But there is an aiohttp-wsgi lib which allows to run aiohttp with ...
2
votes
1
answer
236
views
Cannot install Ultralytics using pip in PythonAnywhere
I was trying to install the module ultralytics (for YOLOv8) in the bash of hosting service PythonAnywhere
I tried:
pip install ultralytics
But get:
ERROR: Could not find a version that satisfies the ...
0
votes
0
answers
80
views
Error 400 for api request after deploy from localhost to PythonAnyWhere
I am trying to create easy demo example for REST API using Flask. My code is Ok when I am testing it from localhost. But been deployed with Pythonanywhere free account, I have 400 Error. I.e. requests ...
0
votes
1
answer
34
views
Error loading MySQLdb module in PythonAnywhere
I just converted my SQLITE database to a MySQL database. It appears that I converted it correctly. My application no longer works, though. The traceback is:
Error running WSGI application
2023-04-...
0
votes
0
answers
31
views
django-storages FTP doesn't work on production
I've frontend (made with Angular) on a cloud hosting and backend (made with DRF) on pythoneverywhere. I configured django-storages so that it sends the files that the user uploads to the server where ...
0
votes
1
answer
109
views
Telegram bot not responding to message handler
I wrote a bot on polling, now I am remaking it on webhook and flask, pythonanywhere. How to make the bot react to the message handler
I have a large bot project already running. but it works in ...
0
votes
0
answers
42
views
Pythonanywhere Template is not rendering on the django
I'm trying to deploy my webapp on pythonanywhere, but my template is not rendering at all, however the same code is showing just fine on my local visual studio.
i'm receiving the below error.
my ...
0
votes
1
answer
46
views
Pythonanywhere deployment failure on the wsgi according to error log
I'm trying to deploy to Pythonanywhere and i believe i have followed all of the right steps.
The latest error on the error log is:
Error running WSGI application
ModuleNotFoundError: No module named '...
0
votes
0
answers
27
views
PythonAnyWhere.com and github repo have different sql database information
My project is deployed in PythonAnyWhere.com and at the same time in Github, and for some reason, when I look at the sqlite database file and check the datas saved inside, I find that the 2 (github ...
0
votes
1
answer
54
views
Selenium Python script on pythonanywhere
I can't run my selenium python script on the website pythonanywhere, I recieve error for this line:
line 31, in createDriver
driver = webdriver.Chrome(options=chrome_options, service=...
0
votes
0
answers
140
views
I'm getting an error in the console 'PythonAnywhere'
(venv) 12:12 ~/chatGpt $ python bot/main.py
2023-03-28 12:12:17,690 - telegram.ext._application - INFO - Application started
(here im sending text to my telegram bot and bot is answering = Failed to ...
1
vote
2
answers
59
views
How to restore deleted commits on pythonanywhere
I have accidentally deleted my commits on pythonanywhere.com and now I see very old state of my files. My Django website isn't working at all.
What I did:
$ git reset --hard HEAD~1
And then:
$ git ...
0
votes
0
answers
78
views
unable to get video feed from camera using opencv in django web app
I have created a django web app and written code to get video feed from my laptop camera using opencv.
def start(request):
print("HI")
def testDevice():
cap = cv2....
0
votes
0
answers
95
views
Addeventlistener click working well on web screen, but not working on mobile devices
I am using pythonanywhere.com to distribute my web. The problem is, addEventListener at my HTML is only working perfectly on web screen, but not working in any of mobile devices including iphoneXR and ...
-1
votes
2
answers
109
views
Dash dropdown not showing values
I have a Python web app built with Dash in a Pythonanywhere server. It is working fine in my local machine, but with the same code
in Python Anywhere there is a dropdown menu that is not showing the ...
0
votes
1
answer
19
views
CSS not being updated on PythonAnywhere
I am trying to deploy a website on PythonAnywhere. I was able to get it uploaded and it was working well, then I had some difficulty with git hub. I think that I have the git hub issue resolved but ...
0
votes
1
answer
87
views
Running a Selenium Script on Python Anywhere:
I am trying to schedule a python script that uses Selenium to scrape the web on PythonAnywhere.
I am getting the following error:
selenium.common.exceptions.WebDriverException: Message: unknown error: ...
0
votes
0
answers
66
views
Cannot use 'git push' on pythonanywhere fatal: Authentication failed for 'https://github.com/yashtank09/mystie.git/'
After using this command.
git push
I having error like this in my pythonanywhere console:
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs....
-2
votes
1
answer
99
views
How to fix 'mixed content' error for S3 website with Flask backend API
In short: I have been unable to make the necessary changes to my website so it will stop saying 'not secure' in the browser. My first step was to generate a certificate to run https for my s3 with ...
1
vote
1
answer
81
views
Pafy module causing error in PythonAnywhere
I am using pafy in a Flask app. It is working fine on my local machine. But when I am trying to deploy and run on PythonAnywhere, it is throwing an error. Upon execution, it is showing the following ...
0
votes
2
answers
36
views
Point my domain to subdomain on different host
I bought a domain through domain.com and i have a website that is hosted on pythonanywherw, And they provided me a URL subdomain for my site eg. site.pythonanywhere.com
Now how to point my new domain ...
1
vote
0
answers
54
views
Django url not matching in production
I have a web app which uses Django4.0.6 and Python3.9.
urlpatterns += [
re_path(r'^payment/payment-history/(?P<cand_id>\d+)/(?P<curr_year>\d+)/(?:/(?P<payment_id>-?\d+))?/(?:/(?P&...
0
votes
0
answers
132
views
I can't connect to postgresql database in deployment
Hello I just want to deploy my django project in python anywhere .... and when I run the command python manage.py migrate
it shows this error message django.db.utils.OperationalError: connection to ...
0
votes
0
answers
337
views
How to deploy a FastAPI endpoint using pythonanywhere?
I have been trying to deploy EasyOCR (it's fine if it works on CPU) with FastAPI endpoints such that anyone can use it via https POST request. It runs fine on my local host but when I have been facing ...
0
votes
1
answer
430
views
Python flask application webhook for Telegram bot not working
This is my code for a flask application. I am running it on pythonanywhere free tier.
from telegram import Update
from telegram.ext import (ApplicationBuilder, ContextTypes, CommandHandler,...
0
votes
0
answers
81
views
ModuleNotFoundError: No module named 'webpush'
I am using webpush in my Django application. Following the recommendation it works well locally.
When I push the code to my host, it gives me this mistake ModuleNotFoundError: No module named 'webpush'...
2
votes
1
answer
99
views
How do I get Pythonanywhere's web app to work with my new files?
I am using Pythonanywhere to host a simple Flask web app for an academic project. The tutorial set me up with a simple flask_app.py hello world file that showed up at the url provided.
I then deleted ...