Code Monkey home page Code Monkey logo

Comments (5)

Jusas avatar Jusas commented on September 3, 2024

Hi fenriques, this is a known issue that should have been fixed in the latest release. What version are you running? The latest is 1.2.0. You can check your version by running this in bash (in your installation directory)

cat package.json|grep \"version\":

The bottom line issue is that you're most likely using an old version of the astropy package (and possibly astrometry-api-lite as well). The installer should automatically detect the astropy version for you and install a newer version for you (2.0.6) if it detects that you have an older version.

You can manually check which version you have installed by running

pip --disable-pip-version-check show astropy|grep ^Version

in bash. If it's 1.x, you'll need to upgrade it. To do this, uninstall the old version,

sudo pip --disable-pip-version-check uninstall astropy

and install the new one

sudo pip --disable-pip-version-check install astropy==2.0.6

This should do the trick. Also if you're not running the latest version of astrometry-api-lite, I strongly recommend upgrading it.

from astrometry-api-lite.

fenriques avatar fenriques commented on September 3, 2024

hi Jusas,
should be all up to date, did the installation just yestarday:
cat package.json|grep "version": -> "version": "1.2.0"
pip --disable-pip-version-check show astropy|grep ^Version -> Version: 3.0.3

ferrante

from astrometry-api-lite.

Jusas avatar Jusas commented on September 3, 2024

I think the issue is that Astropy 3.0.3 requires Python 3, while astrometry.net uses Python 2.7 - so underneath, the packages your solver is using is actually the packages it can use with Python 2.7, and that version is likely outdated.

Try running pip2 --disable-pip-version-check show astropy|grep ^Version and let me know if it outputs a different version - I don't know much about Python but I think pip2 is explicitly for Python 2 packages.

from astrometry-api-lite.

fenriques avatar fenriques commented on September 3, 2024

you are right. pip2 --disable-pip-version-check show astropy|grep ^Version
Outputs:
Version: 1.1.1
So I updated astropy for Python 2.7 only: sudo pip2 --disable-pip-version-check install astropy==2.0.6
as the client I'm using (MountWizzard3) is not compatible with 2.0.6 and requires astropy v 3.0.3

Problem solved!
I would put it in the installation notes somewhere.
Thanks
Ferrante

from astrometry-api-lite.

Jusas avatar Jusas commented on September 3, 2024

Yeah, this was oversight on my part. I should update the installer to explicitly invoke pip2 when checking and installing Python packages. Nice to know!

from astrometry-api-lite.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.