Skip to content

I am encountering difficulties while trying to install PyRAF using Anaconda. Upon executing the installation, I receive the following error message: #420

Closed

Description

@Douglasastro

I am encountering difficulties while trying to install PyRAF using Anaconda. Upon executing the installation, I receive the following error message:

astroesul@astroesul:~/Área de Trabalho$ cd
astroesul@astroesul:~$ conda activate geminiconda
(geminiconda) astroesul@astroesul:~$ pyraf
Traceback (most recent call last):
  File "/home/astroesul/miniforge3/envs/geminiconda/bin/pyraf", line 4, in <module>
    __import__('pkg_resources').run_script('pyraf==2.1.15', 'pyraf')
  File "/home/astroesul/miniforge3/envs/geminiconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 672, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/astroesul/miniforge3/envs/geminiconda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1472, in run_script
    exec(code, namespace, namespace)
  File "/home/astroesul/miniforge3/envs/geminiconda/lib/python3.7/site-packages/pyraf-2.1.15-py3.7-linux-x86_64.egg-info/scripts/pyraf", line 93, in <module>
    from pyraf import doCmdline, _use_ipython_shell, runCmd, __version__
  File "/home/astroesul/miniforge3/envs/geminiconda/lib/python3.7/site-packages/pyraf/__init__.py", line 66, in <module>
    from . import irafimport
  File "/home/astroesul/miniforge3/envs/geminiconda/lib/python3.7/site-packages/pyraf/irafimport.py", line 202, in <module>
    pyrafmod = _originalImport('pyraf.iraf', globals(), locals(), [])
  File "/home/astroesul/miniforge3/envs/geminiconda/lib/python3.7/site-packages/pyraf/iraf.py", line 9, in <module>
    from .iraffunctions import *
  File "/home/astroesul/miniforge3/envs/geminiconda/lib/python3.7/site-packages/pyraf/irafimport.py", line 116, in _irafImport
    retval = _originalImport(name, globals, locals, fromlist, level)
  File "/home/astroesul/miniforge3/envs/geminiconda/lib/python3.7/site-packages/pyraf/iraffunctions.py", line 22, in <module>
    from .subproc import SubprocessError
  File "/home/astroesul/miniforge3/envs/geminiconda/lib/python3.7/site-packages/pyraf/irafimport.py", line 116, in _irafImport
    retval = _originalImport(name, globals, locals, fromlist, level)
  File "/home/astroesul/miniforge3/envs/geminiconda/lib/python3.7/site-packages/pyraf/subproc.py", line 51, in <module>
    from stsci.tools.for2to3 import tobytes, tostr, BNULLSTR, BNEWLINE, bytes_read, bytes_write
  File "/home/astroesul/miniforge3/envs/geminiconda/lib/python3.7/site-packages/pyraf/irafimport.py", line 116, in _irafImport
    retval = _originalImport(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'stsci.tools.for2to3'

Activity

  1. locked and limited conversation to collaborators on Dec 3, 2024
  2. converted this issue into a discussion #421 on Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions