qooxdoo 和 debian lenny
嗨,
正在尝试将 qooxdoo 与 debian lenny 一起使用。 qooxdoo sdk 1.2
create-application.py 好的,但我在generate.py 上遇到了问题:
/demo/qooxdoo/hello1$ ./generate.py source-all
Traceback (most recent call last):
File "/demo/qooxdoo-1.2-sdk/tool/bin/generator.py", line 26, in <module>
from generator.Generator import Generator
File "/demo/qooxdoo-1.2-sdk/tool/bin/Generator.py", line 31, in <module>
#import warnings
File "/demo/qooxdoo-1.2-sdk/tool/bin/Generator.py", line 31, in <module>
#import warnings
ImportError: No module named code.Class
我确实认为我缺少一些 debian 软件包
,请帮助我。塔。
Hy,
Trying to use qooxdoo with debian lenny.
qooxdoo sdk 1.2
create-application.py ok but I've got a problem with generate.py :
/demo/qooxdoo/hello1$ ./generate.py source-all
Traceback (most recent call last):
File "/demo/qooxdoo-1.2-sdk/tool/bin/generator.py", line 26, in <module>
from generator.Generator import Generator
File "/demo/qooxdoo-1.2-sdk/tool/bin/Generator.py", line 31, in <module>
#import warnings
File "/demo/qooxdoo-1.2-sdk/tool/bin/Generator.py", line 31, in <module>
#import warnings
ImportError: No module named code.Class
I do think I'm missing some debian packages
Do please help me. Ta.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这个堆栈跟踪有点奇怪。对于一个基本的事情,引用的代码行(Generator.py:31)从“generator.code.Class”导入,并且ImportError表明它在“generator”下找不到“code”子包。但“#import warnings”行实际上是generator.py第31行,就好像它混合了generator.py和Generator.py一样。
堆栈跟踪引用 /demo/qooxdoo-1.2-sdk/tool/bin/Generator.py 这一事实进一步推动了这一点,它实际上应该是 /demo/qooxdoo-1.2-sdk/tool/pylib/generator/Generator.py
我没有方便的工具来检查软件包本身是否正常,但我感觉 qooxdoo SDK 在您的计算机上的安装方式存在一些基本缺陷。
我建议您只需从 sourceforge 下载 qooxdoo-1.2-sdk 并将其解压到合适的目录。然后重新运行此包中的 create-application.py 以创建新骨架,或编辑现有骨架的 config.json ,以便 QOOXDOO_PATH 宏指向新 SDK。那么你应该已经准备好了。
This stack trace is a tad weird. For a basic thing, the referenced code line (Generator.py:31) imports from "generator.code.Class", and the ImportError indicates that it doesn't find the "code" subpackage under "generator". But the "#import warnings" line is actually generator.py line 31, as if it would be mixing generator.py and Generator.py.
This is furthered by the fact that the stack trace references /demo/qooxdoo-1.2-sdk/tool/bin/Generator.py, which should really be /demo/qooxdoo-1.2-sdk/tool/pylib/generator/Generator.py
I don't have a lenny handy to check if the package itself is alright, but I get the feeling there is some basic flaw with how the qooxdoo SDK is installed on your machine.
I recommend that you simply download the qooxdoo-1.2-sdk from sourceforge and unpack it to a suitable directory. Then re-run the create-application.py from this package to create a new skeleton, or edit the config.json of your existing skeleton so that the QOOXDOO_PATH macro points to the new SDK. Then you should be all set.
我同意 zamnut6 的观点。当我在 virtualbox 共享 HFS 文件系统上提取 qooxdoo SDK 包时,我遇到了同样的问题。该问题与两个文件系统之间的文件名大小写不兼容有关。
将 SDK 解压到普通 Linux 目录(如果您的开发环境是 Linux)应该可以解决此问题。
I agree with zamnut6. I've had the same problem when I extracted the qooxdoo SDK package on a a virtualbox shared HFS filesystem. The problem is something to do with file name casing incompatibility between two file systems.
Extracting the SDK on a normal Linux directory (if your development environment is Linux) should solve this issue.
当我在虚拟盒子共享目录(主机 XP,来宾 Ubuntu)中解压 zip 文件时,我也遇到了这个问题,当我在共享目录。
当我将 zip 解压到普通 Linux 目录时,没有出现任何问题。
I ran into this problem too when I had unpacked the zip file in a virtual box shared directory (host XP, guest Ubuntu), the share caused this issue when I ran
./generate.py
source within the shared directory.When I unpacked the zip to a normal Linux directory, I had no problems.