Skip to content
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

Incompatible with Blender 4.2 #20

Open
smlpt opened this issue Aug 16, 2024 · 5 comments
Open

Incompatible with Blender 4.2 #20

smlpt opened this issue Aug 16, 2024 · 5 comments
Assignees

Comments

@smlpt
Copy link

smlpt commented Aug 16, 2024

I tried to run the addon installer on a portable Blender 4.2 instance, but it threw the error:

Exception

java.lang.RuntimeException: Installation of the dependencies for the mastodon_blender_view addon failed:
Looking in links: c:\Users\pantze28\AppData\Local\Temp\tmp3jkh76fh
Requirement already satisfied: setuptools in c:\software\blender-4.2.0-windows-x64\4.2\python\lib\site-packages (63.2.0)
Requirement already satisfied: pip in c:\software\blender-4.2.0-windows-x64\4.2\python\lib\site-packages (23.2.1)
Blender 4.2.0 (hash a51f293548ad built 2024-07-16 06:29:33)

Blender quit

	at org.mastodon.blender.setup.BlenderSetupUtils.installAddon(BlenderSetupUtils.java:66)
	at org.mastodon.blender.setup.BlenderSetupController.installAddonThread(BlenderSetupController.java:126)
	at java.lang.Thread.run(Thread.java:750)

Trying the same with a portable Blender 4.1 works fine.

@maarzt
Copy link
Collaborator

maarzt commented Aug 26, 2024

@smlpt Thank you for the reporting the issue. The Mastodon Blender View plugin installs a view packages into Blender. Here it seems the installation script fails because in Blender 4.2 "setuptools" and "pip" are already installed. I think the problem can be easily solved with a few modifications to the install script. It should test if a package is installed before trying to install it. I will look into this.

@maarzt maarzt self-assigned this Aug 26, 2024
@maarzt
Copy link
Collaborator

maarzt commented Aug 26, 2024

I tried to reproduce the problem on my machine. But both Blender 4.2.0 and 4.2.1 works fine. I'm using linux / ubuntu so maybe it is windows specific. I don't know. But this mean it will be a lot identify the problem.

My assumption that there is a problem with already installed packages also appears to be wrong. I get the same warnings:

Requirement already satisfied: setuptools in c:\software\blender-4.2.0-windows-x64\4.2\python\lib\site-packages (63.2.0)
Requirement already satisfied: pip in c:\software\blender-4.2.0-windows-x64\4.2\python\lib\site-packages (23.2.1)

But for me the installation works fine.

@maarzt
Copy link
Collaborator

maarzt commented Aug 26, 2024

@smlpt Could you help me debug the problem, please. Could you try to execute this script (install_addon.py) in Blender 4.2. Something like: > blender.exe --background --python install_addon.py should do the trick. The interesting part is whether or not blender prints "dependencies installed" and if there are other error messages.

@maarzt
Copy link
Collaborator

maarzt commented Aug 26, 2024

We failed to reproduce the problem even on another Windows machine. @smlpt Could you try again. Is there something that might be different on your machine?

@smlpt
Copy link
Author

smlpt commented Aug 27, 2024

Running the addon with mobile Blender 4.1 gives me this:

Details

Blender 4.1.1 (hash e1743a0317bc built 2024-04-15 23:33:30)
Read prefs: "C:\Users\pantze28\AppData\Roaming\Blender Foundation\Blender\4.1\config\userpref.blend"
Looking in links: c:\Users\pantze28\AppData\Local\Temp\tmpygd8oj__
Requirement already satisfied: setuptools in c:\software\blender-4.1.1-windows-x64\4.1\python\lib\site-packages (63.2.0)
Requirement already satisfied: pip in c:\software\blender-4.1.1-windows-x64\4.1\python\lib\site-packages (23.2.1)

[notice] A new release of pip is available: 23.2.1 -> 24.2
[notice] To update, run: C:\Software\blender-4.1.1-windows-x64\4.1\python\bin\python.exe -m pip install --upgrade pip
dependencies installed
Traceback (most recent call last):
  File "C:\Users\pantze28\Pictures\install_addon.py", line 73, in <module>
    addon_zip = argv[argv.index('--') + 1]
                     ^^^^^^^^^^^^^^^^
ValueError: '--' is not in list

Blender quit

When I run it with portable v4.2.1, I get:

Details

Blender 4.2.1 LTS (hash 396f546c9d82 built 2024-08-19 11:29:52)
Looking in links: c:\Users\pantze28\AppData\Local\Temp\tmpedlc_fbu
Requirement already satisfied: setuptools in c:\software\blender-4.2.1-windows-x64\4.2\python\lib\site-packages (63.2.0)
Requirement already satisfied: pip in c:\software\blender-4.2.1-windows-x64\4.2\python\lib\site-packages (23.2.1)

[notice] A new release of pip is available: 23.2.1 -> 24.2
[notice] To update, run: C:\Software\blender-4.2.1-windows-x64\4.2\python\bin\python.exe -m pip install --upgrade pip
Traceback (most recent call last):
  File "C:\Users\pantze28\Pictures\install_addon.py", line 61, in <module>
    import bidict
ModuleNotFoundError: No module named 'bidict'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\pantze28\Pictures\install_addon.py", line 66, in <module>
    raise Exception("dependency installation failed")
Exception: dependency installation failed

Blender quit

When trying to install the addon from the Mastodon setup window, I get the same error as already shared in the original post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants