neurodata / ndstore

code for storing neurodata images and image annotations
http://neurodata.io
Apache License 2.0
38 stars 12 forks source link

auto ingest generatejson failed #265

Closed alexbaden closed 8 years ago

alexbaden commented 8 years ago
(ocp)abaden@Alexs-MBP-3:~/Projects/Research/cookingest$ python generatejson.py 
Traceback (most recent call last):
  File "generatejson.py", line 21, in <module>
    import ndio.remote.ndingest as NI
ImportError: No module named ndingest

I followed the instructions here: http://docs.neurodata.io/ndstore/sphinx/ingesting.html but I seem to be missing something. Do I need a different version of ndio?

Aeusman commented 8 years ago

So it looks like @j6k4m8 hasn't rolled the latest into a 1.0.1, I'll poke him about it

j6k4m8 commented 8 years ago

We're on a monthly rollout cycle, scheduled to roll to 1.1.0 on Sunday (first day of the month) if everything is stable.

My suggestion is to leave docs so they work with the latest pip-installable version until rolls. @alexbaden you can clone the repo in the meantime:

git clone https://github.com/neurodata/ndio.git ndio
cd ndio
pip install -U .

...and continue as usual.

Aeusman commented 8 years ago

Ah, nice, my understanding was flawed then, I thought the release cycle was bi-monthly :) Thanks!

alexbaden commented 8 years ago

Got it. I followed Jordan's instructions and am now running the ndio from the master branch in the repo.

But, I'm still getting an error (though a new one this time):

Traceback (most recent call last):
  File "generatejson.py", line 87, in <module>
    main()
  File "generatejson.py", line 84, in main
    ni.post_data(SITE_HOST)
  File "/Users/abaden/.virtualenvs/ocp/lib/python2.7/site-packages/ndio/remote/ndingest.py", line 517, in post_data
    raise OSError("Error opening file")
OSError: Error opening file

I'm using the generatejson from the docs: https://github.com/neurodata/ndstore/blob/master/ingest/autoingest/generatejson.py

kunallillaney commented 8 years ago

@alexbaden Did this not work? If not let's resolve this with @Aeusman.

alexbaden commented 8 years ago

No, I ended up writing an ingest script instead. I attached my generatejson.py script, but the data has already been ingested using those parameters, so you will want to try slightly different ones.

It turned out that the size of the tif image was different than the size of the catmaid stack (the catmaid stack was bigger to keep powers of 2). I forget exactly what the image was, but it was something like 6500 x 4500 instead of 65xx by 45xx. You can find out in the cook16 projinfo.

generatejson.py.zip

Aeusman commented 8 years ago

Figured out the problem, generatejson in ndstore was incorrectly passing a parameter in post_data(), usage has been changed. I've created a pull request to fix @kunallillaney