matyalatte / UE4-DDS-Tools

Texture modding tools for UE games
MIT License
72 stars 12 forks source link

ImportError: cannot import name 'NamespaceLoader'... #21

Closed Release closed 1 year ago

Release commented 1 year ago

Sorry for question. But how i can solved this problem without remove system environment variable?

mvGzjlV9CF

matyalatte commented 1 year ago

Can you try the -E option for python?
It'll ignore the PYTHON* variables.

Open gui_definition.json with a text editor. (It's in the same location as GUI.exe.)
Then, replace all python\\python.exe with python\\python.exe -E like this.

{
    "recommended": "0.4.1",
    "gui": [
        {
            "label": "Inject",
            "window_name": "UE4-DDS-Tools (Inject mode)",
            "command": "python\\python.exe -E src\\main.py ...
            ...

I'll apply it to my repo as well if it'll work.

Release commented 1 year ago

@matyalatte, оh thank you so much. This really solves the problem.