xdg.Basedirectory is not cross-platform or maintained

Bug #888619 reported by Natalia Bidart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntuone-dev-tools
Fix Released
High
dobey
ubuntuone-dev-tools (Ubuntu)
Fix Released
Undecided
dobey

Bug Description

Use ubuntu_sso.xdg_base_directory instead.

Current trace is:

Running tests
Adding path
Traceback (most recent call last):
  File "C:\Python27\\Scripts\u1trial", line 269, in <module>
    main()
  File "C:\Python27\\Scripts\u1trial", line 265, in main
    TestRunner(force_gc=options.force_gc).run(args, options)
  File "C:\Python27\\Scripts\u1trial", line 187, in run
    options.ignored_paths))
  File "C:\Python27\\Scripts\u1trial", line 162, in _collect_tests
    module_suite = self._load_unittest(filepath)
  File "C:\Python27\\Scripts\u1trial", line 90, in _load_unittest
    module = __import__(modpath, None, None, [""])
  File "C:\src\ubuntu-sso-client\trunk\ubuntu_sso\xdg_base_directory\tests\test_
windows.py", line 25, in <module>
    from ubuntuone.devtools.testcase import skipIfOS
  File "C:\Python27\lib\site-packages\ubuntuone-dev-tools\ubuntuone\devtools\tes
tcase.py", line 34, in <module>
    from ubuntuone.devtools.services.dbus import DBusRunner
  File "C:\Python27\lib\site-packages\ubuntuone-dev-tools\ubuntuone\devtools\ser
vices\dbus.py", line 25, in <module>
    from xdg.BaseDirectory import load_data_paths
ImportError: No module named xdg.BaseDirectory
Cleaning the generated code before running the style checks...
running clean
removing 'build' (and everything under it)
WARNING: the following files are not recognized by DistUtilsExtra.auto:
  pylintrc
  run-tests
  run-tests.bat
Performing style checks...
Traceback (most recent call last):
  File "C:\Python27\\Scripts\u1lint", line 28, in <module>
    from xdg.BaseDirectory import xdg_data_dirs
ImportError: No module named xdg.BaseDirectory

Related branches

Changed in ubuntuone-dev-tools:
assignee: nobody → Natalia Bidart (nataliabidart)
status: New → In Progress
importance: Undecided → High
description: updated
Changed in ubuntuone-dev-tools:
status: In Progress → Fix Committed
Revision history for this message
dobey (dobey) wrote : Re: xdg.Basedirectory is not cross-platform

I reset this bug back to in progress, and assigned it to me, because using ubuntu_sso for this introduces a circular dependency, which we need to avoid. The solution here is to migrate to the new dirspec library. I have a branch to do this, as well as a branch for dirspec which implements the necessary API to use it here.

Changed in ubuntuone-dev-tools:
status: Fix Committed → In Progress
assignee: Natalia Bidart (nataliabidart) → Rodney Dawes (dobey)
summary: - do not depend on xdg module so it can be used on windows
+ xdg.Basedirectory is not cross-platform
dobey (dobey)
summary: - xdg.Basedirectory is not cross-platform
+ xdg.Basedirectory is not cross-platform or maintained
Changed in ubuntuone-dev-tools:
status: In Progress → Fix Committed
dobey (dobey)
Changed in ubuntuone-dev-tools:
status: Fix Committed → Fix Released
milestone: none → 2.99.0
Changed in ubuntuone-dev-tools (Ubuntu):
assignee: nobody → Rodney Dawes (dobey)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntuone-dev-tools - 2.99.1-0ubuntu1

---------------
ubuntuone-dev-tools (2.99.1-0ubuntu1) precise; urgency=low

  * New upstream release.
    - Depends on dirspec now (LP: #888619)
    - Pass options through to trial (LP: #890786)
  * debian/control:
    - Move python-gobject to Suggests
    - Suggest python-qt4reactor
  * debian/rules:
    - Convert to pure dh
    - Run unit tests during build
 -- Rodney Dawes <email address hidden> Wed, 04 Jan 2012 13:12:03 -0500

Changed in ubuntuone-dev-tools (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.