Skip to content

search_tesscut() fails with TypeError: get_sectors() takes 1 positional argument but 2 were given #1224

Answered by orionlee
orionlee asked this question in Q&A
Discussion options

You must be logged in to vote

The long answer: The error happens when using lightkurve <= v2.1.0 in combination with astroquery >= v0.4.6.

astroquery v0.4.6 introduced a backward incompatible change that leads to the error. lightkurve v2.1.1 and later contains the fix to work with the change.

To resolve the issue,

  • upgrade Lightkurve (to v2.1.1 or later)
  • If you are unable to upgrade Lightkurve, e.g., because you are using Python < 3.8 (Lightkurve v2.1.0+ requires Python 3.8+ due to Astropy5.0 requirement), downgrade astroquery to v0.4.5 or older

Replies: 1 comment

Comment options

orionlee
Jun 16, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by orionlee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant