mhardcastle / radioflux

Measuring radio flux density with ds9
GNU General Public License v3.0
12 stars 3 forks source link

SyntaxError: Missing parentheses in call to 'print' #13

Closed AlexKurek closed 2 years ago

AlexKurek commented 2 years ago

Juest reporting - when trying to do: sudo pip install --egg radioflux as described here: https://www.extragalactic.info/~mjh/radio-flux.html Im getting:

no such option: --egg

When trying to do: sudo pip3 install radioflux Im getting:

Collecting radioflux
  Using cached radioflux-1.2.tar.gz (5.3 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-du69zcuq/radioflux_31ffe038757b493197a0b595b4ec6baa/setup.py", line 11
          print "Running post-install"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Ubuntu 22, Python 3.10.4

(Also it seems that the version number is not changed in setup.py)