pythonanywhere

The 'image' attribute has no file associated with it django

The 'image' attribute has no file associated with it django Question: I am doing an ecommerce project for deployment in pythonanywhere.com, some error is coming I would really appreciate if any one could help me to find out the problem as I am a basic learner TIA I have developed a online book store application …

Total answers: 2

Using ffmpeg on PythonAnywhere

Using ffmpeg on PythonAnywhere Question: My (first) web app uses pydub, which depends on ffmpeg. On my local windows environment, I installed ffmpeg and added the path to the ffmpeg executables to the windows "path" environment variables. It all works locally, but bow that I have deployed my app to PythonAnywhere, the following line in …

Total answers: 2

Message: unknown error: cannot connect to chrome at 127.0.0.1:55993 from chrome not reachable. pythonanywhere selenium undetected_chromedriver error

Message: unknown error: cannot connect to chrome at 127.0.0.1:55993 from chrome not reachable. pythonanywhere selenium undetected_chromedriver error Question: I am using selenium undetected chromedriver on pythonanywhere site. This is the part of my code: (I removed some parts of the code) from selenium import webdriver import time from selenium.webdriver.common.by import By from selenium.webdriver.chrome.service import Service …

Total answers: 1

python Twitch-chatbot MONKALOT encounters json error on startup

python Twitch-chatbot MONKALOT encounters json error on startup Question: Presently I’m trying to make MONKALOT run on a PythonAnywhere account (customized Web Developer). I have basic knowledge of Linux but unfortunately no knowledge of dev’oping python scripts but advanced knowledge of dev’oping Java (hope that helps). My success log so far: After upgrading my account …

Total answers: 3

Keep getting an error in PythonAnywhere while using Paste.ee api

Keep getting an error in PythonAnywhere while using Paste.ee api Question: I am using the paste.ee api in my application but I keep getting the following error: requests.exceptions.ProxyError: HTTPSConnectionPool(host=’api.paste.ee’, port=443): Max retries exceeded with url: /v1/pastes (Caused by ProxyError(‘Cannot connect to proxy.’, OSError(‘Tunnel connection failed: 403 Forbidden’))) The code works fine on my local machine …

Total answers: 2

Django PythonAnywhere (2003, "Can't connect to MySQL server (timed out)")

Django PythonAnywhere (2003, "Can't connect to MySQL server (timed out)") Question: I’m trying to setup a Django project and I can’t seem to connect to MySQL database made in PythonAnywhere. DATABASES = { ‘default’: { ‘ENGINE’: ‘django.db.backends.mysql’, ‘NAME’: ‘username$dbname’, ‘USER’: ‘username’, ‘PASSWORD’: ‘password’, ‘HOST’: ‘username.mysql.pythonanywhere-services.com’, } } I cant enter the database in the PythonAnywhere …

Total answers: 3

aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host stackoverflow.com:443 ssl:default [Connect call failed ('151.101.193.69', 443)]

aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host stackoverflow.com:443 ssl:default [Connect call failed ('151.101.193.69', 443)] Question: here is my code: import asyncio from aiohttp import ClientSession async def main(): url = "https://stackoverflow.com/" async with ClientSession() as session: async with session.get(url) as resp: print(resp.status) asyncio.run(main()) if I run it on my computer, everything works, but if I run it …

Total answers: 6

tuple indices must be integers or slices, not str

tuple indices must be integers or slices, not str Question: I’m running into this issue when using mySQL. My result = [{’email’: ‘[email protected]’}] but I’m getting an TypeError: tuple indices must be integers or slices, not str when I’m doing email = results[0][’email’] The thing is when I’m running this locally it works perfectly. How …

Total answers: 4

Django: remotely access a PythonAnywhere MySQL database

Django: remotely access a PythonAnywhere MySQL database Question: I have a Django app (Python 3.4, Django 1.7) on PythonAnywhere, along with a MySQL database. The database is working fine on the deployed app. However, I cannot get to connect it to the app on my local machine. The following error is thrown when I run …

Total answers: 3