Version numbers for dependencies?

If your topic doesn't fit anywhere else, put it here.

Moderator: joepal

Version numbers for dependencies?

Postby blindsaypatten » Sat Sep 30, 2017 7:56 pm

What are the current version numbers for python, NumPy, PyOpenGL, and PyQT used by the nightly builds? -Thanks!
blindsaypatten
 
Posts: 586
Joined: Tue Mar 14, 2017 11:16 pm

Re: Version numbers for dependencies?

Postby joepal » Sun Oct 01, 2017 11:45 am

The nightly builds use:

* python 3.4
* PySide 1.2.4 (instead of PyQT, PyQT4 is deprecated)
* PyOpenGL 3.1
* NumPy 1.12.1

If you install python 3.4 you can get all these dependencies installed via pip, for example "pip install pyside".

The release builds (1.1.1) use Python 2.7 and PyQT4. I don't remember the version numbers of the other dependencies.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4474
Joined: Wed Jun 04, 2008 11:20 am

Re: Version numbers for dependencies?

Postby blindsaypatten » Sun Oct 01, 2017 2:23 pm

Thanks. Is it recommended to install the latest 3.4 release (3.4.4) or the latest stable python 3 release (3.6.2)?
blindsaypatten
 
Posts: 586
Joined: Tue Mar 14, 2017 11:16 pm

Re: Version numbers for dependencies?

Postby Aranuvir » Sun Oct 01, 2017 2:50 pm

You will neither find Qt4 nor Pyside for P3.6 ...
Aranuvir
 
Posts: 1314
Joined: Sun Oct 12, 2014 2:12 pm

Re: Version numbers for dependencies?

Postby blindsaypatten » Sun Oct 01, 2017 5:15 pm

Aranuvir wrote:You will neither find Qt4 nor Pyside for P3.6 ...


Okay. I'm used to environments where what works in X.Y also works in X.Z.

Was using Qt.py (great name! https://fredrikaverpil.github.io/2016/0 ... ith-qt-py/ ) considered? It seems like being able to use pyside, pyside2, pyqt4 or pyqt5 would be quite nice. But I'm probably being hopelessly naive.
blindsaypatten
 
Posts: 586
Joined: Tue Mar 14, 2017 11:16 pm

Re: Version numbers for dependencies?

Postby joepal » Sun Oct 01, 2017 7:27 pm

We're already doing something like qt.py for seamlessly switching between pyqt4 and pyside. My guess is the work for switching to qt.py in order to support qt5 would be rougly the same as rewriting for qt5 directly, but this is without having studied it in any detail.

On windows you need exactly python 3.4 in order to get pyside, since the pyside guys grew bored with pyside and largely abandoned development on it around the point of python 3.4 in favor of pyside2 (which is for qt5). So on windows pyside isn't compatible with anything later than python 3.4. On linux you can get pyside builds for python version later than 3.4.

Pyside2 hasn't even reached alpha stage yet, and there are no official builds for windows.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4474
Joined: Wed Jun 04, 2008 11:20 am

Re: Version numbers for dependencies?

Postby RobBaer » Mon Oct 02, 2017 12:02 am

blindsaypatten wrote:Was using Qt.py (great name! https://fredrikaverpil.github.io/2016/0 ... ith-qt-py/ ) considered? It seems like being able to use pyside, pyside2, pyqt4 or pyqt5 would be quite nice. But I'm probably being hopelessly naive.


Not as trivial as it sounds for a program of MakeHuman's design. Joel already commented on what our status is, and I did spend some time looking at qt.py, but this was really an idea for us to have started with 5 years ago. At that time Jonas and others were busy designing and building core functionality, so future thinking for QT was the least of our worries, and it never happened.

At this point QT5 seems like our best path forward, and backward comparability with QT4 seems unnecessary with its end-of-life. Joel already got us limited support for pyside without qt.py and commented on the need for pyside2 to mature if we want QT5 support that is linked to the QT project itself. That may be the best eventual solution, but its not yet mature it seems.

There is an experimental python 3 branch of MakeHuman on github:
( https://github.com/makehumancommunity/m ... ree/py3qt5 ) where I began to move the py3 MakeHuman branch to qt5.

Others are welcome to contribute as time and skill permit. I've gone into "busy real-work season" for the immediate future.
User avatar
RobBaer
 
Posts: 1209
Joined: Sat Jul 13, 2013 3:30 pm
Location: Kirksville, MO USA

Re: Version numbers for dependencies?

Postby blindsaypatten » Mon Oct 02, 2017 1:02 am

So I installed Python 3.4.4 and then did a pip install numpy and pyopengl but when I tried pip install pyside it complained the nmake wasn't available, so I installed Visual [something] build tools which includes nmake. Then it said that cmake wasn't available, so I installed cmake. Then it said qmake wasn't available, so I installed Qt4.8.7 which includes qmake. Then it failed with "error: Error compiling shiboken". :(

Is there a way to install pyside without having to build it?

I don't suppose it would happen to be trivial to create a nightly build of a self-contained MakeHuman source distribution? Or a dependencies.zip like in the video?
blindsaypatten
 
Posts: 586
Joined: Tue Mar 14, 2017 11:16 pm

Re: Version numbers for dependencies?

Postby joepal » Mon Oct 02, 2017 10:56 am

Here's my procedure (tested now on a clean virtual machine) :

* Download and install *32-bit* python 3.4.4 from https://www.python.org/downloads/release/python-344/ (since it's the last one available with a binary installer for windows)
* Download and install "vcredist_x86" from https://www.microsoft.com/en-us/downloa ... x?id=26999
* pip install pyside
* pip install pyopengl
* pip install numpy==1.12.1

vcredist is MS's visual c++ redistributable compiler, and for python 3.4 you need version 10.0 (this is linked from https://wiki.python.org/moin/WindowsCompilers)
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4474
Joined: Wed Jun 04, 2008 11:20 am

Re: Version numbers for dependencies?

Postby blindsaypatten » Mon Oct 02, 2017 4:12 pm

I'm making progress...

I got all the way to running "python makehuman.py" but then I got
Code: Select all
...
SYS.VERSION: 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (Intel)]
SYS.PLATFORM: win32
SYS.EXECUTABLE: C:\Python34\python.exe
PLATFORM.MACHINE: AMD64
PLATFORM.PROCESSOR: AMD64 Family 21 Model 19 Stepping 1, AuthenticAMD
PLATFORM.UNAME.RELEASE: 10
PLATFORM.WIN32_VER: 10 10.0.15063  Multiprocessor Free
NUMPY.VERSION: 1.12.1
No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
Traceback (most recent call last):
  File "makehuman.py", line 834, in <module>
    main()
  File "makehuman.py", line 824, in main
    from mhmain import MHApplication
  File "./core\mhmain.py", line 46, in <module>
    import mh
  File "./lib\mh.py", line 50, in <module>
    from qtui import Keys, Buttons, Modifiers, Application
  File "./lib\qtui.py", line 51, in <module>
    import qtgui
  File "./lib\qtgui.py", line 157, in <module>
    class Tabs(QtWidgets.QTabWidget, TabsBase):
NameError: name 'QtWidgets' is not defined

So, what did I miss this time? Is there a pyqt5 I need to pip install?
Thanks for your help and patience.
blindsaypatten
 
Posts: 586
Joined: Tue Mar 14, 2017 11:16 pm

Next

Return to General discussions about makehuman

Who is online

Users browsing this forum: No registered users and 1 guest