Closed mariavd closed 7 years ago
Hi,
This looks like a problem with the "file" program. A web search for the error message from "file", "name use count (30) exceeded", yields this old bug from 2015. This would have happened during your full OS update.
https://bugzilla.redhat.com/show_bug.cgi?id=1201630
so could you please run ''' file --version ''' and report which version you have.
Hello,
So my file
is newer than the buggy version but it seems that it is the same case.
$ file --version
file-5.29
magic file from /etc/magic:/usr/share/misc/magic
My web search did not turn up an ubuntu bug report about this... there isn't an update for that ubuntu package, is there?
No, everything is up to date. Maybe I should submit a bug report.
I'm surprised that this 17.04 has been out for ~5 months and nobody has reported this, but yes, it looks like ubuntu shipped a known buggy 'file' to me.
Thanks, I will close the issue now and get back to you in case the problem with Ubuntu gets resolved.
I found the cause of the problem. It seems that the EXIF data is not being read properly. With an older version of file
:
$ file --version
file-5.14
$ file apod1.jpg
apod1.jpg: JPEG image data, JFIF standard 1.02
$ file test.jpg
test.jpg: JPEG image data, JFIF standard 1.01
So the output from Lightroom is recognised as the older version of JFIF. My workaround is that I save the photo as JPEG2000 and choose the EXIF data to be removed, then save as JPEG again. Astrometry works just fine; objects are detected and plotted. I hope that they will fix file
but I am glad that I can at least use the solver again. It is invaluable!
Thanks for the follow-up; apologies, I could have provided some hints for workarounds...
Another option that might work would be to take your JPEG image and go:
jpegtopnm test.jpg | pnmtojpeg > test2.jpg
and then run test2.jpg -- the PNM format doesn't support EXIF or anything fancy, so test2.jpg might work with your version of 'file'.
Thanks again.
On Mon, Sep 18, 2017 at 6:23 PM, mariavd notifications@github.com wrote:
I found the cause of the problem. It seems that the EXIF data is not being read properly. With an older version of file:
$ file --version file-5.14
$ file apod1.jpg apod1.jpg: JPEG image data, JFIF standard 1.02
$ file test.jpg test.jpg: JPEG image data, JFIF standard 1.01
So the output from Lightroom is recognised as the older version of JFIF. My workaround is that I save the photo as JPEG2000 and choose the EXIF data to be removed, then save as JPEG again. Astrometry works just fine; objects are detected and plotted. I hope that they will fix file but I am glad that I can use the solver. It is invaluable!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dstndstn/astrometry.net/issues/118#issuecomment-330373136, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBD_aXRd0gywqXaPHzml_0ZANrdppI9ks5sju1ZgaJpZM4PaUKt .
Thank you! This line saves the trouble of removing the EXIF manually. Now file
does not complain and the solver works fine.
$ file test2.jpg
test2.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, baseline, precision 8, 2335x1831, frames 3
I have installed Astrometry on a Ubuntu computer and it working fine for months, recognising stars and deep sky objects, and plotting them on a png file. Then during this summer I took a break from astro and just recently spend a night under the stars. To my surprise Astrometry gives an error when I give any photo but the demos to the solver. I found a thread in the Google group regarding this error and ran the recommended commands. I am sorry for the long list of output. I thought it might give some hints.
So, for example:
But on any other photo, including those that were solved and plotted before:
Giving the absolute path does not help. Obviously, something went wrong with Python. For starters, I don't know why the system Python is being called when I have installed Anaconda. I re-compiled the code just to make sure that indeed at compilation time Anaconda is selected.
Jpeg2pnm is exported to PATH and when I give a name of some jpeg file, it seems to convert it to a binary because on standard output I can see long list of gibberish characters.
Just as it was suggested in the Google group, I ran
I installed Astrometry in the default path but /usr/local/astrometry/bin/image2pnm.py does not exist there. Also:
Do you have any ideas what I can do about it? It might be that something broke when I upgraded to Ubuntu 17. Thank you!