Django Gramps没有名为web.settings的模块 [英] Django Gramps no module named web.settings
问题描述
我在Ubuntu 12.04下使用Gramps 3.3.1,并尝试在Django导出/导入。安装是可以的,但是当我看看安装的插件时,它说它失败了,原因是:没有模块名为web.settings。
为我的生活找出如何解决这个问题。我假设这是python脚本中的这一行:
import web.settings as default_settings
任何人都有任何想法?我正在尝试将这些数据输出到MySQL数据库中,但我似乎不能。
谢谢!
当你遇到一个错误,Python告诉你没有名为blah的模块,这真的意味着它找不到blah。
我会检查你的pythonpath和路径中的东西的文件系统权限。
编辑
您的问题似乎是一个已知问题: http://www.gramps-project.org/bugs/view.php?id=5464
As对于Python Path,有很多资源描述如何。检查Python路径的最简单方法是在终端中运行 echo $ PYTHONPATH
。如果你没有看到它,Python可能找不到它。
I'm using Gramps 3.3.1 under Ubuntu 12.04 and trying to in Django Export/Import. The install is okay, but when I look at the installed addons, it says that it failed, with reason: "No module named web.settings".
I cann't for the life of me figure out how to fix this. I'm assuming that it's this line in the python script:
import web.settings as default_settings
Anyone have any ideas? I'm trying to get this data out and into a MySQL database, but I can't seem to.
Thanks!
When you run into an error where Python tells you "No module named blah" it really means it can't find "blah".
I would check your pythonpath and the filesystem permissions on the stuff in your path.
Edit
Your issue seems to be a known issue: http://www.gramps-project.org/bugs/view.php?id=5464
It's caused by not running Gramps from source, near as I can tell. It doesn't look like a Python Path issue, so much as the Gramps Django devs making assumptions where your Django settings would be (but I could be wrong).
As for Python Path, there's plenty of resources describing how to. The simplest way to check your Python path is to run echo $PYTHONPATH
in a terminal. If you don't see it there, Python might not find it.
这篇关于Django Gramps没有名为web.settings的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!