skriticos / ac Goto Github PK
View Code? Open in Web Editor NEWAniChou - Open anime/manga updater
Home Page: http://myanimelist.net/clubs.php?cid=10642
License: GNU General Public License v3.0
AniChou - Open anime/manga updater
Home Page: http://myanimelist.net/clubs.php?cid=10642
License: GNU General Public License v3.0
File "/home/necro/ac/src/AnimeCollector/gtkctl.py", line 222, in repopulate
int(float(current_episode) / float(max_episodes) * 100)
ValueError: invalid literal for float():
Ok this is the second attempt to submit this, the first failed after clicking on a label >.<
I have just upgraded to the version available within git (git pulled a few minutes ago) and upon my first run, preferences would not appear complaining about WIDGET['preferences'].show_all() that NoneType does not have an attribute named show_all (line 70 in gtkctl.py)
So I exited and made sure it was configured properly (added my mal username and pw) and it magically went away, then I opened the about box and noticed that the close button was not working whatsoever, and no exception was being thrown either, I presume the event wasnt being caught. So I closed it via my window manager (alt-shift-c) and then when I tried opening it again, the same error but with 'aboutdialog' instead of preferences was thrown (line 65 within gtkctl.py). Same behavoir happened when you open preferences and then window manager kill it.
so:
A) the close button within the aboutdialog is not working
and
B) some close events are not being handled properly (WIDGETS[] objects are being deleted instead of hidden I presume)
If the connectivity is bad and the XML is only partially read, the syncing fails and an IncompletRead exception is triggered. The app stays active though and syncing again with a better connectivity works fine. No data corruption. A suggested solution would be to put this part of the syncing in a try block and trigger a repeat with some delay if it occurs. Here is a trace:
Traceback (most recent call last):
File "/home/seth/Source/animecollector/src/AnimeCollector/gtkctl.py", line 51, in on_button_sync_clicked
if MODCTL.anime_data.sync():
File "/home/seth/Source/animecollector/src/AnimeCollector/myanimelist.py", line 89, in sync
remote_db = _fetch_list(self.username)
File "/home/seth/Source/animecollector/src/AnimeCollector/myanimelist.py", line 171, in _fetch_list
fetch_response = urlopen(fetch_url).read()
File "/usr/lib/python2.5/socket.py", line 304, in read
data = self._sock.recv(rbufsize)
File "/usr/lib/python2.5/httplib.py", line 509, in read
return self._read_chunked(amt)
File "/usr/lib/python2.5/httplib.py", line 554, in _read_chunked
value += self._safe_read(amt)
File "/usr/lib/python2.5/httplib.py", line 604, in _safe_read
raise IncompleteRead(s)
httplib.IncompleteRead: ['tatus>2</series_status>\n\t\t\t\t<series_start>1998-10-02</series_s ...
The try icon is a bit messed up at shutdown at times. A delete routine has to be written on application quit.
Optional feature, could be added as extra tab in the main section. Would notify about activity on the site and show links to it. Would update regularly.
Per the user post here:
http://myanimelist.net/forum/?topicid=81963&pages=1&show=0#msg3220044
we get this error when trying to change the episode number
Traceback (most recent call last):
File "/home/dankles/test/ac/src/AniChou/gtkctl.py", line 355, in cell_episode_edited
maxvalue = int(max)
ValueError: invalid literal for int() with base 10: '-'
Counterpart to MAL list synchronization. Also MAL - AniDB import/export/sync.
I have to convert the .ico files to .png then edit ui.glade in order to get the icons to display.
PS:
This is evilsage4 that skriticos PM'd the other day in regards to this project. I'd love to help out :)
Migrate the current data access to a separate module.
Upon launching animecollector I get this traceback spurted out at me, sadly I do not have any experience with configparser so for all I know it could be something very simple:
Traceback (most recent call last):
File "/usr/bin/animecollector.py", line 48, in
gui = gtkctl.guictl(cfg, mal_anime_data)
File "/usr/lib/python2.6/site-packages/AnimeCollector/gtkctl.py", line 455, in init
if cfg.getboolean('startup', 'sync'):
File "/usr/lib/python2.6/ConfigParser.py", line 349, in getboolean
v = self.get(section, option)
File "/usr/lib/python2.6/ConfigParser.py", line 531, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'startup'
In the process of adapting the new sync process this function was created and needs a full-blown testing and debugging with manually crafted data samples from real world data.
Preliminary resolution: remove it from your anime list: on the mal site and delete your local database "rm $HOME/.animecollector/ac.dat". Then resync.
Error output:
Traceback (most recent call last):
File "/home/seth/Source/animecollector/src/AnimeCollector/gtkctl.py", line 51, in on_button_sync_clicked
if MODCTL.anime_data.sync():
File "/home/seth/Source/animecollector/src/AnimeCollector/myanimelist.py", line 89, in sync
remote_db = _fetch_list(self.username)
File "/home/seth/Source/animecollector/src/AnimeCollector/myanimelist.py", line 175, in _fetch_list
xmldata = parseString(fetch_response)
File "/usr/lib/python2.5/xml/dom/minidom.py", line 1925, in parseString
return expatbuilder.parseString(string)
File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 940, in parseString
return builder.parseString(string)
File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 144626
Further investigation needed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.