Comments (8)
this looks like a windows problem, linux works fine
from anipy-cli.
alright, thanks for checking. I'll look into this
from anipy-cli.
Also for macos, the default config file is not created but works if done by the user
from anipy-cli.
I'm on Windows 11. I'll go ahead and see what I can find out.
from anipy-cli.
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.
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.
Update:
When using different Python versions, the one that created the file seems to recognize it and the other does not
![image](https://private-user-images.githubusercontent.com/68718280/264221693-8c793f50-09e8-470e-a463-3dc93a561914.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5Njk3NDEsIm5iZiI6MTcxNzk2OTQ0MSwicGF0aCI6Ii82ODcxODI4MC8yNjQyMjE2OTMtOGM3OTNmNTAtMDllOC00NzBlLWE0NjMtM2RjOTNhNTYxOTE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA5VDIxNDQwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhZjNiNDI2MjUyMDIwOTAxNTI0MmM0NWViN2JhYzQ3YjFiMjBkZTEyNzE0ZmEzNGZjM2UyNjhkMDhjMjk1OTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.qzcS7OHI30qs06UfNHCbKDd6UpJEAVZNkLHbH_B_BVE)
from anipy-cli.
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](https://private-user-images.githubusercontent.com/68718280/264222237-2f60fc3c-f2e6-4632-8ceb-adf365dbd518.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5Njk3NDEsIm5iZiI6MTcxNzk2OTQ0MSwicGF0aCI6Ii82ODcxODI4MC8yNjQyMjIyMzctMmY2MGZjM2MtZjJlNi00NjMyLThjZWItYWRmMzY1ZGJkNTE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA5VDIxNDQwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjMGMwMTg0MmY5MjEzNGIyN2FlOTMyZjIwZWYzZGZmNzMwMjEzOWNiYzJiY2I0NjFmZjI4YTEzNDEzNDRiZjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.s1313p1C4OnkSd6V6HT5Yw-uIRd2-q17Kbfu_FPx8NA)
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.
Thanks for the investigation, will close this as #136 (2.7.23) is now merged.
from anipy-cli.
Related Issues (20)
- Cleaner Documention HOT 3
- [Errno -2] Name or service not known HOT 11
- [Suggestions] Episode numbering for sub-10, and extra config to define show_name separators HOT 3
- Choosing quality not working HOT 6
- Typo in a comment in the config file HOT 2
- anipy-cli: error: requested url not available/blocked: https://gogoanime.gg//search.html?keyword=konosuba: response-code: 522 HOT 1
- An Anime with a period (.) in the title causes issues when Downloading. HOT 2
- Is is possible to modify the way files are downloaded? HOT 13
- Streams take way longer to open with anipy-cli v3.0.3 (up to 1 min) compared to v2.7.31 (instant) HOT 5
- When trying to play from history it throws an error HOT 8
- [Request] Publish a nixpkgs package of anpy-cli HOT 9
- [Feature Request] Add "Select from history" to the main menu while playing an episode HOT 2
- [Feature Request] Add "quit-watch-later" to the main menu HOT 4
- [Feature Request] Add "Add to seasonals" to the main menu HOT 3
- gogoanime url listed as yugenanime.tv in 3.1 documentation HOT 3
- [Feature Request] Change "Add to seasonals" feature so that LocalList gets updated before writing
- [Feature Request] Change "Select from history" feature so that ctrl+z gets you back the the main menu of the currently running stream HOT 2
- [Feature Request] Improve the search feature HOT 3
- [Feature Request] Add "Change quality" feature in main menu HOT 2
- Invalid Format for Directories HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anipy-cli.