Coder Social home page Coder Social logo

Comments (5)

ajbathe avatar ajbathe commented on June 6, 2024

same to me: http://ix.io/4t3a

from plugin.program.iagl.

mczerski avatar mczerski commented on June 6, 2024

also trying to browse comodore c64 list alphabetically (actually any category):

2023-05-12 16:55:24.905 T:25499   error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--                                                             
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!                                                                                                                
                                                   Error Type: <class 'ValueError'>                                                                                                                                
                                                   Error Contents: could not convert string to float: 'Other - NR (Not Rated)'                                                                                     
                                                   Traceback (most recent call last):                                                                                                                              
                                                     File "/storage/.kodi/addons/script.module.infotagger/resources/modules/infotagger/listitem.py", line 69, in set_info                                          
                                                       func(v)                                                                                                                                                     
                                                   TypeError: must be real number, not str                                                                                                                         
                                                                                                                                                                                                                   
                                                   During handling of the above exception, another exception occurred:                                                                                             
                                                                                                                                                                                                                   
                                                   Traceback (most recent call last):                                                                                                                              
                                                     File "/storage/.kodi/addons/plugin.program.iagl/addon.py", line 902, in <module>                                                                              
                                                       plugin.run(sys.argv)                                                                                                                                        
                                                     File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run                                                                           
                                                       self._dispatch(self.path)                                                                                                                                   
                                                     File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch                                                                     
                                                       view_func(**kwargs)                                                                                                                                         
                                                     File "/storage/.kodi/addons/plugin.program.iagl/addon.py", line 388, in game_list_in_category_route                                                           
                                                       xbmcplugin.addDirectoryItems(plugin.handle,[(plugin.url_for_path('/game/%(game_list_id)s/%(label2)s'%{'label2':x.getLabel2(),'game_list_id':x.getProperty('r
                                                                                                                                                                                                                   
                                                     File "/storage/.kodi/addons/plugin.program.iagl/resources/lib/main.py", line 327, in get_games_as_listitems                                                   
                                                       return [self.add_game_context_menus(listitem_in=get_game_listitem(dict_in=x,filter_in=filter_in),game_list_id=game_list_id,game_id=x.get('values').get('labe
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.program.iagl/resources/lib/main.py", line 327, in <listcomp>                                                               
                                                       return [self.add_game_context_menus(listitem_in=get_game_listitem(dict_in=x,filter_in=filter_in),game_list_id=game_list_id,game_id=x.get('values').get('labe
                                                                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                            
                                                     File "/storage/.kodi/addons/plugin.program.iagl/resources/lib/utils.py", line 981, in get_game_listitem                                                       
                                                       info_tag.set_info(dict_in.get('info'))                                                                                                                      
                                                     File "/storage/.kodi/addons/script.module.infotagger/resources/modules/infotagger/listitem.py", line 85, in set_info                                          
                                                       func(_tag_attr['convert'](v))  # Attempt to force conversion to correct type                                                                                
                                                            ^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                
                                                   ValueError: could not convert string to float: 'Other - NR (Not Rated)'                                                                                         
                                                   -->End of Python script error report<--                                                                                                                         
                                                                                                                                                                                                                   
2023-05-12 16:55:25.169 T:25497   error <general>: GetDirectory - Error getting plugin://plugin.program.iagl/game_list/category/Alphabetical/C/C64_ZachMorris/1                                                    
2023-05-12 16:55:25.178 T:10860   error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.program.iagl/game_list/category/Alphabetical/C/C64_ZachMorris/1) failed

from plugin.program.iagl.

struckma avatar struckma commented on June 6, 2024

Same for me:

2023-05-12 23:42:14.607 T:21792   debug <general>: IAGL:  Cache Size set to - 0 - Zero (Current Game Only)
2023-05-12 23:42:14.674 T:21792   debug <general>: [plugin.program.iagl][routing] Dispatching to 'game_list_in_category_route', args: {'category_choice': 'Alphabetical', 'category_value': 'B', 'game_list_id': 'Amstrad_CPC_ZachMorris', 'page_number': '1'}
2023-05-12 23:42:14.790 T:21792   error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ValueError'>
                                                   Error Contents: could not convert string to float: '1-2 Players'
                                                   Traceback (most recent call last):
                                                     File "C:\Users\struckma.EXPRESSENCE\AppData\Roaming\Kodi\addons\script.module.infotagger\resources\modules\infotagger\listitem.py", line 69, in set_info
                                                       func(v)
                                                   TypeError: must be real number, not str
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "C:\Users\struckma.EXPRESSENCE\AppData\Roaming\Kodi\addons\plugin.program.iagl\addon.py", line 902, in <module>
                                                       plugin.run(sys.argv)
                                                     File "C:\Users\struckma.EXPRESSENCE\AppData\Roaming\Kodi\addons\script.module.routing\lib\routing.py", line 130, in run
                                                       self._dispatch(self.path)
                                                     File "C:\Users\struckma.EXPRESSENCE\AppData\Roaming\Kodi\addons\script.module.routing\lib\routing.py", line 141, in _dispatch
                                                       view_func(**kwargs)
                                                     File "C:\Users\struckma.EXPRESSENCE\AppData\Roaming\Kodi\addons\plugin.program.iagl\addon.py", line 388, in game_list_in_category_route
                                                       xbmcplugin.addDirectoryItems(plugin.handle,[(plugin.url_for_path('/game/%(game_list_id)s/%(label2)s'%{'label2':x.getLabel2(),'game_list_id':x.getProperty('route')}),x,True) for x in iagl_addon.game_lists.get_games_as_listitems(game_list_id=game_list_id,filter_in=filter_dict) if x])
                                                     File "C:\Users\struckma.EXPRESSENCE\AppData\Roaming\Kodi\addons\plugin.program.iagl\resources\lib\main.py", line 327, in get_games_as_listitems
                                                       return [self.add_game_context_menus(listitem_in=get_game_listitem(dict_in=x,filter_in=filter_in),game_list_id=game_list_id,game_id=x.get('values').get('label2'),is_favorite=(isinstance(x.get('properties').get('platform_category'),str) and 'favorites' in x.get('properties').get('platform_category').lower())) for x in self.get_games_from_cache(game_list_id=game_list_id) if x]
                                                     File "C:\Users\struckma.EXPRESSENCE\AppData\Roaming\Kodi\addons\plugin.program.iagl\resources\lib\main.py", line 327, in <listcomp>
                                                       return [self.add_game_context_menus(listitem_in=get_game_listitem(dict_in=x,filter_in=filter_in),game_list_id=game_list_id,game_id=x.get('values').get('label2'),is_favorite=(isinstance(x.get('properties').get('platform_category'),str) and 'favorites' in x.get('properties').get('platform_category').lower())) for x in self.get_games_from_cache(game_list_id=game_list_id) if x]
                                                     File "C:\Users\struckma.EXPRESSENCE\AppData\Roaming\Kodi\addons\plugin.program.iagl\resources\lib\utils.py", line 981, in get_game_listitem
                                                       info_tag.set_info(dict_in.get('info'))
                                                     File "C:\Users\struckma.EXPRESSENCE\AppData\Roaming\Kodi\addons\script.module.infotagger\resources\modules\infotagger\listitem.py", line 85, in set_info
                                                       func(_tag_attr['convert'](v))  # Attempt to force conversion to correct type
                                                   ValueError: could not convert string to float: '1-2 Players'
                                                   -->End of Python script error report<--
                                                   
2023-05-12 23:42:14.791 T:21792   debug <general>: CPythonInvoker::onExecutionDone(6, C:\Users\struckma.EXPRESSENCE\AppData\Roaming\Kodi\addons\plugin.program.iagl\addon.py)
2023-05-12 23:42:14.797 T:11904   debug <general>: ------ Window Init (DialogNotification.xml) ------
2023-05-12 23:42:14.819 T:21792   debug <general>: .
2023-05-12 23:42:14.884 T:21792   debug <general>: Python interpreter stopped
2023-05-12 23:42:14.884 T:21792   debug <general>: Thread LanguageInvoker 21792 terminating
2023-05-12 23:42:14.891 T:424     error <general>: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.program.iagl/game_list/category/Alphabetical/B/Amstrad_CPC_ZachMorris/1
2023-05-12 23:42:14.891 T:424     debug <general>: Thread waiting 424 terminating

from plugin.program.iagl.

mczerski avatar mczerski commented on June 6, 2024

In resources/lib/utils.py commenting out line 980 and 981 then uncommenting line 982 solves issue for me.

from plugin.program.iagl.

struckma avatar struckma commented on June 6, 2024

#286 (comment) fixes it for me.

from plugin.program.iagl.

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.