Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

setting cpu affinity doesn't work on py3 #3973

@Valodim

Description

@Valodim
python[8411]: 2018-09-27 18:54:25,831 - root - 212 - WARNING - None- ***** STARTING SERVER *****
python[8411]: 2018-09-27 18:54:25,848 - root - 215 - WARNING - None- Server /home/valodim/cpy/lib/python3.5/site-packages/synapse/app/homeserver.py v
python[8411]: 2018-09-27 18:54:25,858 - twisted - 243 - WARNING - None- /home/valodim/cpy/lib/python3.5/site-packages/psycopg2/__init__.py:144: built
python[8411]: 2018-09-27 18:54:26,048 - twisted - 243 - ERROR - - ******************************************************
python[8411]: 2018-09-27 18:54:26,049 - twisted - 243 - ERROR - -  Missing package 'affinity' required for cpu_affinity
python[8411]: 2018-09-27 18:54:26,050 - twisted - 243 - ERROR - -  option
python[8411]: 2018-09-27 18:54:26,050 - twisted - 243 - ERROR - -
python[8411]: 2018-09-27 18:54:26,051 - twisted - 243 - ERROR - -  Install by running:
python[8411]: 2018-09-27 18:54:26,051 - twisted - 243 - ERROR - -
python[8411]: 2018-09-27 18:54:26,052 - twisted - 243 - ERROR - -     pip install affinity
python[8411]: 2018-09-27 18:54:26,052 - twisted - 243 - ERROR - -
python[8411]: 2018-09-27 18:54:26,052 - twisted - 243 - ERROR - -
python[8411]: 2018-09-27 18:54:26,053 - twisted - 243 - ERROR - - ******************************************************

the affinity package is installed, I ran pip in that virtualenv to make sure, and checked it's there in site-packages. not sure why synapse can't find the package.

perhaps the setting no longer makes sense with py3? anyways this prevents synapse from starting for me. commenting out the setting works fine, however.

This is on 0.33.5.1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions