Ubuntu 22.04

Tech support and suggestions forum. If you only have a basic question on how to get started, please use the "newbies" forum in the community section.

Moderator: joepal

Re: Ubuntu 22.04

Postby gus812 » Wed Dec 28, 2022 1:44 pm

Yes
gus812
 
Posts: 3
Joined: Tue Dec 27, 2022 6:59 pm
Location: TEXAS

Re: Ubuntu 22.04

Postby gus812 » Wed Dec 28, 2022 9:49 pm

Also managed to install from ppa. Still have same problem.
gus812
 
Posts: 3
Joined: Tue Dec 27, 2022 6:59 pm
Location: TEXAS

Re: Ubuntu 22.04

Postby whytry313 » Mon Jan 22, 2024 3:07 pm

Managed to make it work but it's kind of a ride, so if you are ready to tweak and hope for the best there it is:

1) Impish installation: APT latest realease to this date
Link: https://launchpad.net/~makehuman-official/+archive/ubuntu/makehuman-community

Code: Select all
# Add the repo
sudo add-apt-repository ppa:makehuman-official/makehuman-community

# Edit the repo file
sudo nano /etc/apt/sources.list.d/makehuman-official-ubuntu-makehuman-community-jammy.list

# replace "jammy" by "impish", it should look like this:
deb https://ppa.launchpadcontent.net/makehuman-official/makehuman-community/ubuntu/ impish main

# close+save (Ctrl+x and "y" to save changes), and update apt
sudo apt update

# install makehuman
sudo apt install makehuman-community

# Recommended but not required: install recommended packages
sudo apt install libgle3 python3-tk


2) Python 3.9 to 3.10 errors: the "'collections' has no attribute 'MutableSet'" error
Link: https://stackoverflow.com/questions/74006130/attributeerror-module-collections-has-no-attribute-mutableset

Basically "collections.MutableSet" and "collections.Callable" where moved to "collections.abc.MutableSet" and "collections.abc.Callable"
If you know what you are doing, the idea is to replace each collections[ Callable | MutableSet ], by collections.abc[ Callable | MutableSet ] in /usr/share/makehuman-community/,
any good IDE with find and replace can do this, tho this date, the 1.2.0 final should find 3 instances of collections.Callable and 1 instace of collections.MutableSet listed in the code below

- represents the edited line, + represents what the line should be (don't include them while pasting)
Code: Select all
# /usr/share/makehuman-community/lib/language.py: Line 116
- class OrderedSet(collections.MutableSet):
+ class OrderedSet(collections.abc.MutableSet):

# /usr/share/makehuman-community/lib/log.py: Line 249
- if hasattr(logging, "captureWarnings") and isinstance(logging.captureWarnings, collections.Callable):
+ if hasattr(logging, "captureWarnings") and isinstance(logging.captureWarnings, collections.abc.Callable):

# /usr/share/makehuman-community/core/guicommon.py: Line 145
- if not self._view or not isinstance(self._view, collections.Callable):
+ if not self._view or not isinstance(self._view, collections.abc.Callable):

# /usr/share/makehuman-community/apps/gui/guimodifier.py: Line 202
- if hasattr(gui3d.app, cameraName) and isinstance(getattr(gui3d.app, cameraName), collections.abc.Callable):
+ if hasattr(gui3d.app, cameraName) and isinstance(getattr(gui3d.app, cameraName), collections.abc.Callable):


3) Loading Progress crash
Link: https://www.geeksforgeeks.org/how-to-convert-float-to-int-in-python/

A simple type error crashes the program, a Int value is expected on the loading window but a Float is passed,
a quick fix should be applied by casting that float into a integer

again, - represents the edited line, + represents what the line should be (don't include them while pasting)
Code: Select all
# /usr/share/makehuman-community/lib/qtgui.py: Line 978
- self.setValue(min_ + progress * (max_ - min_))
+ self.setValue(int(min_ + progress * (max_ - min_)))


4) Run the program
The program should now run, If at this point the program still doesn't run you might want to inpect the errors or wait for a good samaritan to reply to your comment
whytry313
 
Posts: 1
Joined: Mon Jan 22, 2024 2:32 pm

Re: Ubuntu 22.04

Postby j2l » Mon Mar 18, 2024 3:13 pm

Thank you so much!!
I was about to switch to something else and I found your detailed workaround that works perfectly.
I really appreciate your help.

[quote="whytry313"]Managed to make it work but it's kind of a ride, so if you are ready to tweak and hope for the best there it is:
j2l
 
Posts: 2
Joined: Wed Jan 01, 2020 9:19 am

Previous

Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron