Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run test suite #2

Open
MinchinWeb opened this issue Jul 21, 2020 · 1 comment
Open

Can't run test suite #2

MinchinWeb opened this issue Jul 21, 2020 · 1 comment

Comments

@MinchinWeb
Copy link
Contributor

I'm trying to check out papermerge, but I can't get it to upload anything. I've traced my problem back here, so I thought I'd try the test suite here, but it errors out trying to set up a socket for logging.

Here is the traceback trying to run ./test/run.py:

λ python .\test\run.py
Traceback (most recent call last):
  File "C:\Python38\lib\logging\config.py", line 563, in configure
    handler = self.configure_handler(handlers[name])
  File "C:\Python38\lib\logging\config.py", line 744, in configure_handler
    result = factory(**kwargs)
  File "C:\Python38\lib\logging\handlers.py", line 821, in __init__
    self._connect_unixsocket(address)
  File "C:\Python38\lib\logging\handlers.py", line 853, in _connect_unixsocket
    self.socket = socket.socket(socket.AF_UNIX, use_socktype)
AttributeError: module 'socket' has no attribute 'AF_UNIX'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File ".\test\run.py", line 18, in <module>
    setup_logging()
  File "e:\code\papermerge-worker\pmworker\__init__.py", line 48, in setup_logging
    logging.config.dictConfig(config)
  File "C:\Python38\lib\logging\config.py", line 808, in dictConfig
    dictConfigClass(config).configure()
  File "C:\Python38\lib\logging\config.py", line 570, in configure
    raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'syslog'
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "C:\Python38\lib\logging\__init__.py", line 2115, in shutdown
    h.close()
  File "C:\Python38\lib\logging\handlers.py", line 892, in close
    self.socket.close()
AttributeError: 'SysLogHandler' object has no attribute 'socket'

I'm on Windows 10, with Python 3.8.4. I suspect this error is from trying to set up a Unix socket on a Windows system.

I don't have any configuration file (for either this or papermerge proper), so this on the defaults.

Also, why does this project look for a configuration files in the /etc/briolette/ directory (here)? I don't recall seeing that in the documentation anywhere.

@ciur
Copy link
Owner

ciur commented Jul 21, 2020

Hi,
There is an important thing.
Papermerge worker is seriously outdated.
It is so, because since April 2020 I was focusing mostly on simplifying initial setup and make main app work with built-in
worker.
.
Once I am done with version 1.4.0 release (which is one host centred) I will update pmworker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants