Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] SyntaxError with python3 update
@ 2022-03-25 21:12 dkwo
  2022-03-26  2:30 ` [ISSUE] [CLOSED] " ahesford
  2022-03-26  2:30 ` ahesford
  0 siblings, 2 replies; 3+ messages in thread
From: dkwo @ 2022-03-25 21:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 853 bytes --]

New issue by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/36347

Description:
@ahesford Just wanted to point out, in case it is relevant.
With today's python3 update, I noticed:
```
[*] Configuring unpacked packages
python3-3.10.4_1: configuring ...
Byte-compiling python code in usr/lib/python3.10...
*** Error compiling './usr/lib/python3.10/site-packages/trimesh/resources/templates/blender_boolean.py'...
  File "./usr/lib/python3.10/site-packages/trimesh/resources/templates/blender_boolean.py", line 39
    mesh_pre = $MESH_PRE
               ^
SyntaxError: invalid syntax

Byte-compiling python3.10 code for module README.txt...
Updating ldconfig(8) cache...
python3-3.10.4_1: updated successfully.
python3-devel-3.10.4_1: configuring ...
python3-devel-3.10.4_1: updated successfully.
```

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ISSUE] [CLOSED] SyntaxError with python3 update
  2022-03-25 21:12 [ISSUE] SyntaxError with python3 update dkwo
@ 2022-03-26  2:30 ` ahesford
  2022-03-26  2:30 ` ahesford
  1 sibling, 0 replies; 3+ messages in thread
From: ahesford @ 2022-03-26  2:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]

Closed issue by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/36347

Description:
@ahesford Just wanted to point out, in case it is relevant.
With today's python3 update, I noticed:
```
[*] Configuring unpacked packages
python3-3.10.4_1: configuring ...
Byte-compiling python code in usr/lib/python3.10...
*** Error compiling './usr/lib/python3.10/site-packages/trimesh/resources/templates/blender_boolean.py'...
  File "./usr/lib/python3.10/site-packages/trimesh/resources/templates/blender_boolean.py", line 39
    mesh_pre = $MESH_PRE
               ^
SyntaxError: invalid syntax

Byte-compiling python3.10 code for module README.txt...
Updating ldconfig(8) cache...
python3-3.10.4_1: updated successfully.
python3-devel-3.10.4_1: configuring ...
python3-devel-3.10.4_1: updated successfully.
```

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SyntaxError with python3 update
  2022-03-25 21:12 [ISSUE] SyntaxError with python3 update dkwo
  2022-03-26  2:30 ` [ISSUE] [CLOSED] " ahesford
@ 2022-03-26  2:30 ` ahesford
  1 sibling, 0 replies; 3+ messages in thread
From: ahesford @ 2022-03-26  2:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/36347#issuecomment-1079571203

Comment:
This is an expected side effect of the XBPS trigger that pre-compiles Python source and has been present for some time. The trigger uses the `compileall` module to recursively compile Python source in a module directory. The `blender_boolean.py` file responsible for the error is not valid Python source, but a template that is rendered by... something. (I'm not familiar with this package and don't know where it's used.)

Even if we made the trigger more sophisticated to avoid attempts to compile contents that obviously aren't Python source (the trigger used to try compiling a README for one package!), this particular case would be nearly impossible to detect and avoid because it has a `.py` extension and lives in a Python package hierarchy. The right fix here is for `trimesh` upstream to use a different location or extension for this file; it isn't valid Python until rendered and shouldn't masquerade as such.
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-26  2:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25 21:12 [ISSUE] SyntaxError with python3 update dkwo
2022-03-26  2:30 ` [ISSUE] [CLOSED] " ahesford
2022-03-26  2:30 ` ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).