Newbie urlresolver error

gbzygil

New member
Nov 29, 2013
12
0
0
Hi,
I'm new to python and xvmc add-on development. Currently working on a video add-on. Added xbmcstubs and url resolver lib files to my Python on windows installations lib folder. When i import url resolver, i get the below error.
Can someone please point out what i'm doing wrong?

Code:
Traceback (most recent call last):
  File "C:\Plugin & Python scripting tutorial\test.py", line 1, in <module>
    import urllib2,urllib,re,urlresolver
  File "C:\Python27\lib\urlresolver\__init__.py", line 31, in <module>
    import common
  File "C:\Python27\lib\urlresolver\common.py", line 28, in <module>
    plugins_path = os.path.join(addon_path, 'lib', 'urlresolver', 'plugins')
  File "C:\Python27\lib\ntpath.py", line 96, in join
    assert len(path) > 0
TypeError: object of type 'type' has no len()
 

Eldorado

Moderator
Staff member
May 7, 2012
990
0
16
Are you sure you copied over all of the files/folders, mainly the pluggins subfolder?
 

Eldorado

Moderator
Staff member
May 7, 2012
990
0
16
Hmm.. not sure, I don't believe I've ever tried importing urlresolver in idle before

I do however do it with t0mm0 Net all the time, is your error on Addon or Net?
 

gbzygil

New member
Nov 29, 2013
12
0
0
Its with add-on
Like i said plugin.video.t0mm0.test (default.py) gives me the same error too. So i'm guessing its something to do with the way i copied to lib folder maybe ?
 
Thread starter Similar threads Forum Replies Date
W Kodi Support 1
M Welcome Centre 1
J Resolver Development 8