@classmethod
    def from_wrong_arch(cls, filename):
        s = ''
        details = util.get_system_details(backends=False)
        visalib = util.LibraryPath(filename, 'user' if filename == util.read_user_library_path() else 'auto')
        s += 'No matching architecture.\n'
        s += '    Current Python interpreter is %s bits\n' % details['bits']
        s += '    The library in: %s\n' % visalib.path
        s += visalib.found_by % '      found by: %s\n'
        s += '      bitness: %s\n' % visalib.bitness

        return cls('Error while accessing %s: %s' % (filename, s))
dataset/ETHPy150Open hgrecco/pyvisa/pyvisa/errors.py/LibraryError.from_wrong_arch/swapped operands of `%`