text: from pymatgen.io.vasp import Poscar
  from pymatgen.io.cif import CifWriter
  
  
  def convert(vasp_file, output_file):
      try:
          poscar = Poscar.from_file(vasp_file)
          w = CifWriter(poscar.structure)
          w.write_file(output_file)
          return 0
      except ValueError:
          print("Invalid VASP structure.")
      except FileNotFoundError:
          print("File", vasp_file, "not found")
  
      return 1
  
  
  if __name__ == "__main__":
      print("This is a module that meant to be imported and used, not ran.")
  