2017-01-13 7 views
1

私はosm-bundlerを使用しよう:はOSErrorの取得ん:[errnoを2]そのようなファイルやディレクトリ

ubuntu: ~/osm-bundler$ ./RunBundler.py —photos="/home/ubuntu/photo" 
Working directory created: /home/ubuntu/osm-bundler/output/osm-bundler-o1drFG 
BundlerMatching executable path: /home/ubuntu/osm-bundler/software/bundler/KeyMatchFull 
Sift executable path: /home/ubuntu/osm-bundler/software/sift-lowe/sift 

が、私はエラーを取得:

Processing photo 'IMGP3417.jpg': 
Copy of the photo has been scaled down to 1200x900 
Traceback (most recent call last): 
File "./RunBundler.py", line 10, in <module> 
manager.preparePhotos() 
File "/home/ubuntu/osm-bundler/osmbundler/__init__.py", line 168, in preparePhotos 
self._preparePhoto(photoInfo) 
File "/home/ubuntu/osm-bundler/osmbundler/__init__.py", line 278, in _preparePhoto 
self.extractFeatures(photo) 
File "/home/ubuntu/osm-bundler/osmbundler/__init__.py", line 345, in extractFeatures 
self.featureExtractor.extract(photo, self.photoDict[photo]) 
File "/home/ubuntu/osm-bundler/osmbundler/features/siftlowe.py", line 25, in extract 
p = subprocess.call(self.executable, **dict(stdin=photoFile, stdout=siftTextFile)) 
File "/usr/lib/python2.7/subprocess.py", line 523, in call 
return Popen(*popenargs, **kwargs).wait() 
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__ 
errread, errwrite) 
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child 
raise child_exception 
OSError: [Errno 2] No such file or directory 

線23,24、siftlowe.pyの& 25を:

photoFile = open("%s.jpg.pgm" % photo, "rb") 
siftTextFile = open("%s.key" % photo, "w") 
subprocess.call(self.executable, **dict(stdin=photoFile, stdout=siftTextFile)) 

ファイルのアクセス許可が正しく設定されています。

+2

これは、 'self.executable'が存在しないためです。あなたはそれを印刷できますか? –

+0

はい、私はそれを印刷できます(/ home/ubuntu/osm-bundler/software/sift-lowe/sift) – Ian

+0

私は以下の答えがあなたの問題を解決すると思います。あなたがそれを確認する/答えを受け入れることができますか? –

答えて

0

osm-bundler.zipをインストールしただけで、osm-budler-full.zipではないようです。 self.executableの行は、シフトを実行しようとします。これは、/home/ubuntu/osm-bundler/software/sift-lowe/siftであると予想されます。これはおそらくインストールされていません(私はosm-bundler.zipでこれを試しましたが、これは欠落していました)。

+0

ありがとうございます。 osm-bundler-full.zipをインストールしました。 siftファイルのパスは/ home/ubuntu/osm-bundler/software/sift-lowe/siftですが、エラーは同じです – Ian

+0

@Ianは完全な出力を伴うコマンドをgistにコピー&ペーストできますか? github.comとここにリンクを追加しますか? – hansaplast

関連する問題