exceptions.TypeError: argument 1 of PyQt4.QtCore.QVariant() has an invalid type

Bug #652450 reported by kylef
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
New
Undecided
Unassigned

Bug Description

New installation of bzr 2.2.1 on Windows XP.

Tried to start a new repository (using Feature Branches model) on existing source tree (600 MB total size) with the "Create Parent Locations" and "Move Existing Files to Working Tree" options both selected. Seemed to work, but when I click "close" on the init dialog, I get the following error in a large popup window telling me to report it here.

And although the existing files did get moved to "trunk" and .bzr folders were created attempting to open the shared repo gives the same error. Opening the working tree ("trunk") works fine.

I think everything might be ok but this is a scary error. Did I break something?

bzr: ERROR: exceptions.TypeError: argument 1 of PyQt4.QtCore.QVariant() has an invalid type

Traceback (most recent call last):
  File "C:/Program Files/Bazaar/plugins\explorer\lib\explorer.py", line 1450, in callable_with_cleanup
  File "C:/Program Files/Bazaar/plugins\explorer\lib\explorer.py", line 1618, in _open_location_task
  File "C:/Program Files/Bazaar/plugins\explorer\lib\location_viewer.py", line 161, in add_location
  File "C:/Program Files/Bazaar/plugins\explorer\lib\location.py", line 178, in view
  File "C:/Program Files/Bazaar/plugins\explorer\lib\view_repository.py", line 272, in ui
  File "C:/Program Files/Bazaar/plugins\explorer\lib\view_repository.py", line 277, in refresh_view
  File "C:/Program Files/Bazaar/plugins\explorer\lib\view_repository.py", line 287, in _update_view
  File "C:/Program Files/Bazaar/plugins\explorer\lib\view_repository.py", line 394, in _update_model
  File "C:/Program Files/Bazaar/plugins\explorer\widgets\conditional_dataview.py", line 109, in setData
  File "C:/Program Files/Bazaar/plugins\explorer\widgets\conditional_dataview.py", line 172, in set_raw_data
TypeError: argument 1 of PyQt4.QtCore.QVariant() has an invalid type

bzr 2.2.1 on python 2.6.4 (win32)
arguments: ['C:\\Program Files\\Bazaar\\bzrw.exe', 'explorer']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.2.0]
  colo C:\Program Files\Bazaar\plugins\colo [0.1.0]
  explorer C:\Program Files\Bazaar\plugins\explorer [1.1.0]
  fastimport C:\Program Files\Bazaar\plugins\fastimport [0.9.0dev]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.2.1]
  loom C:\Program Files\Bazaar\plugins\loom [2.2.1dev]
  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store [2.2.1]
  news_merge C:\Program Files\Bazaar\plugins\news_merge [2.2.1]
  pipeline C:\Program Files\Bazaar\plugins\pipeline [unknown]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.19.2]
  rewrite C:\Program Files\Bazaar\plugins\rewrite [0.6.1]
  svn C:\Program Files\Bazaar\plugins\svn [1.0.4]
  upload C:\Program Files\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\Program Files\Bazaar\plugins\xmloutput [0.8.6]

Revision history for this message
kylef (kylef) wrote :

If I open "trunk" everything seems ok. I can add/commit, get logs, etc. But if I then click on the parent repo in the locations tab/tree, I get the same error (as above) again.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 652450] Re: exceptions.TypeError: argument 1 of PyQt4.QtCore.QVariant() has an invalid type

kylef пишет:
> If I open "trunk" everything seems ok. I can add/commit, get logs, etc.
> But if I then click on the parent repo in the locations tab/tree, I get
> the same error (as above) again.

Sorry for inconvenience, there is bugfix in the lp:bzr-explorer branch,
if you can test it with the operation listed above I'd be very grateful.
See duplicate master bug or details.

Revision history for this message
kylef (kylef) wrote : Re: [Bug 652450] Re: exceptions.TypeError: argument 1 of PyQt4.QtCore.QVariant() has an invalid type
Download full text (5.2 KiB)

The change you made to condition_dataview.py in r492 appears to have
fixed the bug completely. Thanks!

The only other thing to report is that I get a warning which might
just be because I dropped the development version into C:\Program
Files\Bazaar\plugins\explorer where I previously had version 1.1.0
from the Windows Standalone Installer. Here is the full text of the
repo creation:

