<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>51184</bug_id>
          
          <creation_ts>2024-08-18 11:39:11 +0300</creation_ts>
          <short_desc>Не запускается usdview</short_desc>
          <delta_ts>2024-08-19 12:40:59 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>OpenUSD</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aleksandr Sysoev">sysoevas</reporter>
          <assigned_to name="Grigory Ustinov">grenka</assigned_to>
          <cc>grenka</cc>
    
    <cc>lakostis</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>250172</commentid>
    <comment_count>0</comment_count>
    <who name="Aleksandr Sysoev">sysoevas</who>
    <bug_when>2024-08-18 11:39:11 +0300</bug_when>
    <thetext>workstation-10.2-x86-64 обновленный до Sisyphus

Шаги воспроизведения:
1. # apt-get install OpenUSD python3-module-pyside6 python3-module-pyside6-devel
2. Запустить $ usdview или Меню приложений - usdview

Ожидаемый результат:
Запуск выполнен успешно

Реальный результат:
Traceback (most recent call last):
  File &quot;/usr/bin/usdview&quot;, line 28, in &lt;module&gt;
    import pxr.Usdviewq as Usdviewq
  File &quot;/usr/lib64/python3/site-packages/pxr/Usdviewq/__init__.py&quot;, line 32, in &lt;module&gt;
    from .qt import QtWidgets, QtCore
  File &quot;/usr/lib64/python3/site-packages/pxr/Usdviewq/qt.py&quot;, line 42, in &lt;module&gt;
    PySideModule = GetPySideModule()
                   ^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib64/python3/site-packages/pxr/Usdviewq/qt.py&quot;, line 31, in GetPySideModule
    from . import attributeValueEditorUI
  File &quot;/usr/lib64/python3/site-packages/pxr/Usdviewq/attributeValueEditorUI.py&quot;, line 11, in &lt;module&gt;
    from PySide2.QtCore import *  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named &apos;PySide2&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250180</commentid>
    <comment_count>1</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2024-08-18 14:45:00 +0300</bug_when>
    <thetext>(In reply to Aleksandr Sysoev from comment #0)
&gt; workstation-10.2-x86-64 обновленный до Sisyphus
&gt; 
&gt; Шаги воспроизведения:
&gt; 1. # apt-get install OpenUSD python3-module-pyside6
&gt; python3-module-pyside6-devel
&gt; 2. Запустить $ usdview или Меню приложений - usdview
&gt; 
&gt; Ожидаемый результат:
&gt; Запуск выполнен успешно
&gt; 
&gt; Реальный результат:
&gt; Traceback (most recent call last):
&gt;   File &quot;/usr/bin/usdview&quot;, line 28, in &lt;module&gt;
&gt;     import pxr.Usdviewq as Usdviewq
&gt;   File &quot;/usr/lib64/python3/site-packages/pxr/Usdviewq/__init__.py&quot;, line 32,
&gt; in &lt;module&gt;
&gt;     from .qt import QtWidgets, QtCore
&gt;   File &quot;/usr/lib64/python3/site-packages/pxr/Usdviewq/qt.py&quot;, line 42, in
&gt; &lt;module&gt;
&gt;     PySideModule = GetPySideModule()
&gt;                    ^^^^^^^^^^^^^^^^^
&gt;   File &quot;/usr/lib64/python3/site-packages/pxr/Usdviewq/qt.py&quot;, line 31, in
&gt; GetPySideModule
&gt;     from . import attributeValueEditorUI
&gt;   File
&gt; &quot;/usr/lib64/python3/site-packages/pxr/Usdviewq/attributeValueEditorUI.py&quot;,
&gt; line 11, in &lt;module&gt;
&gt;     from PySide2.QtCore import *  # type: ignore
&gt;     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
&gt; ModuleNotFoundError: No module named &apos;PySide2&apos;

Я не автор этого изменения, поэтому ничего не могу сказать:

* Tue Jan 02 2024 Grigory Ustinov &lt;grenka@altlinux.org&gt; 23.11-alt0.4                                                                                                                                                                                                                      
- NMU: dropped dependency on PySide2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250182</commentid>
    <comment_count>2</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2024-08-18 17:27:45 +0300</bug_when>
    <thetext>Проблема в общем-то понятна и достаточно очевидна. На PySide6 перевели, а генератору форм сообщить забыли.

Следующий патч исправляет сборку для x86_64:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250183</commentid>
    <comment_count>3</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2024-08-18 17:27:58 +0300</bug_when>
    <thetext>diff --git a/.gear/OpenUSD.spec b/.gear/OpenUSD.spec
index 45fee79df..7c7c8a1de 100644
--- a/.gear/OpenUSD.spec
+++ b/.gear/OpenUSD.spec
@@ -54,7 +54,7 @@ BuildRequires: gcc-c++
 BuildRequires: boost-devel boost-python3-devel
 BuildRequires: tbb-devel
 BuildRequires: pkgconfig(blosc) pkgconfig(dri) opensubdiv-devel
-BuildRequires: imath-devel &gt;= 3.0 openexr-devel pkgconfig(Qt5)
+BuildRequires: imath-devel &gt;= 3.0 openexr-devel pkgconfig(Qt6)
 BuildRequires: python3-module-OpenGL python3-module-jinja2 python3-dev
 BuildRequires: dos2unix help2man libstb-devel
 %{?_enable_alembic:BuildRequires: alembic-devel}
@@ -186,7 +186,7 @@ find . -type f -exec gawk &apos;/embree3/ { print FILENAME }&apos; &apos;{}&apos; &apos;+&apos; |
 # Fix uic-qt5 use
 cat &gt; uic-wrapper &lt;&lt;&apos;EOF&apos;
 #!/bin/sh
-exec uic-qt5 -g python &quot;$@&quot;
+exec /usr/lib64/qt6/libexec/uic -g python &quot;$@&quot;
 EOF
 chmod +x uic-wrapper</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250184</commentid>
    <comment_count>4</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2024-08-18 17:31:20 +0300</bug_when>
    <thetext>Я предлагаю мейнтейнеру пакета оформить это изменение так, чтобы работало для всех архитектур. Если нет желания этим заниматься, я могу убрать создание файла в спеке и добавить его отдельным скриптом, получающим на вход значение %_libdir. Просто мне кажется, что есть какое-то более элегантное решение, которого я не вижу.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250185</commentid>
    <comment_count>5</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2024-08-18 19:07:35 +0300</bug_when>
    <thetext>(In reply to Grigory Ustinov from comment #4)
&gt; Я предлагаю мейнтейнеру пакета оформить это изменение так, чтобы работало
&gt; для всех архитектур. Если нет желания этим заниматься, я могу убрать
&gt; создание файла в спеке и добавить его отдельным скриптом, получающим на вход
&gt; значение %_libdir. Просто мне кажется, что есть какое-то более элегантное
&gt; решение, которого я не вижу.

getconf LIBDIR? На самом деле архитектуры там всего 2 - x86_64 и aarch64. loongarch я не считаю поддерживаемой архитектурой поскольку апстрим не в курсе про нее.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250219</commentid>
    <comment_count>6</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2024-08-19 12:40:59 +0300</bug_when>
    <thetext>исправлено в 24.08-alt0.2. прошу проверить и закрыть баг если это так.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>