Code Monkey home page Code Monkey logo

Comments (8)

sdaqo avatar sdaqo commented on June 20, 2024

this looks like a windows problem, linux works fine

from anipy-cli.

dymattic avatar dymattic commented on June 20, 2024

alright, thanks for checking. I'll look into this

from anipy-cli.

ivanvx1 avatar ivanvx1 commented on June 20, 2024

Also for macos, the default config file is not created but works if done by the user

from anipy-cli.

DragonOfShuu avatar DragonOfShuu commented on June 20, 2024

I'm on Windows 11. I'll go ahead and see what I can find out.

from anipy-cli.

DragonOfShuu avatar DragonOfShuu commented on June 20, 2024

TL;DR

The current version of anipy doesn't create a config file. But when I force it to, it creates it, and reads it, but I cannot find it anywhere on the file system.

Breakdown

According to #79, the config system was changed so users don't have to manually add vars every update. Great change, but by doing so they also removed the code that creates at least some kind of default file we can find and adjust (_create_config() has no references).

To fix this, I added the code that creates the config file, but there is indeed an issue on Windows (I've only test Windows). Python says that the config file was created, it pulls data from it and everything, but I can't actually find the file on my system.

Pulled data evidence:
image

Can't find it:
image

I went through the computer's process of placing the config file, and I still couldn't find it no matter what I did.
I found a Stack Overflow question about it, but there were no answers.

from anipy-cli.

DragonOfShuu avatar DragonOfShuu commented on June 20, 2024

Update:

When using different Python versions, the one that created the file seems to recognize it and the other does not

image

from anipy-cli.

DragonOfShuu avatar DragonOfShuu commented on June 20, 2024

GOOD NEWS

I found where Python is actually writing the file. Turns out if you download Python from the Microsoft store, Python gets sandboxed, and anything written to AppData is written into its cache, as seen here:

image

Unfortunately there aren't many good solutions for solving this, except for knowing that your Python might be sandboxed. So, for now I'll just give you the possible location your config file might get stored on a sandboxed Python on Windows:

%USERPROFILE%\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\Local\anipy-cli\config.yaml

I recommend either users download Python directly from the site, or be warned that Microsoft Store Python is sandboxed and will be stored in this location. You could also relocate where the config file is placed if you wish, but I'm not sure where it could go.

from anipy-cli.

sdaqo avatar sdaqo commented on June 20, 2024

Thanks for the investigation, will close this as #136 (2.7.23) is now merged.

from anipy-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.