Windows - how do i install urlresover on dev machine

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
gbzygil Offline
Junior Member
Posts: 37
Joined: Aug 2012
Reputation: 2
Sad  how do i install urlresover on dev machine
Post: #1
Hi all,

I'm learning python and xbmc add-on development on WindowsXP.

I managed to import xbmcstubs and BeatifulSoup4 by downloading it and placing it in my C:\Python27\libs\ folder.

I did the same for URLRESOLVER and doesn't seem to be working. Getting the below error.

Code:
Traceback (most recent call last):
  File "C:\Plugin & Python scripting tutorial\test.py", line 2, in <module>
    import 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()

Full code is available here http://pastebin.com/ymubnkn7
find quote