dstndstn / astrometry.net

Astrometry.net -- automatic recognition of astronomical images
http://astrometry.net
Other
679 stars 189 forks source link

Running astrometry on Raspberry: ImportError: numpy.core.multiarray failed to import #180

Closed DanielRichart closed 3 years ago

DanielRichart commented 4 years ago

Hello, I downloaded astrometry.net on my PC and it worked perfectly.

Now, i downloaded it on a Raspbery Pi, using the same procedures, and when i run '/usr/local/astrometry/bin/solve-field validation1-M44.jpg --no-plots --overwrite --config /home/pi/astrometry.net-0.78/etc/astrometry.cfg --use-sextractor --sextractor-path /usr/bin/sextractor -v', the program start to run, but gives the error 'ImportError: numpy.core.multiarray failed to import '. I tried to reinstall python and numpy a couple of times, but the error keep occuring...

Thank you, Daniel

dstndstn commented 4 years ago

Does 'python -c "import numpy"' work on the command line?

To avoid using python, you can add to your solve-field args: --no-fits2fits --uniformize 0

On Wed, Mar 11, 2020 at 12:04 PM DanielRichart notifications@github.com wrote:

Hello, I downloaded astrometry.net on my PC and it worked perfectly.

Now, i downloaded it on a Raspbery Pi, using the same procedures, and when i run '/usr/local/astrometry/bin/solve-field validation1-M44.jpg --no-plots --overwrite --config /home/pi/astrometry.net-0.78/etc/astrometry.cfg --use-sextractor --sextractor-path /usr/bin/sextractor -v', the program start to run, but gives the error 'ImportError: numpy.core.multiarray failed to import '. I tried to reinstall python and numpy a couple of times, but the error keep occuring...

Thank you, Daniel

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dstndstn/astrometry.net/issues/180, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIEH7IA64KWPOPPL6ZRUKLRG6Y7VANCNFSM4LFZGQIA .

DanielRichart commented 4 years ago

Hi, thank you for the quick answer! python -c "import numpy works fine on the command line. I added the arguments to solve-field and the error still occurs

I will delete all of python form the Raspberry and reinstall it. Maybe is some version conflict

Thank you, Daniel

dstndstn commented 4 years ago

Ohh, actually we run python3 by default, so what about python3 -c "import numpy"

On Wed, Mar 11, 2020 at 12:23 PM DanielRichart notifications@github.com wrote:

Hi, thank you for the quick answer! python -c "import numpy works fine on the command line. I added the arguments to solve-field and the error still occurs

I will delete all of python form the Raspberry and reinstall it. Maybe is some version conflict

Thank you, Daniel

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dstndstn/astrometry.net/issues/180#issuecomment-597731555, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIEH7P3RNT3E37PGN22NXTRG63JNANCNFSM4LFZGQIA .

DanielRichart commented 4 years ago

it works too. i will try to rebuild astrometry to try again Thanks

dstndstn commented 4 years ago

ok -- can you also send the full log when you run solve-field with the "-v" (verbose) flag? I just want to see where it's failing.

There is very little magic in the way we run python programs.

cheers, --dustin

On Wed, Mar 11, 2020 at 1:30 PM DanielRichart notifications@github.com wrote:

it works too. i will try to rebuild astrometry to try again Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dstndstn/astrometry.net/issues/180#issuecomment-597766372, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIEH7PAPDTT4HKLKWFOJ4DRG7DBVANCNFSM4LFZGQIA .

DanielRichart commented 4 years ago

Hi Dustin, I'm sorry but i don't have the full log, because i deleted astrometry to rebuild it. When i run 'make py', it tries to build it with python2.7. There is a way to do it with python 3.7? If it works i can test again and send the full log.

Thanks, Daniel

dstndstn commented 4 years ago

Hi, I hadn't noticed that you were using version 0.78. We made python3 the default in 0.79. For 0.78, go

export PYTHON=python3 export PYTHON_SCRIPT="/usr/bin/env python3" make clean make py

cheers, --dustin

On Thu, Mar 12, 2020 at 9:00 AM DanielRichart notifications@github.com wrote:

Hi Dustin, I'm sorry but i don't have the full log, because i deleted astrometry to rebuild it. When i run 'make py', it tries to build it with python2.7. There is a way to do it with python 3.7? If it works i can test again and send the full log.

Thanks, Daniel

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dstndstn/astrometry.net/issues/180#issuecomment-598171688, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIEH7LIS5A5H3VRFQDKWC3RHDMF5ANCNFSM4LFZGQIA .

DanielRichart commented 4 years ago

I've built it with python3 and now works perfectly.

Thanks for the support!

dstndstn commented 4 years ago

Great, thanks for the note!

On Thu, Mar 12, 2020 at 10:45 AM DanielRichart notifications@github.com wrote:

I've built it with python3 and now works perfectly.

Thanks for the support!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dstndstn/astrometry.net/issues/180#issuecomment-598227747, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIEH7OAYBRCFXAFGRJUJM3RHDYPHANCNFSM4LFZGQIA .

DanielRichart commented 4 years ago

Hi again dustin,

Im running solve-field img.jpg --no-plots --overwrite --config /home/pi/astrometry.net-0.78/etc/astrometry.cfg --use-sextractor -v on the raspberry, but it takes forever to finish.

I'm using it only to get RA and DEC coordinates from the picture. There are any ways or arguments to make it run faster?

Thanks a lot, Daniel

dstndstn commented 4 years ago

Yes, giving it limits on the image scale are the most useful -- see --scale-low, --scale-high, --scale-units if you know the camera you're dealing with.

If source detection is taking significant time, you can drop the --use-sextractor and try using, eg, "--downsample 2"

cheers, --dstn

On Wed, Mar 18, 2020 at 10:06 AM DanielRichart notifications@github.com wrote:

Hi again dustin,

Im running solve-field img.jpg --no-plots --overwrite --config /home/pi/astrometry.net-0.78/etc/astrometry.cfg --use-sextractor -v on the raspberry, but it takes forever to finish.

I'm using it only to get RA and DEC coordinates from the picture. There are any ways or arguments to make it run faster?

Thanks a lot, Daniel

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dstndstn/astrometry.net/issues/180#issuecomment-600642794, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIEH7PO54HADNLDZ22K7STRIDIOHANCNFSM4LFZGQIA .

DanielRichart commented 4 years ago

I'm using the raspberry camera, or using images form the internet to run tests.

I'll look into this arguments and try it.

The sextractor run quickly, the problem is on running the indexes.

There are any way to make it run only to discover WCS?

thanks, Daniel

dstndstn commented 4 years ago

Discovering the WCS is most of the work.

In addition to scale, you can also test the --parity option.

You can turn off some of the additional output files with --new-fits none --match none --rdls none --corr none

cheers, --dustin

On Wed, Mar 18, 2020 at 10:13 AM DanielRichart notifications@github.com wrote:

I'm using the raspberry camera, or using images form the internet to run tests.

I'll look into this arguments and try it.

The sextractor run quickly, the problem is on running the indexes.

There are any way to make it run only to discover WCS?

thanks, Daniel

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dstndstn/astrometry.net/issues/180#issuecomment-600646416, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIEH7INWGA6YQSPP7AI3KTRIDJIHANCNFSM4LFZGQIA .

DanielRichart commented 4 years ago

Ok, i'll try them out.

Thank you very much!