#2760: SyntaxWarnings Raised During Build Process with Python 3.12
Reporter: Thiago Assumpcao
Status: new
Milestone:
Version: ET_2023_05
Type: bug
Priority: major
Component: SimFactory
Comment (by Steven R. Brandt):
In particular, the problem comes about when this is called: `vv = eval(self.OriginalValue)`
This means that we could also cure it by putting an r in front of the quotes, e.g. `submitpattern = r'Submitted batch job (\d+)'`
Is this preferrable?
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2760/syntaxwarnings-ra…
#2760: SyntaxWarnings Raised During Build Process with Python 3.12
Reporter: Thiago Assumpcao
Status: new
Milestone:
Version: ET_2023_05
Type: bug
Priority: major
Component: SimFactory
Comment (by Steven R. Brandt):
It seems that the ini file reader is the thing complaining. The strings still are regular expressions, but if a regular expression is in a quoted string it should be understood with quoted string escape rules. If you prefer, we could remove the quote marks and convert `\\d` to `\d`.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2760/syntaxwarnings-ra…
#2760: SyntaxWarnings Raised During Build Process with Python 3.12
Reporter: Thiago Assumpcao
Status: new
Milestone:
Version: ET_2023_05
Type: bug
Priority: major
Component: SimFactory
Comment (by Roland Haas):
The Python changes look ok, but I would rather not have to duplicate all `\` and whatever else Python may consider special in the ini files. The strings are stated to be regular expressions in the docs and `\\d` is not the PCRE that matches a `1`.
Do you know where exactly it decides to interpret strings read from a file and do escape sequence processing on them?
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2760/syntaxwarnings-ra…
#2760: SyntaxWarnings Raised During Build Process with Python 3.12
Reporter: Thiago Assumpcao
Status: new
Milestone:
Version: ET_2023_05
Type: bug
Priority: major
Component: SimFactory
Comment (by Roland Haas):
Ouch, this is caused by strings in machine files? That will be much more of a problem than anticipated. For the ini parser: I would think it should not interpret the strings as anything, just strings. Is there a way to make it treat the input as raw strings.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2760/syntaxwarnings-ra…
#2760: SyntaxWarnings Raised During Build Process with Python 3.12
Reporter: Thiago Assumpcao
Status: new
Milestone:
Version: ET_2023_05
Type: bug
Priority: major
Component: SimFactory
Comment (by Steven R. Brandt):
The main problem seems to be the ini parser in 3.12. It complains about things like this:
```
submitpattern = 'Submitted batch job (\d+)'
```
The problem is that a `\d` is invalid inside a quoted string. To fix it, replace it with
```
submitpattern = 'Submitted batch job (\\d+)'
```
or
```
submitpattern = Submitted batch job (\d+)
```
Both seem to work.
There are also some problems with a few strings inside simfactory that need to be r-strings.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2760/syntaxwarnings-ra…
#2791: use apptainer rather than Docker for local getting started docs
Reporter: Roland Haas
Status: new
Milestone:
Version:
Type: enhancement
Priority: minor
Component:
Apptainer \([https://apptainer.org/docs/admin/main/installation.html#install-unprivileged-from-pre-built-binaries](https://apptainer.org/docs/admin/main/installation.html#install-unprivileged-from-pre-built-binaries)\) can be installed and run without root privileges and also integrates more nicely into the system by eg. making $HOME available and running as the user’s uid in the container.
It would seem to be more suitable than docker \(runs as root, files created are owned by root\) for a tutorial.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2791/use-apptainer-rat…