Skip to content

Commit a15ba94

Browse files
committed
fix: syncplay server errors
1 parent 1604c2a commit a15ba94

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ RUN cat /dev/null > requirements_gui.txt
1010
RUN SNAPCRAFT_PART_BUILD=1 pip wheel --wheel-dir /wheels/ ./
1111

1212
FROM ${PYTHON} AS syncplay
13+
WORKDIR /wheels/
14+
RUN pip wheel PyYaml
1315
COPY --from=builder /wheels/ /wheels/
1416
WORKDIR /release/local/lib/
1517
RUN mkdir $(basename /usr/local/lib/python3.*/) && cd ./python3.*/ && \

boot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def temp_file(file: str, content: str) -> str:
2323
""" Create and save content to temporary files. """
2424
file = os.path.join('/tmp/', file)
2525
with open(file, 'w') as fp:
26-
fp.write(f'{content}\n')
26+
fp.write(content)
2727
return file
2828

2929

@@ -67,7 +67,7 @@ def load_config(args: dict[str, Any], file: str) -> dict[str, Any]:
6767

6868
def build_args(opts: dict):
6969
""" Construct the startup arguments for syncplay server. """
70-
args = ['--port', opts.get('port', '8999')]
70+
args = ['--port', str(opts.get('port', 8999))]
7171
if 'password' in opts:
7272
args += ['--password', opts['password']]
7373
if 'motd' in opts:

0 commit comments

Comments
 (0)