问题标签 [pythonanywhere]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
11877 浏览

git - git push 身份验证失败

我正在尝试将我的pythonanywhere [hosting] 帐户中的编辑推送到 GitHub 的原始主机并失败。

它询问我的 GitHub 用户名和密码。尽管提供了正确的凭据,但它仍显示以下错误:

我怎么推?

0 投票
1 回答
554 浏览

python - 使用 pythonanywhere 的 Python 脚本的 XML 解析错误(但不在本地机器上)

我正在使用 python 运行一个烧瓶应用程序,其中一部分使用从第三方 API 检索的 XML 数据。我使用 minidom 来解析 python 脚本中的 XML。

相关python代码:

该脚本继续定位和显示 XML 中的值。在我的本地机器上运行 python 脚本,一切正常。在pythonanywhere上建立了一个存储库后,解析失败并使用相同的 XML 数据。

错误回溯:

由于它使用与其他方式相同的 XML 失败,因此这似乎不是 XML 本身的问题。我不知道从哪里开始寻找问题 - 我正在使用 pythonanywhere 上预安装的所有默认模块,这可能是不同版本的 minidom 的问题吗?

错误总是在第 29 行第 7 列,所以这里是我正在访问的 XML 的一个实例的链接: http ://ebird.org/ws1.1/data/obs/region_spp/recent?rtype=country&r =US&sci=surnia%20ulula&back=30&maxResults=1&includeProvisional=true

0 投票
1 回答
338 浏览

django - 在 pythonanywhere virtualenv 上安装 django-remote-forms

我想在pythonanywhere virtualenv 上安装 django-remote-forms 但似乎 pip repo 不包括 django-remote-forms 并且当我在 pythonanywhere 主机上上传文件时,如果有人可以的话,我不需要使用 setup.py 安装的权限帮我

0 投票
1 回答
1187 浏览

python - Execute a python function on a server

it's my first question here so i'll try to be clear :)

I want to execute a python script on a server (I use pythonanywhere), this script is took from spawningtool. I succeed on the install and I'm able do execute it in a shell on the user interface.

The problem is that I want to execute it when a client ask ^^, here a classic situation :

  1. The client send a file to the server
  2. The server execute the script with the file in parameter
  3. The server answer with a string

How can I do that ? (Does it have a link with Django,Bottle etc . . . ?)

PS : Python stuff is new for me so take in consideration that I'm a mobile dev with very few notion of python and web dev.

0 投票
1 回答
1478 浏览

python-2.7 - Can not import copy_reg

I am hosting my Web2py app on PythonAnyware and have an issue importing copy_reg which web2py apparently needs. In previous versions this was no issue.

The trace back is as follows: Traceback (most recent call last):

Does anybody know the resolution for this? Thank you

0 投票
0 回答
771 浏览

django - Pythonanywhere枕头安装不起作用

我已经将我的 django 应用程序加载到 Pythonanywhere 上,并且在运行我的函数时,我了解到自从我投入生产以来我无法通过管理员上传图像。我收到此错误:

从以前的经验来看,这意味着没有安装 Pillow。所以我打开了一个 bash 控制台并运行

它说它安装正确,我确实重新加载了我的应用程序,但它仍然无法正常工作(同样的错误)。什么地方出了错?

在此先感谢,康纳

另外,我确实在他们的论坛上看到了这个问题:https ://www.pythonanywhere.com/forums/topic/1247/


更新:尝试卸载 Pillow 并重新安装,然后重新启动 Web 服务器。还是行不通。

0 投票
1 回答
213 浏览

pythonanywhere - 在 pythonanywhere 上没有框架的 Webapp

我是否可以编写自己的服务器并在 pythonanywhere 上使用它?我在 wsgi 文件中看到它只是从我的源中导入应用程序作为应用程序。我可以只提供一个名为 app 的对象,它会按照预期的方式运行吗?我在哪里可以找到使我自己的套接字服务器在 pythonanywhere 上工作所需的所有信息?

0 投票
0 回答
180 浏览

pythonanywhere - 无法在 pythonanywhere 上访问 git 或 pip

我正在尝试更新我在 PythonAnywhere 上运行的一些代码,但遇到了一些网络问题。

当我尝试从 git 中提取或从 pip 安装时,我不断收到错误消息。

有没有其他人经历过这个?

0 投票
4 回答
1094 浏览

python - PythonAnywhere 为 2.7 安装新模块

我正在尝试使用以下命令安装 html2text:

我不断收到“语法错误”和指向“安装”中最后一个“l”的箭头......

0 投票
0 回答
637 浏览

python - pythonanywhere上的Flask应用程序,python JSON解码错误

我正在尝试复制我的应用程序在 localhost 上运行,但在 pythonanywhere 上。

我有一个非常基本的 API,它提供 JSON 响应,它在 localhost:5000 上按预期工作。

将代码移动到 pythonanywhere,我得到一个500 Internal Server Error

路线是:

问题似乎来自我的 getPoiAuthors 代码中的一行:

这在我的机器上按预期工作,但在 pythonanywhere 上不起作用。我收到“无法解码 JSON 对象”错误。python版本会不会有问题?我运行 2.7.6。