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

Mulitple SyntaxWarnings #233

Open
egore opened this issue Jan 3, 2025 · 1 comment
Open

Mulitple SyntaxWarnings #233

egore opened this issue Jan 3, 2025 · 1 comment
Labels
needs more info Needs more information from user

Comments

@egore
Copy link

egore commented Jan 3, 2025

When running ucupaint 2.1.5 on Blender 4.3.2 with Python 3.13.1 the following messages are displayed in the console:

/usr/share/blender/4.3/extensions/system/ucupaint/common.py:1904: SyntaxWarning: invalid escape sequence '\.'
  m = re.match(r'^' + group_name + '_Copy\.*\d{0,3}$', prev_tree.name)
/usr/share/blender/4.3/extensions/system/ucupaint/common.py:1971: SyntaxWarning: invalid escape sequence '\.'
  m = re.match(r'^' + group_name + '_Copy\.*\d{0,3}$', prev_tree.name)
/usr/share/blender/4.3/extensions/system/ucupaint/common.py:4283: SyntaxWarning: invalid escape sequence '\.'
  m = re.match(r'^' + lib_name + '_Copy\.*\d{0,3}$', node.node_tree.name)
/usr/share/blender/4.3/extensions/system/ucupaint/UDIM.py:202: SyntaxWarning: invalid escape sequence '\.'
  m = re.match(r'' + re.escape(prefix) + '\.(\d{4})\.*', f)
/usr/share/blender/4.3/extensions/system/ucupaint/UDIM.py:372: SyntaxWarning: invalid escape sequence '\.'
  m = re.match(r'' + re.escape(prefix) + '\.\d{4}\.*', f)
/usr/share/blender/4.3/extensions/system/ucupaint/input_outputs.py:187: SyntaxWarning: invalid escape sequence '\]'
  match = re.match(r'^nodes\["' + channel.end_max_height_tweak + '"\]\.inputs\[(\d+)\]\.default_value$', fc.data_path)
/usr/share/blender/4.3/extensions/system/ucupaint/input_outputs.py:288: SyntaxWarning: invalid escape sequence '\]'
  match = re.match(r'^nodes\["' + channel.end_linear + '"\]\.inputs\[(\d+)\]\.default_value$', fc.data_path)
/usr/share/blender/4.3/extensions/system/ucupaint/input_outputs.py:318: SyntaxWarning: invalid escape sequence '\]'
  match = re.match(r'^nodes\["' + channel.end_linear + '"\]\.inputs\[(\d+)\]\.default_value$', fc.data_path)
/usr/share/blender/4.3/extensions/system/ucupaint/input_outputs.py:853: SyntaxWarning: invalid escape sequence '\]'
  m = re.match(r'^nodes\["' + layer_node.name + '"\]\.inputs\[(\d+)\]\.default_value$', fc.data_path)
/usr/share/blender/4.3/extensions/system/ucupaint/input_outputs.py:859: SyntaxWarning: invalid escape sequence '\]'
  m = re.match(r'^nodes\["' + layer_node.name + '"\]\.inputs\[(\d+)\]\.default_value$', driver.data_path)
/usr/share/blender/4.3/extensions/system/ucupaint/modifier_common.py:53: SyntaxWarning: invalid escape sequence '\]'
  match = re.match(r'^nodes\["' + m.rgb2i + '"\]\.inputs\[(\d+)\]\.default_value$', fc.data_path)
/usr/share/blender/4.3/extensions/system/ucupaint/modifier_common.py:84: SyntaxWarning: invalid escape sequence '\]'
  match = re.match(r'^nodes\["' + m.huesat + '"\]\.inputs\[(\d+)\]\.default_value$', fc.data_path)
/usr/share/blender/4.3/extensions/system/ucupaint/modifier_common.py:133: SyntaxWarning: invalid escape sequence '\]'
  match = re.match(r'^nodes\["' + m.brightcon + '"\]\.inputs\[(\d+)\]\.default_value$', fc.data_path)
/usr/share/blender/4.3/extensions/system/ucupaint/modifier_common.py:175: SyntaxWarning: invalid escape sequence '\]'
  match = re.match(r'^nodes\["' + m.math + '"\]\.inputs\[(\d+)\]\.default_value$', fc.data_path)

This happens as soon as the plugin gets enabled in the default scene.

@ucupumar
Copy link
Owner

ucupumar commented Jan 3, 2025

The warning didn't show up here, I'm still on python 3.11.9 tho, how can you update that?

@ucupumar ucupumar added the needs more info Needs more information from user label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Needs more information from user
Projects
None yet
Development

No branches or pull requests

2 participants