cheahjs / palworld-save-tools

Tools for converting Palworld .sav files to JSON and back
MIT License
776 stars 66 forks source link

Python 3.12.1 does not exist..... #92

Open Chillaya opened 5 months ago

Chillaya commented 5 months ago

I stuck since the begining of the process.

I try to install Python with multiple version and it keep saying same issue.

Like this ::

"Found Python at python3 Python version: Python 3.12.1 does not exist Press any key to continue . . ."

Even though I try another version like. 3.11.7

"Found Python at python3 Python version: Python 3.11.7 does not exist Press any key to continue . . ."

But I already have this version of Python.

I have try to installed from both version from Python.org and Microsoft Store. But it has the same error.

I follow the terminal solution. but it doesn't work.

I don't know why and how to fix this

EnderofGames commented 5 months ago

Same issue as #50

The batch file is saying "your python version is 3.11.7". The "does not exist" is on the next line, because it is the next command. Here is the part of the file where the issue comes up:

for %%A in (python3 python py) do (
    echo Checking if Python is installed as %%A
    where %%A
    if !ERRORLEVEL! equ 0 (
        echo Found Python at %%A
        echo Python version:
        %%A --version
        %%A convert.py "%~1"
        goto :Found
    )
)

It lists your version just fine, but when it tries to convert.py it returns "does not exist". Chances are you are running the file, instead of dragging your save over it?

Terminal method should fix this. What issue are you having with the terminal method? Are you trying to run convert.cmd from terminal, instead of running convert.py from terminal? Terminal method will probably also fail if you have spaces in the paths to your files.

Here is a working example of me running the command:

image

Chillaya commented 5 months ago

Same issue as #50

The batch file is saying "your python version is 3.11.7". The "does not exist" is on the next line, because it is the next command. Here is the part of the file where the issue comes up:

for %%A in (python3 python py) do (
    echo Checking if Python is installed as %%A
    where %%A
    if !ERRORLEVEL! equ 0 (
        echo Found Python at %%A
        echo Python version:
        %%A --version
        %%A convert.py "%~1"
        goto :Found
    )
)

It lists your version just fine, but when it tries to convert.py it returns "does not exist". Chances are you are running the file, instead of dragging your save over it?

Terminal method should fix this. What issue are you having with the terminal method? Are you trying to run convert.cmd from terminal, instead of running convert.py from terminal? Terminal method will probably also fail if you have spaces in the paths to your files.

Here is a working example of me running the command:

image

I am jaust a gamer and not a coder and I don't understand any coding in there. LOL So, I don't understand the terminal things, but I try.

FIrst, I try to run the convert.cmd but it said the Python 3.12.1 does not exist. So, I couldn't go further.

Then, I try to follow the terminal method, but it is unclear what I should do with it. I try to run the convert.py and it is show a lot of code in python program, like this.

Screenshot 2024-01-31 103315

What I should do next ? Or Am I did somrthing wrong ?

EnderofGames commented 5 months ago

To be clear, it is NOT saying Python does not exist. It is saying the file it needs in the command doesn't exist. Once again, you are dragging the Level.sav file onto convert.cmd, not just trying to run convert.cmd, correct? The instructions are to drag the save file over convert.cmd.

That's an IDE, not a terminal or command prompt. If you do not know how to run from terminal, you'll need to find that out only on your own.

galveyra commented 5 months ago

To be clear, it is NOT saying Python does not exist. It is saying the file it needs in the command doesn't exist. Once again, you are dragging the Level.sav file onto convert.cmd, not just trying to run convert.cmd, correct? The instructions are to drag the save file over convert.cmd.

That's an IDE, not a terminal or command prompt. If you do not know how to run from terminal, you'll need to find that out only on your own.

I found the issue... It's not a Python one but a windows one.. For some stupid reason, if you don't install Python through the Microsoft store, windows won't recognize it and will keep throwing messages of Python not being installed when either dragging the sav on the converter or through the terminal. After I installed it through the windows store it worked right away.. A pretty stupid anomaly with a pretty stupid solution.

SporePrint commented 5 months ago

To be clear, it is NOT saying Python does not exist. It is saying the file it needs in the command doesn't exist. Once again, you are dragging the Level.sav file onto convert.cmd, not just trying to run convert.cmd, correct? The instructions are to drag the save file over convert.cmd. That's an IDE, not a terminal or command prompt. If you do not know how to run from terminal, you'll need to find that out only on your own.

I found the issue... It's not a Python one but a windows one.. For some stupid reason, if you don't install Python through the Microsoft store, windows won't recognize it and will keep throwing messages of Python not being installed when either dragging the sav on the converter or through the terminal. After I installed it through the windows store it worked right away.. A pretty stupid anomaly with a pretty stupid solution.

Just went through 3 hours of this; I despite Microsoft store so did everything else I could think of. Embedded install, installer wizard... I did everything short of scping everything to my Linux NAS to deal with this but my stubbornness prevailed. Downloading python 3.12 from Microsoft Store made this work!