Run command: bzr new --feature-branches --create-prefix --format 2a -P
move-existing D:/SourceControl/Project_X/Backend
invalid syntax (<string>, line 1)
Unable to load u'explorer-1.1.0' in u'C:/Program Files/Bazaar/plugins'
as a plugin because the file path isn't a valid module name; try
renaming it to u'explorer_1_1_0'.
Created repository at D:/SourceControl/Project_X/Backend
Created branch at D:/SourceControl/Project_X/Backend/trunk
Moving files from D:/SourceControl/Project_X/Backend to
D:/SourceControl/Project_X/Backend/trunk ...
src
README.TXT
Moved 1 directory, 1 file and 0 links.

Obviously, I can live with the warning. Thanks!

On Fri, Oct 1, 2010 at 4:03 AM, Alexander Belchenko <email address hidden> wrote:
> *** This bug is a duplicate of bug 650708 ***
>    https://bugs.launchpad.net/bugs/650708
>
> kylef пишет:
>> If I open "trunk" everything seems ok.  I can add/commit, get logs, etc.
>> But if I then click on the parent repo in the locations tab/tree, I get
>> the same error (as above) again.
>
> Sorry for inconvenience, there is bugfix in the lp:bzr-explorer branch,
> if you can test it with the operation listed above I'd be very grateful.
> See duplicate master bug or details.
>
> ** This bug has been marked a duplicate of bug 650708
>   Crashes when trying to open project
>  * You can subscribe to bug 650708 by following this link: https://bugs.launchpad.net/bzr-explorer/+bug/650708/+subscribe
>
> --
> exceptions.TypeError: argument 1 of PyQt4.QtCore.QVariant() has an invalid type
> https://bugs.launchpad.net/bugs/652450
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bazaar Explorer: New
>
> Bug description:
>
> New installation of bzr 2.2.1 on Windows XP.
>
> Tried to start a new repository (using Feature Branches model) on existing source tree (600 MB total size) with the "Create Parent Locations" and "Move Existing Files to Working Tree" options both selected.  Seemed to work, but when I click "close" on the init dialog, I get the following error in a large popup window telling me to report it here.
>
> And although the existing files did get moved to "trunk" and .bzr folders were created attempting to open the shared repo gives the same error.  Opening the working tree ("trunk") works fine.
>
> I think everything might be ok but this is a scary error.  Did I break something?
>
> bzr: ERROR: exceptions.TypeError: argument 1 of PyQt4.QtCore.QVariant() has an invalid type
>
> Traceback (most recent call last):
>  File "C:/Program Files/Bazaar/plugins\explorer\lib\explorer.py", line 1450, in callable_with_cleanup
>  File "C:/Program Files/Bazaar/plugins\explorer\lib\explorer.py", line 1618, in _open_location_task
>  File "C:/Program Files/Bazaar/plugins\explorer\lib\location_viewer.py", line ...

Read more...

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 652450] Re: exceptions.TypeError: argument 1 of PyQt4.QtCore.QVariant() has an invalid type

kylef пишет:
> *** This bug is a duplicate of bug 650708 ***
> https://bugs.launchpad.net/bugs/650708
>
> The change you made to condition_dataview.py in r492 appears to have
> fixed the bug completely. Thanks!
>
> The only other thing to report is that I get a warning which might
> just be because I dropped the development version into C:\Program
> Files\Bazaar\plugins\explorer where I previously had version 1.1.0
> from the Windows Standalone Installer. Here is the full text of the
> repo creation:
>
> Run command: bzr new --feature-branches --create-prefix --format 2a -P
> move-existing D:/SourceControl/Project_X/Backend
> invalid syntax (<string>, line 1)
> Unable to load u'explorer-1.1.0' in u'C:/Program Files/Bazaar/plugins'
> as a plugin because the file path isn't a valid module name; try
> renaming it to u'explorer_1_1_0'.

IIUC, you have renamed folder with old explorer code to
explorer-1.1.0, and put the new code as just explorer folder. You
should not keep explorer-1.1.0 in the plugin folder root, but you can
create some subfolder, e.g. C:\Program Files\Bazaar\plugins\_DISABLED
and move old explorer into it.

Revision history for this message
kylef (kylef) wrote : Re: [Bug 652450] Re: exceptions.TypeError: argument 1 of PyQt4.QtCore.QVariant() has an invalid type

On Fri, Oct 1, 2010 at 10:43 AM, Alexander Belchenko <email address hidden> wrote:
> IIUC, you have renamed folder with old explorer code to
> explorer-1.1.0, and put the new code as just explorer folder. You
> should not keep explorer-1.1.0 in the plugin folder root, but you can
> create some subfolder, e.g. C:\Program Files\Bazaar\plugins\_DISABLED
> and move old explorer into it.

You're right! Yes, of course. My bad. Thanks for the reminder and
big thanks for the quick fix to the real issue.

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.