Comments (7)
Commit 72869a1 should've fixed it. I've pushed it as version 0.12.3 on PyPI, so pip install koneko
should work now (make sure it is 0.12.3). Thanks for the bug report!
from koneko.
It works! I deleted /cache/, applied the patch, and now it's generating automatically.
from koneko.
Ah, I get it. The files are only copied in setup.py in the root dir, but not when using pip install. You can confirm this by running python setup.py install
on the repo's root and verify it works. A fix is incoming...
from koneko.
Thanks for the quick fix! It installs fine now on both machines.
Koneko still doesn't create ~/.local/share/koneko/cache though. When trying to view a Pixiv user's illustrations, the program crashes with a message about that cache directory being missing. Creating it manually wit mkdir fixes this.
from koneko.
That's strange, because it should already be checking if the cache exists. If I delete the cache dir, it does create the dir and download the images before showing them. Can you post the error message? Does it happen if you delete the cache dir?
from koneko.
To test this, I uninstalled koneko, manually deleted the entire ~/.local/share/koneko/ directory, and reinstalled koneko via pip.
It launches fine, and ~/.local/share/koneko has been re-created automatically. (Only content right now: /pics/).
Attempting to view artist illustrations crashes with the following output:
File "/home/ppa/.local/bin/koneko", line 8, in <module>
sys.exit(_main())
File "/home/ppa/.local/lib/python3.8/site-packages/koneko/__main__.py", line 25, in _main
func(args)
File "/home/ppa/.local/lib/python3.8/site-packages/koneko/main.py", line 45, in main_loop
return func()
File "/home/ppa/.local/lib/python3.8/site-packages/koneko/main.py", line 102, in start
self._save_history()
File "/home/ppa/.local/lib/python3.8/site-packages/koneko/main.py", line 125, in _save_history
logger = utils.setup_history_log()
File "/home/ppa/.local/lib/python3.8/site-packages/koneko/utils.py", line 32, in setup_history_log
handler = RotatingFileHandler(KONEKODIR / 'history', maxBytes=1e6, backupCount=3)
File "/usr/lib/python3.8/logging/handlers.py", line 148, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.8/logging/handlers.py", line 55, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.8/logging/__init__.py", line 1147, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python3.8/logging/__init__.py", line 1176, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/home/ppa/.local/share/koneko/cache/history'
I manually create a subdirectory called "cache".
Now, viewing that same artist's (id=3312701) illustrations works fine after restarting the program.
from koneko.
Ah, somehow I can reproduce it now. This should work, and python setup.py install
should work too, so can you please try this before I upload to PyPI? Thanks
from koneko.
Related Issues (6)
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 koneko.