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

issue #346

Closed
loal007 opened this issue Jul 24, 2023 · 13 comments
Closed

issue #346

loal007 opened this issue Jul 24, 2023 · 13 comments

Comments

@loal007
Copy link

loal007 commented Jul 24, 2023

helloi have this issue on blender
blender cobra

@ilodev
Copy link
Collaborator

ilodev commented Jul 24, 2023

yeah, I was going to say the same.. adding the new success logging level on the config and not the logger setup makes all other tools error now:

ERROR:root:Could not create OVL: D:\steam\steamapps\common\Jurassic World Evolution 2\win64\ovldata\TestMod\Init.ovl

image

it is probably as simple as to enforce a logging_setup() call, but I'm not sure this will work with every other tool. I'll do some tests in sublime and come back

@ilodev
Copy link
Collaborator

ilodev commented Jul 24, 2023

for me adding these two lines worked.

from ovl_util.config import logging_setup
logging_setup(__name__)

@hexabits
Copy link
Contributor

for me adding these two lines worked.

from ovl_util.config import logging_setup
logging_setup(__name__)

Yes, to use logging you have to setup logging. The OP has a different issue.

@hexabits
Copy link
Contributor

hexabits commented Jul 24, 2023

@loal007 Do you have more than one plugin installed (and possibly enabled) at the same time? Check your add-ons list.

@ilodev
Copy link
Collaborator

ilodev commented Jul 24, 2023

No, the plugging isn't calling logging_setup() anywhere

I think it is the same issue.

@hexabits
Copy link
Contributor

hexabits commented Jul 24, 2023

No, the plugging isn't calling logging_setup() anywhere

I think it is the same issue.

It is not the same issue. Look at the exception message. Also, for Blender, logging_setup is called in __init__.py in the tools root.

@ilodev
Copy link
Collaborator

ilodev commented Jul 24, 2023

ah you are right, he has redefining issues, not undefined. My bad!!

@hexabits
Copy link
Contributor

Also @ilodev you need to be using Python 3.11 now.

@ilodev
Copy link
Collaborator

ilodev commented Jul 24, 2023

Also @ilodev you need to be using Python 3.11 now.

:( oh, I'm conflicted with this now, two days ago 3.8 was still usable 🗡️

@hexabits
Copy link
Contributor

Also @ilodev you need to be using Python 3.11 now.

:( oh, I'm conflicted with this now, two days ago 3.8 was still usable 🗡️

3.11 has been the recommended version for 5 months.

@ilodev
Copy link
Collaborator

ilodev commented Jul 24, 2023 via email

@hexabits
Copy link
Contributor

@loal007 We confirmed ourselves that you have this issue because you have two copies of the add-on installed and enabled. You will need to remove the duplicate. If you update to latest there is now a better warning message telling you that you've installed or enabled it twice.

@loal007
Copy link
Author

loal007 commented Aug 1, 2023

thanks for the answers

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

4 participants