ODM icon indicating copy to clipboard operation
ODM copied to clipboard

Cant run python script

Open LeithHawkins opened this issue 10 years ago • 16 comments

Hi,

I am having a hard time getting the new version up and running. I have installed but when i got to run the app using the python file .

this is going to be a PEBCAK error for sure. Just trying to run Dennis Baldwins Dataset to start in the new version.

~/OpenDroneMap$ python run.py [--project-path] /odm-data-caliterra/images error

sorry for the noob question.

thanks

Leith

LeithHawkins avatar Jun 22 '16 09:06 LeithHawkins

Just try: python run.py --min-num-features 10000 --project-path /odm-data-caliterra/images

Your path will not work most likely. Be sure to use an absolute or relative path. The given path above assumes, that the "odm-data-caliterra" is located in your root directory. I would exspect sometthing like "/home/"YourUserName"/odm-data-caliterra/..."

Fi156 avatar Jun 22 '16 09:06 Fi156

screen shot 2016-06-22 at 7 31 59 pm

thanks yeah I have looked at that as well screen shot of latest results

LeithHawkins avatar Jun 22 '16 09:06 LeithHawkins

screen shot 2016-06-22 at 7 39 30 pm

I ran ls -d -1 $PWD/. to confirm the path

LeithHawkins avatar Jun 22 '16 09:06 LeithHawkins

Just to be sure: Do you have this structure:

|--/home/ubuntu/odm-data-caliterra/ |-- images/ |-- img-1234.jpg |-- ...

Taken from: https://github.com/OpenDroneMap/OpenDroneMap#running-opendronemap

Fi156 avatar Jun 22 '16 09:06 Fi156

yep

/home/ubuntu/odm_data_caliterra/images/IMG_9354.jpg

LeithHawkins avatar Jun 22 '16 09:06 LeithHawkins

Just reference the project base i.e /home/ubuntu/odm_data_caliterra

although a relative path should work just fine.

dakotabenjamin avatar Jun 22 '16 12:06 dakotabenjamin

HI, I hav tried running from both.

Still getting the error message: you must put your pictures in an <images> directory

LeithHawkins avatar Jun 22 '16 22:06 LeithHawkins

hmm well thats interesting I restarted my Linux Box today and tried re running and I got an Error message that was similar to this #251 it was related to the Ecto import. I re ran the install using -

git clone https://github.com/OpenDroneMap/OpenDroneMap.git . export PYTHONPATH=$PYTHONPATH:pwd/SuperBuild/install/lib/python2.7/dist-packages:pwd/SuperBuild/src/opensfm export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:pwd/SuperBuild/install/lib bash configure.sh mkdir build && cd build && cmake .. && make && cd ..

and now I am back to where I started with the error message about images. I have imported another dataset from github just to make sure it wasn't that .

ubuntu@ip-172-31-44-152:~/OpenDroneMap$ python run.py --min-num-features 10000 --project-path home/ubuntu/odm_data_seneca [INFO] Initializing OpenDroneMap app - Thu Jun 23 09:00:35 2016 [INFO] Running ODM Load Dataset Cell [ERROR] You must put your pictures into an <images> directory [INFO] OpenDroneMap app finished - Thu Jun 23 09:00:35 2016

LeithHawkins avatar Jun 23 '16 09:06 LeithHawkins

Hi,

I'm having issues with that ecto import only. With both the ODM.zip download and install directly from GitHub the first sets of images would be analysed perfectly but, when I rerun the exact script even after exiting the terminal ecto shows me a lib.ecto? error. @dakotabenjamin has the e-mail from me stating those issues. I’m currently still playing around with the release 0.1 to try and make it work.

What seemed to solve my above problem was rerunning bash ./configure.sh after restarting Ubuntu but, frequently internet time-outs occurred with za.ubuntu.archive access.

rion-saeon avatar Jun 23 '16 09:06 rion-saeon

Exactly, you have to add those two paths to your bashrc at the moment. See issue #251, or dakotabenjamins comment directly: https://github.com/OpenDroneMap/OpenDroneMap/issues/251#issuecomment-187691443 (Of course, you need to alter the paths according to your ODM installation path...)

Fi156 avatar Jun 23 '16 09:06 Fi156

@LeithHawkins

ubuntu@ip-172-31-44-152:~/OpenDroneMap$ python run.py --min-num-features 10000 --project-path home/ubuntu/odm_data_seneca

From my point of view, the trailing slash does make a difference: python run.py --min-num-features 10000 --project-path /home/ubuntu/odm_data_seneca

But you showed correct versions already, so I dont think it will make a difference...

Fi156 avatar Jun 23 '16 09:06 Fi156

@rionlerm yeah the environment variables you set are only stored in the current bash session, unless you hard-code them into your .bashrc file.

Be careful not to put the pwd part in the bash file- but actually type in the real absolute path.


@LeithHawkins can you post a screenshot of your project (images) folder contents (via ls -al /home/ubuntu/odm_data_seneca)?

dakotabenjamin avatar Jun 23 '16 12:06 dakotabenjamin

If you are pulling from the odm_data repo, then you should run a git pull. I just updated all those repos to incorporate the new project structure changes.

dakotabenjamin avatar Jun 23 '16 14:06 dakotabenjamin

Hey @LeithHawkins are you still running into problems?

dakotabenjamin avatar Jun 28 '16 14:06 dakotabenjamin

Sorry for the delay @dakotabenjamin, work is getting in the way of a good time.

I am still having trouble with the python paths paths :sob: however I dont think its an issue as such more a user error.

I think what ill do is close this and open a discussion on the mailing list if that is preferable to opening up the issues in Github.

LeithHawkins avatar Jun 30 '16 01:06 LeithHawkins

@LeithHawkins alright, you can also chat more directly here: https://gitter.im/OpenDroneMap/generalhelp

Although, I'm usually only on there during Eastern Standard Time work hours (9-5EST M-F)

dakotabenjamin avatar Jun 30 '16 12:06 dakotabenjamin