Python problem
No python expert here. I'm trying to install openshot, a python-heavy application. I found Slackware64 -Current precompiled packaged on the ponce.cc website and installed them on my Slackware64-Current system. Slackware does not do dependency tracking. It's easier overall, but can be a pain occasionally.
First run, it complained for the lack of 'PyQt5' and 'classes' modules. I installed them with pip3, but made the mistake of doing it as a luser, so it put them in /home/user/.local/bin, which didn't solve things. So I installed them as root, but it preferred the user versions :/ Then I uninstalled them all, installed as root, and that satisfied PyQt5, but it still bellyaches over the classes module thusly Code:
bash-5.0$ openshot-qt |
I'll give you all the info that I can get my hands on.
Code:
pacman -Si openshot Code:
asp export openshot Code:
>>> import classes Code:
curl -LI https://github.com/OpenShot/openshot-qt/archive/v2.4.4.tar.gz |
|
2 Attachment(s)
i'm on current last updated to kernel 5.4.12 see image to see what i get for openshot
i went for cinelerra - compare the deps its not quite true that slackware doesn't do tracking of deps. By "diligent" use of slpkg , i've both installed what I want' kept what I want by blacklisting and still managed to upgrade from 4.9.75 to 5.4.12 using slackpkg |
@tekk & captain sensible: Thank you both for your replies.
@captain sensible: Python modules are a world apart from normal deps, because ldd doesn't reveal them. I'm glad you managed your kernel update, but kernels aren't really the worry. I've updated major kernel changes, and the only one I had real hassle with was kernel 2.x.x --> 3.x.x. @tekk. I think we have different openshot versions. You seem to have 2.4.4, I have 2.4.4 in an AppImage, but ponce had these 20191111 packages up and I'm trying them. That version wants classes. I went back to my error, specifically, this line Code:
ImportError: cannot import name 'info' from 'classes' (/usr/lib64/python3.8/site-packages/classes/__init__.py) Code:
bash-5.0$ cat /usr/lib64/python3.8/site-packages/classes/__init__.py Code:
Module: _openshot |
https://github.com/OpenShot/openshot...ee/develop/src
The original error Code:
File "/usr/lib64/python3.8/site-packages/openshot_qt/launch.py", line 47, in <module> https://raw.githubusercontent.com/Op.../src/launch.py line 47 Code:
try: https://raw.githubusercontent.com/Op...lasses/info.py This is the classes it's looking for: https://github.com/OpenShot/openshot...op/src/classes This is __init__.py for this python project https://raw.githubusercontent.com/Op...rc/__init__.py |
In my last post I neglected to mention that I had uninstalled classes with pip3 more than once, so I upgraded openshot with itself just to be sure.
I was right - zeromq it was. Now I get this: Code:
Traceback (most recent call last): |
That PKGBUILD has all the info that you need to build it from source. You may have to modify the $paths to fit slack.
You need all of the depends installed Code:
'ffmpeg' 'python-mlt' 'python-pyqt5' 'python-requests' 'libopenshot' Code:
'faac: for exporting audio using AAC' Code:
makedepends=('python-setuptools') https://github.com/OpenShot/openshot.../v2.4.4.tar.gz Patch for icons https://github.com/OpenShot/openshot-qt/pull/2837.patch Checksums for those files Code:
efa71f97a83b89e691b7dab09288ba7d3e91eb25119669fa8f6e28becb8d4cb3e60a923f936ee4ff9a593d016fe3a6b0348153cff937ab7d21a5517de5dfa10c Code:
patch -Np1 -i "../${pkgname}-hicolor-icons.patch" Code:
python setup.py build Code:
python setup.py install --skip-build --optimize=1 --prefix=/usr --root="${pkgdir}" |
I neglected to mention in my long post that as I had removed the classes module with pip3 more than once, I reinstalled openshot
As for the deps, there's more deps than that list. It needs zeromq (python3-zmq doesn't cut it afaik; I've exploded them both) libOpengl.so.5 is in the main qt5 package. Now ponce only has qt-5.9.9, but alien has 5.13.2, which is installed. So I'll have to hunt a later one, or stay on my AppImage, which is 2.4.4. I refuse to compile things, not because I can't, but because I won't. The openshot guys use the hardest to get latest versions of everything and seem to include a couple that haven't been written yet! So if there's a later Qt5 package, I'll use it. If there isn't, although qt5 is easy enough to compile, I'll stay on my AppImage. Thanks tekk for your help, but I'm not in the mood for suffering. I've certainly ran aground before on openshot before looking for software that wasn't up there. |
Final word on this: The latest qt package I can find is 5.13.2, from alien's repo. It's installed.
I also have qt-4.8.7; I have a separate thread asking if I still need this(just in case it's fouling things). My openshot appimage is dated July 2019 and is version 2.4.4. It can stay. |
Generate dependency graph
Quote:
Would you kind enough detail how you creating the dependency graph thumbnails. ? Looks a useful feature to know. Thanks |
Hello, Indus, & welcome to LQ.
That was a lively thread, but it's a year old at this stage, so I wouldn't post there. LQ rules suggest that if you have a problem, you post your own thread. It's often faster actually to search the threads on the site. Have a look at this: How_To_Ask_a_Question |
Thank you
Quote:
|
All times are GMT -5. The time now is 06:21 PM. |