Skip to content

modify_texturepath error #73

@malonn23

Description

@malonn23

@niftools/pyffi-reviewers

Issue Overview

Spell "modify_texturepath" fails with error that requires a bytes-like object not string.

Version Information

Pyffi Version Info

PyFFI 2.2.3

Platform information

W10 x64 Latest revision
Python 3.8.2

Context

Just trying to mass-change a bunch of texture paths.

Steps to Reproduce

*I ran the following line from the cmd:
python.exe scripts\niftoaster.py -a "new\texturepath" modify_texturepath "path\to\nifs"

  • it asked if I wanted to proceed, and then error'd out

Expected Result

new paths

Actual Result

error

Possible Fix

[Optional, suggest fixes, improvement or reasons for the bug might have occurred]

Screenshot

[If relevant, include a screenshot]

Logs and Files

[Provide the generated log output and any accompanying files for the format related to the issue]

Console Output

[Set the logging level to 'Debug' and attach the output of the console. ]

pyffi.toaster:1076:ERROR:FAILED ON C:\Users\MaLonn\Downloads\Autumn_Trees_V1_1\LEAF_FREQUENCY_VARIATIONS\4_ULTRA_HIGH_FREQUENCY\VaPER - FallingLeavesQuakingAspenYoungLight.nif - with the follow exception
pyffi.toaster:1076:ERROR:EXPT MSG : a bytes-like object is required, not 'str'
pyffi.toaster:1076:ERROR:If you were running a spell that came with PyFFI
pyffi.toaster:1076:ERROR:Please report this issue - https://github.com/niftools/pyffi/issues

Similar Known Issues

[Reference any known issues - https://github.com/niftools/pyffi/issues]

Additional Information

[Anything else you feel is relevant]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions