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

Value Error when trying to select the Addon #194

Open
loueeee opened this issue Feb 8, 2024 · 26 comments
Open

Value Error when trying to select the Addon #194

loueeee opened this issue Feb 8, 2024 · 26 comments

Comments

@loueeee
Copy link

loueeee commented Feb 8, 2024

Hello,

I am completely new to this and I am trying to export an environment (scene?) from Blender to OGRE. I installed it, following the readme and it worked fine. However, now when I want to "select" it by clicking the box I get this error. Does anyone have an idea of how to fix it?
Thank you so much in advance!

Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/3.5/scripts/modules/addon_utils.py", line 369, in enable
mod.register()
File "/Applications/Blender.app/Contents/Resources/3.5/scripts/addons/OGRECave blender2ogre master io_ogre/init.py", line 114, in register
bpy.utils.register_class(clazz)
ValueError: register_class(...): already registered as a subclass 'OGRE_MT_mini_report'

@sercero
Copy link
Collaborator

sercero commented Feb 8, 2024

"/Applications/Blender.app/Contents/Resources/3.5/scripts/addons/OGRECave blender2ogre master io_ogre/init.py", line 114, in register bpy.utils.register_class(clazz) ValueError: register_class(...): already registered as a subclass 'OGRE_MT_mini_report'

What is up with that path?

Is it really installed at "addons/OGRECave blender2ogre master io_ogre/"?

It should be "addons/io_ogre"...

You have to copy the folder "io_ogre" from the downloaded zip to the Blenders "addons" folder.

@loueeee
Copy link
Author

loueeee commented Feb 8, 2024

Screen Shot 2024-02-09 at 9 52 44 AM
Screen Shot 2024-02-09 at 9 54 07 AM

Thank you for your answer.

I am not sure why this path shows up. I added the zip in the Blenders "addons" folder. Would it be possible for my computer to look for these files in other folders?

@sercero
Copy link
Collaborator

sercero commented Feb 8, 2024

I am not sure why this path shows up. I added the zip in the Blenders "addons" folder. Would it be possible for my computer to look for these files in other folders?

No, that was a mistake.

The proper way to install the plugin is to download the zip in some folder, uncompress it and then copy only the io_ogre folder into Blenders add-ons folder

@loueeee
Copy link
Author

loueeee commented Feb 8, 2024

I thought that's what I did, is the io_ogre folder the ogre folder that we can see from my picture?

I am sorry if this is common sense, I am not used to doing this type of thing.

@loueeee
Copy link
Author

loueeee commented Feb 8, 2024

Screen Shot 2024-02-09 at 10 28 29 AM

I used this folder zipped to install the add on

@sercero
Copy link
Collaborator

sercero commented Feb 8, 2024

I used this folder zipped to install the add on

Oh, you zipped the folder io_ogre folder and then installed it?

I don't know what would that do, the "proper" way would be to unzip what you downloaded from the github repo and then from that zip copy only the "io_ogre" folder into the Blender add-ons folder.

From the screenshot it seems that you only have the contents of "io_ogre" in your addons Blender folder and that seems wrong.

In you Blenders add-on folder you should have other folders with io_something.

I understand that our way of installing the add-on is not the best.

I don't remember now why it was not possible to simply create an installable zip as other plugins do.

@loueeee
Copy link
Author

loueeee commented Feb 8, 2024

I only dowloaded the "io_ogre" folder from the GitHub, I then unzip it and copied that folder to the Blender "addons".

"From the screenshot it seems that you only have the contents of "io_ogre" in your addons Blender folder and that seems wrong."
Do you mean that there should be an extra folder in the "addons" folder called "io_ogre" with all the contents that I currently have?

"In your Blenders add-on folder you should have other folders with io_something."
The io_something folders should be the other preinstalled Blender addons?

@loueeee
Copy link
Author

loueeee commented Feb 8, 2024

I found other io_something files but in another path than where they are suppose to be in?
Screen Shot 2024-02-09 at 10 52 12 AM

@sercero
Copy link
Collaborator

sercero commented Feb 9, 2024

There might be something different in MacOS, unfortunately I'm not familiar with that Operating System.

The "io_ogre" folder should be with the other "io_{something}" folders.

That should be the "proper" way to install the addon.

I was just recapping how the Blender install addon works and that is incompatible with the way that github packages the repository and that is why we are not doing it that way.

@loueeee
Copy link
Author

loueeee commented Feb 9, 2024

Ok, no worries! Thank you very much for your help. I will keep on trying to understand this and hopefully make it work.

@loueeee
Copy link
Author

loueeee commented Feb 9, 2024

I am now having a different error.
Screen Shot 2024-02-09 at 11 20 44 AM

Edit: It was a typo in the code, it runs now. However, another error pops up

Screen Shot 2024-02-09 at 11 34 23 AM

@sercero
Copy link
Collaborator

sercero commented Feb 9, 2024

It seems that you didn't configure the plugin.

When you activate the plugin from the Blenders add-ons options there are some settings to configure like the path to your OGRE binaries

Also, the bug you found is legit (should be "Report.errors")

@loueeee
Copy link
Author

loueeee commented Feb 9, 2024

Ok thanks!
Do I need to change something here ?

@sercero
Copy link
Collaborator

sercero commented Feb 9, 2024

Are OgreXMLConverter and OgreMeshUpgrader in those paths?

@loueeee
Copy link
Author

loueeee commented Feb 9, 2024

No, they should be with the other files in addons, right?

@sercero
Copy link
Collaborator

sercero commented Feb 9, 2024

No, they are from your OGRE installation.

This add-on is to convert Blender files into OGRE .mesh files.

You should have OGRE already installed to use this.

@loueeee
Copy link
Author

loueeee commented Feb 9, 2024

Yes, I have OGRE installed but not those specific files OgreXMLConverter and OgreMeshUpgrader

@sercero
Copy link
Collaborator

sercero commented Feb 9, 2024

How did you install it (OGRE)?

Without those files (OgreXMLConverter being the most important) you won't be able to convert Blender files to OGRE mesh.

Are you sure those files are not present? Perhaps in Mac they have another extension.

@loueeee
Copy link
Author

loueeee commented Feb 9, 2024

I downloaded it from https://www.ogre3d.org/download/sdk/sdk-ogre
and followed the steps. I cannot seem to find those files, unfortunately.

Sorry this is frustrating, I have just never dealt with anything of this kind.

@sercero
Copy link
Collaborator

sercero commented Feb 9, 2024

But, which one did you download?

I think it would be better to continue the conversation in gitter

Because it is more interactive.

You can log in with your github account

@loueeee
Copy link
Author

loueeee commented Feb 9, 2024

Ok, I joined Gitter now!

I downloaded the source code, but I am not sure if there is anything else I need to do to install it ?

@sercero
Copy link
Collaborator

sercero commented Feb 9, 2024

Oh, you just downloaded the source code?

You have to build it...

@loueeee
Copy link
Author

loueeee commented Feb 9, 2024

Yes :( Building is referring to "installing" it?
I saw that I might need to use Cmake ?

Is there a way where I do not need to build it ?

@sercero
Copy link
Collaborator

sercero commented Feb 9, 2024

It does not seem like it for MacOS

You have to build it and then install it, yes using CMake

@loueeee
Copy link
Author

loueeee commented Feb 9, 2024

Ok, this will then be my next challenge. Thank you for your continuous help!

@sercero
Copy link
Collaborator

sercero commented Feb 9, 2024

You can use ogre-python to avoid having to compile things and it is more user friendly

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

No branches or pull requests

3 participants