-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ubuntu 20.04 + python3 packages #1419
Comments
I've run into this on ubuntu also. For whatever reason I guess they stopped shipping a pyside2-uic with pyside2-tools. It seems like some people get around this by installing a package from a third party ppa, Personally I have sometimes resorted to just copying I'm not sure if USD could fix this in the build system. It seems more like an issue with the ubuntu pyside2 packages. Here's that patch. I was going to attach it, but it seems like you can't do that in github issues.
|
thanks. |
Filed as internal issue #USD-6524 |
hi,
great to hear you got it working, which qt install does this use? I mentioned using uic -g python in the issue and failing, but at the time the qt5 package provided by ubuntu did not come with a python generator so this didn’t work “out of the box”.
On Mar 23, 2021, at 1:33 AM, Cedric PAILLE ***@***.******@***.***>> wrote:
Hi,
I found a way to workaround this issue on Ubuntu 20. I created a bash script named pyside2-uic (don't forget to give it executable flag) that's in in $PATH :
#!/bin/bash
uic -g python $3 -o $2
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#1419 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABJPP3D2EUJENAFGG4ESP4TTFBG3XANCNFSM4VBUM5RA>.
|
Sorry, I deleted my post, I thought it was working, but it generated C++ code. I had to install pyside2-uic with pip3 install pyside2 |
got it, yeah same story. |
For me, the USD build scrip works fine under Ubuntu 20.04 and Python3.
I installed both packages locally, I haven't tested a global install without |
I am seeing a similar issue while reviewing a candidate USD package for Fedora Linux. I think upstream should support using cat > uic-wrapper <<'EOF'
#!/bin/sh
exec uic-qt5 -g python "$@"
EOF
chmod +x uic-wrapper Then, in the CMake options: -DPXR_USE_PYTHON_3:BOOL=ON \
-DPYSIDE_AVAILABLE:BOOL=ON \
-DPYSIDEUICBINARY:PATH="${PWD}/uic-wrapper" Note that the UI compiler is needed only at build time. This is similar to what @carsonbrownlee suggested, but a little simpler, and without altering the |
remind me when it's not python2 anymore, the software archive debian doesn't support python2 anymore.
|
@alexmyczko Where are you seeing Python 2 required? USD no longer supports Python 2 as of 23.05 and both PySide2 and PySide6 support Python 3. |
I'm going to go ahead and close out this issue as it is 2 years old and no longer relevant. |
@sunyab when i try this:
I then end up with
but
|
on Debian i've got these:
|
@carsonbrownlee does this work for you on Ubuntu 22.04? |
yeah unfortunately it's a bit of a game of version roulette on many systems and I believe there are some posted issues related to python 3.11 on previous releases. On USD 22.03 I am able to build on mac with python 3.9 and PySide 6 (installed via pip3.9) currently. I got 22.03 building on ubuntu as well, but suspect it may have similar issues with python 3.11. |
@alexmyczko Just noting that |
@sunyab so I got this far:
but that failed at
i was missing PySide6, let me try with that added... thanks for the feedback aha now it says:
which is here: http://sid.ethz.ch/debian/usd/usd-23.05/build_scripts/log.txt |
Description of Issue
I realize that python3 support is new and ubuntu is not listed as one of the tested distros, but I'm submitting this for anyone having similar issues with ubuntu release packages and USD with python3 (python2 is no longer shipped as part of ubuntu packages). It seams that pyside2-tools package (5.14.0) on ubuntu (and apparently arch as well now) no longer ship with pyside2-uic. According to google, this seems to be because pyside2 now favors using qt5's uic generator with python, "uic -g python", however users have reported that the output is compatible with pyqt5, not pyside. The standard release ubuntu packages for qt5 also do not include a python generator, so you would need to build/download ones outside of official ubuntu packages. My eventual workaround was just to install python2.7 from scripts outside of the package manager. Other steps tried: 1. pip3 pyside-utils missing for python3.8.
2. I added uic -g python in the cmake generator scirpt. It was not working due to lack of python generator in shipped qt5.
It does not produce an error, but simply generates java code without notice. Apparently it may have issues with pyside2 (vs pyqt5) anyway.
3. pyqt5 is listed as supported on USD docs, but is not called from the cmake generators. I added code to use pyqt5 instead of pyside2, but ran into issues with the generated code.
Steps to Reproduce
System Information (OS, Hardware)
ubuntu 20.04 amd64
Package Versions
pyside2-tools 5.14.0
python 3.8.5
Build Flags
python3 enabled, usdview
The text was updated successfully, but these errors were encountered: