Hi, Everybody! I'm trying to install pyfits on stampede, and I"m running into an error: """ Setup script exited with error in setup command: Error parsing /tmp/easy_install-s4Mxa7/stsci.distutils-0.3.7/setup.cfg: TypeError: super() argument 1 must be type, not None """ Has anyone see that before, and know what to do about it? The python I'm using is the one dowloaded with yt this afternoon, 2.7.13. This happens if I use both pip and from the git repository of pyfits. Thanks, d. Installed /tmp/easy_install-s4Mxa7/stsci.distutils-0.3.7/.eggs/d2to1-0.2.12.post1-py2.7.egg Traceback (most recent call last): File "setup.py", line 14, in <module> zip_safe=False File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/dist.py", line 325, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/dist.py", line 444, in fetch_build_eggs replace_conflicting=True, File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/pkg_resources/__init__.py", line 854, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1126, in best_match return self.obtain(req, installer) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1138, in obtain return installer(requirement) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/dist.py", line 516, in fetch_build_egg return cmd.easy_install(req) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 672, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 698, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 879, in install_eggs return self.build_and_install(setup_script, setup_base) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1118, in build_and_install self.run_setup(setup_script, setup_base, args) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1106, in run_setup raise DistutilsError("Setup script exited with %s" % (v.args[0],)) distutils.errors.DistutilsError: Setup script exited with error in setup command: Error parsing /tmp/easy_install-s4Mxa7/stsci.distutils-0.3.7/setup.cfg: TypeError: super() argument 1 must be type, not None -- -- Sent from a computer.
Hi Dave, I should note that pyfits is very, very deprecated, in favor of astropy’s FITS I/O routines: http://docs.astropy.org/en/stable/io/fits/ <http://docs.astropy.org/en/stable/io/fits/> AstroPy has stable conda builds. You can get the same effect as pyfits (with the same API) if you do: import astropy.io <http://astropy.io/>.fits as pyfits Best, John
On Jul 24, 2017, at 9:07 PM, David Collins <dcollins4096@gmail.com> wrote:
Hi, Everybody!
I'm trying to install pyfits on stampede, and I"m running into an error:
""" Setup script exited with error in setup command: Error parsing /tmp/easy_install-s4Mxa7/stsci.distutils-0.3.7/setup.cfg: TypeError: super() argument 1 must be type, not None """
Has anyone see that before, and know what to do about it? The python I'm using is the one dowloaded with yt this afternoon, 2.7.13. This happens if I use both pip and from the git repository of pyfits.
Thanks, d.
Installed /tmp/easy_install-s4Mxa7/stsci.distutils-0.3.7/.eggs/d2to1-0.2.12.post1-py2.7.egg Traceback (most recent call last): File "setup.py", line 14, in <module> zip_safe=False File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/dist.py", line 325, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/dist.py", line 444, in fetch_build_eggs replace_conflicting=True, File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/pkg_resources/__init__.py", line 854, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1126, in best_match return self.obtain(req, installer) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1138, in obtain return installer(requirement) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/dist.py", line 516, in fetch_build_egg return cmd.easy_install(req) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 672, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 698, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 879, in install_eggs return self.build_and_install(setup_script, setup_base) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1118, in build_and_install self.run_setup(setup_script, setup_base, args) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1106, in run_setup raise DistutilsError("Setup script exited with %s" % (v.args[0],)) distutils.errors.DistutilsError: Setup script exited with error in setup command: Error parsing /tmp/easy_install-s4Mxa7/stsci.distutils-0.3.7/setup.cfg: TypeError: super() argument 1 must be type, not None
-- -- Sent from a computer. _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi, John-- Thanks. That worked out great. d. On Mon, Jul 24, 2017 at 9:46 PM, John ZuHone <jzuhone@gmail.com> wrote:
Hi Dave,
I should note that pyfits is very, very deprecated, in favor of astropy’s FITS I/O routines:
http://docs.astropy.org/en/stable/io/fits/
AstroPy has stable conda builds.
You can get the same effect as pyfits (with the same API) if you do:
import astropy.io.fits as pyfits
Best,
John
On Jul 24, 2017, at 9:07 PM, David Collins <dcollins4096@gmail.com> wrote:
Hi, Everybody!
I'm trying to install pyfits on stampede, and I"m running into an error:
""" Setup script exited with error in setup command: Error parsing /tmp/easy_install-s4Mxa7/stsci.distutils-0.3.7/setup.cfg: TypeError: super() argument 1 must be type, not None """
Has anyone see that before, and know what to do about it? The python I'm using is the one dowloaded with yt this afternoon, 2.7.13. This happens if I use both pip and from the git repository of pyfits.
Thanks, d.
Installed /tmp/easy_install-s4Mxa7/stsci.distutils-0.3.7/.eggs/ d2to1-0.2.12.post1-py2.7.egg Traceback (most recent call last): File "setup.py", line 14, in <module> zip_safe=False File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/ python2.7/site-packages/setuptools/dist.py", line 325, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/ python2.7/site-packages/setuptools/dist.py", line 444, in fetch_build_eggs replace_conflicting=True, File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/ python2.7/site-packages/pkg_resources/__init__.py", line 854, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/ python2.7/site-packages/pkg_resources/__init__.py", line 1126, in best_match return self.obtain(req, installer) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/ python2.7/site-packages/pkg_resources/__init__.py", line 1138, in obtain return installer(requirement) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/ python2.7/site-packages/setuptools/dist.py", line 516, in fetch_build_egg return cmd.easy_install(req) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/ python2.7/site-packages/setuptools/command/easy_install.py", line 672, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/ python2.7/site-packages/setuptools/command/easy_install.py", line 698, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/ python2.7/site-packages/setuptools/command/easy_install.py", line 879, in install_eggs return self.build_and_install(setup_script, setup_base) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/ python2.7/site-packages/setuptools/command/easy_install.py", line 1118, in build_and_install self.run_setup(setup_script, setup_base, args) File "/home1/00369/tg456484/local-yt-2017-07-24/yt-conda/lib/ python2.7/site-packages/setuptools/command/easy_install.py", line 1106, in run_setup raise DistutilsError("Setup script exited with %s" % (v.args[0],)) distutils.errors.DistutilsError: Setup script exited with error in setup command: Error parsing /tmp/easy_install-s4Mxa7/ stsci.distutils-0.3.7/setup.cfg: TypeError: super() argument 1 must be type, not None
-- -- Sent from a computer. _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- -- Sent from a computer.
participants (2)
-
David Collins
-
John ZuHone