photutils: Cannot `import photutils` in a Google Colab notebook

It does not appear to be possible to import photutils on the Google Colab platform!

I tried the following:

  1. Browse to https://colab.research.google.com and click “New Python 3 Notebook”
  2. Runtime > Reset all runtimes (just in case)
  3. Execute !pip install photutils (this works fine)
  4. Execute import photutils

Step 4 yields the following exception:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-e3d8b5fe96af> in <module>()
----> 1 import photutils

5 frames
/usr/local/lib/python3.6/dist-packages/astropy/utils/decorators.py in decorator(function)
    443                                 'signature. If it was meant to be part of '
    444                                 '"**kwargs" then set "arg_in_kwargs" to "True"'
--> 445                                 '.'.format(new_name[i]))
    446 
    447         @functools.wraps(function)

TypeError: "None" was not specified in the function signature. If it was meant to be part of "**kwargs" then set "arg_in_kwargs" to "True".

Screenshot: Screenshot from 2019-10-09 12-40-41

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

yes, it’s interesting. They should either stick with 2.0.x or go to actual latest, 3.2.x