simonrob / email-oauth2-proxy

An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method.
Apache License 2.0
833 stars 90 forks source link

Trying to setup emailproxy on macOS 14.7 #286

Closed kourosh2 closed 3 weeks ago

kourosh2 commented 3 weeks ago

Hi,

I am trying to setup emailproxy on macOS 14.7. I have installed emailproxy in my Python virtual environment "main" with Python 3.12.5, per instructions:

python -m pip install emailproxy

Below is the output of python -m pip list in the virtual environment. However, after I run emailproxy, I get `NameError: name 'SystemConfiguration' is not defined.

Thanks, Kourosh

Package                       Version             Editable project location
----------------------------- ------------------- -----------------------------------------------------------------------------------------------------------------
absl-py                       2.1.0
appdirs                       1.4.4
astroid                       3.2.4
astunparse                    1.6.3
autopep8                      2.0.4
black                         24.4.2
cachetools                    5.4.0
certifi                       2024.7.4
cffi                          1.17.1
chardet                       5.2.0
charset-normalizer            3.3.2
clang                         17.0.6
click                         8.1.7
contourpy                     1.2.1
cryptography                  43.0.1
cycler                        0.12.1
Cython                        3.0.10
dill                          0.3.8
docstring-to-markdown         0.15
emailproxy                    2024.9.12
flake8                        7.0.0
flatbuffers                   24.3.25
fonttools                     4.53.1
gast                          0.6.0
google-auth                   2.32.0
google-auth-oauthlib          1.2.1
google-pasta                  0.2.0
grpcio                        1.65.2
h5py                          3.11.0
idna                          3.7
imageio                       2.34.2
importlib_metadata            8.2.0
importmagic                   0.1.7
imutils                       0.5.4
isort                         5.13.2
jedi                          0.19.1
joblib                        1.4.2
keras                         3.4.1
keras-nightly                 3.4.1.dev2024080103
Keras-Preprocessing           1.1.2
kiwisolver                    1.4.5
lazy_loader                   0.4
littleutils                   0.2.4
llvmlite                      0.43.0
loess                         2.1.2
Markdown                      3.6
markdown-it-py                3.0.0
MarkupSafe                    2.1.5
matplotlib                    3.9.1
mccabe                        0.7.0
mdurl                         0.1.2
ml-dtypes                     0.4.0
mlxtend                       0.23.1
moepy                         1.1.4
mpmath                        1.3.0
mypy                          1.11.1
mypy-extensions               1.0.0
namex                         0.0.8
networkx                      3.3
numba                         0.60.0
numpy                         1.26.4
oauthlib                      3.2.2
opencv-contrib-python-rolling 5.0.0.20221015
opt-einsum                    3.3.0
optree                        0.12.1
outdated                      0.2.2
packaging                     24.1
pandas                        2.2.2
pandas-flavor                 0.6.0
parso                         0.8.4
pathspec                      0.12.1
patsy                         0.5.6
PeakUtils                     1.3.5
pillow                        10.4.0
pip                           24.2
platformdirs                  4.2.2
plotbin                       3.1.7
pluggy                        1.5.0
prompt_toolkit                3.0.47
protobuf                      4.25.4
pyasn1                        0.6.0
pyasn1_modules                0.4.0
pyasyncore                    1.0.4
pycodestyle                   2.11.1
pycparser                     2.22
pydicom                       2.4.4
pydocstyle                    6.3.0
pyflakes                      3.2.0
Pygments                      2.18.0
PyJWT                         2.9.0
pylint                        3.2.6
pylsp-mypy                    0.6.8
pyobjc-core                   10.3.1
pyobjc-framework-Cocoa        10.3.1
pyoslog                       1.1.0
pyparsing                     3.1.2
python-dateutil               2.9.0.post0
python-gdcm                   3.0.24.1
python-lsp-isort              0.1
python-lsp-jsonrpc            1.1.2
python-lsp-server             1.11.0
pytoolconfig                  1.3.1
pytz                          2024.1
PyWavelets                    1.6.0
PyYAML                        6.0.1
regex                         2024.7.24
requests                      2.32.3
requests-oauthlib             2.0.0
researchpy                    0.3.6
rich                          13.7.1
roipoly                       0.5.3
rope                          1.13.0
rsa                           4.9
scikit-image                  0.24.0
scikit-learn                  1.5.1
scipy                         1.14.0
screeninfo                    0.8.1
seaborn                       0.13.2
setuptools                    72.1.0
six                           1.16.0
snowballstemmer               2.2.0
statsmodels                   0.14.2
sympy                         1.13.1
tabulate                      0.9.0
tensorboard                   2.17.0
tensorboard-data-server       0.7.2
tensorboard-plugin-wit        1.8.1
tensorflow-estimator          2.15.0
termcolor                     2.4.0
threadpoolctl                 3.5.0
tifffile                      2024.7.24
toml                          0.10.2
tomli                         2.0.1
tomlkit                       0.13.0
tqdm                          4.66.4
typed_ast                     1.5.5
typing_extensions             4.12.2
tzdata                        2024.1
ujson                         5.10.0
urllib3                       2.2.2
wcwidth                       0.2.13
Werkzeug                      3.0.3
whatthepatch                  1.0.6
wheel                         0.43.0
wrapt                         1.16.0
xarray                        2024.7.0
yapf                          0.40.2
zipp                          3.19.2
simonrob commented 3 weeks ago

Thanks for reporting this. SystemConfiguration is used in GUI mode, and you've installed the non-GUI version of the proxy. But the error message is meant to be more helpful than that – I'll fix this.

To fix your issue, either install the GUI dependencies (via python -m pip install emailproxy[gui]), or run in no-GUI mode: python -m emailproxy --no-gui.

kourosh2 commented 3 weeks ago

Thank you for quick response. I was using zsh shell and apparently zsh does not like brackets in names. So python-m pip install emailproxy[gui] did not work for me. I escape them with backslashes and now installation went through. Will start configuration now, fingers crossed.