我正在使用Pannellum 全景查看器进行校园游览体验。为了改进对移动设备的支持,我想使用Pannellum 的多分辨率格式 ,使用包含的python 脚本来生成它的形式图像。
我是一个 mac 用户,对 python 的了解很少,并且能够从终端执行脚本(耶!)
python脚本的注释说明了要求:
# Requires Python 3.2+ (or Python 2.7), the Python Pillow package,
# and nona (from Hugin)
我正在运行 Python 2.7.10,我确实安装了 Pillow 包并从他们的sourceforge mirror下载的“HuginStitchProject.app”(来自包内容)中获得了“nona”可执行文件。
从包含前面提到python generate.py basketball_court.jpg
的可执行文件的文件夹中执行代码时,文件 和,我收到以下我无法解决的错误:nona
*.jpg
generate.py
Processing input image information...
Generating cube faces...
Traceback (most recent call last):
File "generate.py", line 106, in <module>
subprocess.check_call([args.nona, '-o', os.path.join(args.output, 'face'), os.path.join(args.output, 'cubic.pto')])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 535, in check_call
retcode = call(*popenargs, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
我看到了OSError: [Errno 2] No such file or directory
,我缺少哪个文件?它看不到哪个文件?
任何帮助将不胜感激 :)
编辑:我很确定我没有任何可执行文件不是依赖项。我什至不知道可执行文件应该是什么样子。我应该寻找nona.py
,nona.exe
还是nona.sh
其他东西?