profile
viewpoint

jugmac00/flask-reuploaded 5

File uploads for Flask.

jugmac00/hibpcli 4

A Python CLI application to access the API of haveibeenpwned.com

jugmac00/python-version-cheat-sheet 2

about the what and when of new python features

jugmac00/attrs 0

Python Classes Without Boilerplate

jugmac00/AutoSuggest 0

Mirror of the AutoSuggest library by Timothy Groves - http://www.brandspankingnew.net

jugmac00/batou_scm 0

Batou components for managing source code in a development deployment.

jugmac00/book 0

A Book about Pythonic Application Architecture Patterns for Managing Complexity. Cosmos is the Opposite of Chaos you see. O'R. wouldn't actually let us call it "Cosmic Python" tho.

jugmac00/bootstrap-flask 0

Bootstrap 4 helper for Flask/Jinja2.

jugmac00/check-python-versions 0

Check that supported Python versions in a setup.py match tox.ini, .travis.yml and a bunch of other files

push eventjugmac00/til

Jürgen Gmach

commit sha b134d20e0e45fb32fc8e9382f94b2750e8b50547

Create translate-login-message.md

view details

push time in 16 hours

pull request commentplone/plone.recipe.zeoserver

Fix for "ValueError: Attempted relative import in non-package" - In windows system

This should be possible via API, but at 35 ° C it is preferable to go to beach and keep the status quo 😉

fazalsulaiman

comment created time in 2 days

pull request commentplone/plone.recipe.zeoserver

Fix for "ValueError: Attempted relative import in non-package" - In windows system

@mauritsvanrees While the plone contributing process is much more streamlined than most others I know, isn't it possible to restrict merging to successfully tested branches?

This would take away some burden from new contributors to go through a pretty long mental checklist.

fazalsulaiman

comment created time in 2 days

issue openedpython-babel/flask-babel

How to access the language code in a Jinja template?

I want to set the language code for e.g. <html lang="xx"> according to the current language.

My current way is to translate the language code

<html lang="{{ _('en') }}">

This feels a bit odd. Shouldn't Flask-Babel offer some variable to access the language code?

created time in 2 days

push eventjugmac00/til

Jürgen Gmach

commit sha b63fc6b05bad10d32ea4e5e3502c435fe0a302ea

Create set-lang-attribute.md

view details

push time in 2 days

issue commentjtesta/ssh-audit

client-audit: error reading packet

Thanks! Works now. And uhh. I ran ssh-audit against itself by accident.

Izorkin

comment created time in 3 days

CommitCommentEvent

issue commentjtesta/ssh-audit

client-audit: error reading packet

Both -p and --port should be equivalent.

Also, now I can reproduce the failure.

❯ python3.8 ssh-audit.py localhost -p 2222
# general
(gen) banner: SSH-2.0-OpenSSH_8.0
(gen) software: OpenSSH 8.0

[exception] error reading packet (timed out)

Please reopen the issue.

Izorkin

comment created time in 3 days

push eventjugmac00/til

Jürgen Gmach

commit sha b086794d463a3300f551593a087d67aa4a49e185

Create custom-surround.md

view details

push time in 4 days

startedPyMySQL/PyMySQL

started time in 5 days

push eventjugmac00/til

Jürgen Gmach

commit sha b3b9f4474fef326bdfbb3b198e4b057f42dfaa88

Create remove-file-from-repository-but-keep-it-locally.md

view details

push time in 5 days

push eventjugmac00/til

Jürgen Gmach

commit sha a27eaa7fe80ba37c16652ab2abac03c3ff3070d4

Create view_log_entries.md

view details

push time in 5 days

push eventjugmac00/til

Jürgen Gmach

commit sha 5528a4e8a943c963bcfc7f8d0b93b2da356b6205

Create fix-old-commit.md

view details

push time in 5 days

startedjasper-zanjani/pdfcropper

started time in 7 days

issue openedwtforms/wtforms

documentation for "stable" is broken

Maybe related to #629

I worked on a rather complex form today, so I did a lot of googling, and I noticed, that there are tons of links out there referencing the "stable" version of the documentation, which is broken.

So basically

  • all results on Google
  • a lot of results on StackOverFlow
  • a lot of links in blog posts all point to URLs like https://wtforms.readthedocs.io/en/stable/validators/ which are all broken.

Screenshot from 2020-08-07 16-07-40

Whether you decided to use a new naming scheme or whatever.. just wanted to make sure the big impact this action had.

I am not super familiar with sphinx and readthedocs, so I do not know whether a simple fix would be available.

created time in 7 days

issue commentzopefoundation/Zope

Test new dependency resolver in pip 20.2

There is already https://github.com/pypa/pip/issues/8675 and https://github.com/pypa/pip/issues/8664

I also reported it on Twitter https://twitter.com/jugmac00/status/1290366233473318913 and the developers are aware of the situation.

As far as I know... the old resolver just skips some checks, as it is not able to do all checks properly.

The new resolver does it "right", and thus it inherently needs more time.

icemac

comment created time in 8 days

issue commentzopefoundation/Zope

Test new dependency resolver in pip 20.2

I tested it with Zope 4.5 and it worked out.

Compared to the current standard resolver (11 secs) the new one took 59 sec on my local dev box.

This is a known problem/limitation as the new resolver works more thoroughly.

icemac

comment created time in 8 days

push eventjugmac00/til

Jürgen Gmach

commit sha a4d940556c77e5fefced8a521bbd96336073ad25

Create deactivate-autoimport-in-pylance.md

view details

push time in 8 days

issue commentkoodaamo/tnefparse

unable to extract content from winmail.dat (Mail is a read receipt)

@Sam-Gracy I am sorry, I tried but I think I cannot help you much with your question.

This looks like base64 encoded data, but I cannot figure out which encoding - maybe it is just bytes; I am not familiar with this header.

This is how far I got...

ENCODED = """AQ0CZW4AAX4DAAAPAAADH4sIAAAAAAAEAIVU227bOBBlElu3rPcXdu
qnBkjth74FbYHsBehDigJNuot9KiiJioTQokBS0fpv/B9984fst+wh
abkq2nQBQRZnzsycOTP0v+mvWypFxXtpL0k27YOhoZGSeNcJrokbqp
SUajDUtMThyDUOQpurRXbdUt8+NqaxovSx1BhYSqFxgIm3JeWyF0DS
/8C6XndS+JS8sM2jeAqoRbnI7pruar+78WwL3pKqqFC9NoJyQcZuJc
BDY2v67fb2kqyie2ERrWwtNEmlHp4tskX29u7dDYUkL+iuFmS5dsBr
a3WT9xZ0puIg2JNC7o7fiyAT6pWN6STfwgyFHKjotRatHZUCsC3VsK
I7RUXNW4TaujGXtFU9bXpjyXSiaKrtkeGBR6X0segKTddivwuu/Y6P
HA/BjcDcECtct6oT7ZRuqYp+A0ZPJ3Ei1hyqq1Y4NV1wmHvT3tMjxx
DdwD8ZIav97gX9HkRZ0XuUMh4+FhlVMHwjDq2vLc/dJjWWBvwUsike
3Bg/5ZK3Dy7f99NwasVwyEFODJ4jqONO3aej3DlgqNIggRCruh/jq9
7NUpXbsflQdJH98Q/f+MX8aMb9eL0MvJc/kvoL/a+34NAGtHzF97ta
i+r1sra2M1fr9TAMq+GlKWqlpFkVarNejrM61nzzp7tH9NfL2wB79m
rN32CseuvU/dtfAlnR/rNb8OvcKOnG+/HDjaFHs6IPQnJ/u5wF6419
IxFaNMRzBQ+Uo964sfMWKzJJsd8950GpQWCeZamFMRcHCUMzk51auV
svVcFluMqI9b8QjY8XCPdguiwid/8RF+7Wj1t9uMfQSk+og4kzq976
6KmCSzd7e3Hl+qdFxtgpO4tZOmfRjM0jFvtjgvcZmyXsHB8py+DCR8
bOYZyx6ISdAjM1Rj4E4VPjGZvjQWZ8B+8Rc+ZhsPs86czBEp8nTn1R
UApHuEJO0DiG4JlUjDyr+WiPfWlY4jFhhgc0gPelnTE50HbeEB5I4g
1L5FqOgyxehzS4gkQBOZJB5mQKgzghswdE0TdJ4PLNRt8mn42yRK6X
oADC46+Zf6kS+vUhMSyzE/aLY5iGLsbqKBel7KcTLwvACfs58Zqf+u
ozP/pk5BmESlySucvp68YTkj7VqV+YKAACn6M4fhbpcXPgCtli1/Uc
53P/MfsPMaMyXlwHAAABC84BPD94bWwgdmVyc2lvbj0iMS4wIiBlbm
NvZGluZz0idXRmLTE2Ij8+DQo8VXJsU2V0Pg0KICA8VmVyc2lvbj4x
NS4wLjAuMDwvVmVyc2lvbj4NCiAgPFVybHM+DQogICAgPFVybCBTdG
FydEluZGV4PSIxMjAyIiBUeXBlPSJVcmwiPg0KICAgICAgPFVybFN0
cmluZz5odHRwczovL3d3dzwvVXJsU3RyaW5nPg0KICAgIDwvVXJsPg
0KICA8L1VybHM+DQo8L1VybFNldD4BDs8BUmV0cmlldmVyT3BlcmF0
b3IsMTAsMDtSZXRyaWV2ZXJPcGVyYXRvciwxMSwyO1Bvc3REb2NQYX
JzZXJPcGVyYXRvciwxMCwwO1Bvc3REb2NQYXJzZXJPcGVyYXRvciwx
MSwwO1Bvc3RXb3JkQnJlYWtlckRpYWdub3N0aWNPcGVyYXRvciwxMC
wwO1Bvc3RXb3JkQnJlYWtlckRpYWdub3N0aWNPcGVyYXRvciwxMSww
O1RyYW5zcG9ydFdyaXRlclByb2R1Y2VyLDIwLDE2"""


import base64
import chardet


if __name__ == "__main__":
    a = base64.b64decode(ENCODED)
    print(a)
    print(chardet.detect(a))

And I received this...

Scroll to the end, it looks like there is an XML embedded.

❯ python3.8 main.py 
b'\x01\r\x02en\x00\x01~\x03\x00\x00\x0f\x00\x00\x03\x1f\x8b\x08\x00\x00\x00\x00\x00\x04\x00\x85T\xdbn\xdb8\x10e\x12[\xb7\xac\xf7\x17v\xea\xa7\x06H\xed\x87\xbe\x05m\x81\xec\x05\xe8C\x8a\x02M\xba\x8b}*(\x89\x8a\x84\xd0\xa2@R\xd1\xfao\xfc\x1f}\xf3\x87\xec\xb7\xec!i\xb9*\xdat\x01A\x16g\xce\xcc\x9c93\xf4\xbf\xe9\xaf[*E\xc5{i/I6\xed\x83\xa1\xa1\x91\x92x\xd7\t\xae\x89\x1b\xaa\x94\x94j0\xd4\xb4\xc4\xe1\xc85\x0eB\x9b\xabEv\xddR\xdf>6\xa6\xb1\xa2\xf4\xb1\xd4\x18XJ\xa1q\x80\x89\xb7%\xe5\xb2\x17@\xd2\xff\xc0\xba^wR\xf8\x94\xbc\xb0\xcd\xa3x\n\xa8E\xb9\xc8\xee\x9a\xeej\xbf\xbb\xf1l\x0b\xde\x92\xaa\xa8P\xbd6\x82rA\xc6n%\xc0Cck\xfa\xed\xf6\xf6\x92\xac\xa2{a\x11\xadl-4I\xa5\x1e\x9e-\xb2E\xf6\xf6\xee\xdd\r\x85$/\xe8\xae\x16d\xb9v\xc0kku\x93\xf7\x16t\xa6\xe2 \xd8\x93B\xee\x8e\xdf\x8b \x13\xea\x95\x8d\xe9$\xdf\xc2\x0c\x85\x1c\xa8\xe8\xb5\x16\xad\x1d\x95\x02\xb0-\xd5\xb0\xa2;EE\xcd[\x84\xda\xba1\x97\xb4U=mzc\xc9t\xa2h\xaa\xed\x91\xe1\x81G\xa5\xf4\xb1\xe8\nM\xd7b\xbf\x0b\xae\xfd\x8e\x8f\x1c\x0f\xc1\x8d\xc0\xdc\x10+\\\xb7\xaa\x13\xed\x94n\xa9\x8a~\x03FO\'q"\xd6\x1c\xaa\xabV85]p\x98{\xd3\xde\xd3#\xc7\x10\xdd\xc0?\x19!\xab\xfd\xee\x05\xfd\x1eDY\xd1{\x942\x1e>\x16\x19U0|#\x0e\xad\xaf-\xcf\xdd&5\x96\x06\xfc\x14\xb2)\x1e\xdc\x18?\xe5\x92\xb7\x0f.\xdf\xf7\xd3pj\xc5p\xc8AN\x0c\x9e#\xa8\xe3N\xdd\xa7\xa3\xdc9`\xa8\xd2 \x81\x10\xab\xba\x1f\xe3\xab\xde\xcdR\x95\xdb\xb1\xf9Pt\x91\xfd\xf1\x0f\xdf\xf8\xc5\xfch\xc6\xfdx\xbd\x0c\xbc\x97?\x92\xfa\x0b\xfd\xaf\xb7\xe0\xd0\x06\xb4|\xc5\xf7\xbbZ\x8b\xea\xf5\xb2\xb6\xb63W\xeb\xf50\x0c\xab\xe1\xa5)j\xa5\xa4Y\x15j\xb3^\x8e\xb3:\xd6|\xf3\xa7\xbbG\xf4\xd7\xcb\xdb\x00{\xf6j\xcd\xdf`\xacz\xeb\xd4\xfd\xdb_\x02Y\xd1\xfe\xb3[\xf0\xeb\xdc(\xe9\xc6\xfb\xf1\xc3\x8d\xa1G\xb3\xa2\x0fBr\x7f\xbb\x9c\x05\xeb\x8d}#\x11Z4\xc4s\x05\x0f\x94\xa3\xde\xb8\xb1\xf3\x16+2I\xb1\xdf=\xe7A\xa9A`\x9ee\xa9\x851\x17\x07\tC3\x93\x9dZ\xb9[/U\xc1e\xb8\xca\x88\xf5\xbf\x10\x8d\x8f\x17\x08\xf7`\xba,"w\xff\x11\x17\xee\xd6\x8f[}\xb8\xc7\xd0JO\xa8\x83\x893\xab\xde\xfa\xe8\xa9\x82K7{{q\xe5\xfa\xa7E\xc6\xd8);\x8bY:g\xd1\x8c\xcd#\x16\xfbc\x82\xf7\x19\x9b%\xec\x1c\x1f)\xcb\xe0\xc2G\xc6\xcea\x9c\xb1\xe8\x84\x9d\x0235F>\x04\xe1S\xe3\x19\x9b\xe3Af|\x07\xef\x11s\xe6a\xb0\xfb<\xe9\xcc\xc1\x12\x9f\'N}QP\nG\xb8BN\xd08\x86\xe0\x99T\x8c<\xab\xf9h\x8f}iX\xe21a\x86\x074\x80\xf7\xa5\x9d19\xd0v\xde\x10\x1eH\xe2\rK\xe4Z\x8e\x83,^\x874\xb8\x82D\x019\x92A\xe6d\n\x838!\xb3\x07D\xd17I\xe0\xf2\xcdF\xdf&\x9f\x8d\xb2D\xae\x97\xa0\x00\xc2\xe3\xaf\x99\x7f\xa9\x12\xfa\xf5!1,\xb3\x13\xf6\x8bc\x98\x86.\xc6\xea(\x17\xa5\xec\xa7\x13/\x0b\xc0\t\xfb9\xf1\x9a\x9f\xfa\xea3?\xfad\xe4\x19\x84J\\\x92\xb9\xcb\xe9\xeb\xc6\x13\x92>\xd5\xa9_\x98(\x00\x02\x9f\xa38~\x16\xe9qs\xe0\n\xd9b\xd7\xf5\x1c\xe7s\xff1\xfb\x0f1\xa32^\\\x07\x00\x00\x01\x0b\xce\x01<?xml version="1.0" encoding="utf-16"?>\r\n<UrlSet>\r\n  <Version>15.0.0.0</Version>\r\n  <Urls>\r\n    <Url StartIndex="1202" Type="Url">\r\n      <UrlString>https://www</UrlString>\r\n    </Url>\r\n  </Urls>\r\n</UrlSet>\x01\x0e\xcf\x01RetrieverOperator,10,0;RetrieverOperator,11,2;PostDocParserOperator,10,0;PostDocParserOperator,11,0;PostWordBreakerDiagnosticOperator,10,0;PostWordBreakerDiagnosticOperator,11,0;TransportWriterProducer,20,16'
{'encoding': 'Windows-1254', 'confidence': 0.22495847050694842, 'language': 'Turkish'}
Sam-Gracy

comment created time in 8 days

issue commentzopefoundation/zope.publisher

cgi is going to be deprecated in Python 3.8 and removed in 3.10

From the PEP discussion page:

Is it still realistic that the dead batteries will be deprecated with 3.8 and the removal will take place in 3.10?

No because Python 3.8 is already out and Python 3.9 is in beta. The PEP will need to be updated to target Python 3.10 with targeted removals in 3.12 (assuming someone drives the PEP to being finished).

mgedmin

comment created time in 10 days

issue commentjtesta/ssh-audit

client-audit: error reading packet

FWIW - I cannot reproduce this error with the current packaged version 2.2.0 on Ubuntu 18.04.

ssh-audit --client-audit --timeout=300 --verbose
# general
(gen) client IP: 127.0.0.1
(gen) banner: SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
(gen) software: OpenSSH 7.6p1
(gen) compression: enabled (zlib@openssh.com, zlib)
...

I am curious what @jtesta thinks about this problem.

Disclaimer: I am no maintainer, just a user.

Izorkin

comment created time in 10 days

pull request commentNixOS/nixpkgs

ssh-audit: 1.7.0 -> 2.2.0

A quick note on ssh-audit:

  • for reasons the development happens in the dev branch
  • in the dev branch, lots of new features are implemented
  • all tests are fixed
  • typing is fixed
  • code is linted
  • ...

The project setup may be tackled after the upcoming 2.3.0 release. As far as I understood the project was created by security specialists, and not by Python developers.

Afaik, Joe said he will release the new version (2.3.0) with all these fixed incorporated theses days (https://github.com/jtesta/ssh-audit/issues/52#issuecomment-666020175).

mweinelt

comment created time in 10 days

issue commentzopefoundation/Zope

Try Azure Pipeline for Windows tests.

@jensens +1 for GitHub actions - although gha and Azure Pipeplines use the same backend, gha is much easier to configure.

Once you are done, could you link to the configuration?

sallner

comment created time in 11 days

issue commentzopefoundation/Zope

dtml-tree tag no longer shows expansion markers

Ok, I could reproduce some problems with rendering the icons

When I load http://localhost:8080/level_a/manage_main directly, I get a ton of warnings/errors: Screenshot from 2020-08-03 18-40-38

When I then show the menu via the show/hide tree menu button, the icons do not get shown!

Screenshot from 2020-08-03 18-41-01

Also, a warning about "sameSite" attribute gets shown - which should be taken care of.

@mcgfeller Could you please confirm (via console) that you experience similar problems?

@drfho What is your take on this?

mcgfeller

comment created time in 11 days

issue commentzopefoundation/Zope

dtml-tree tag no longer shows expansion markers

When my former colleague introduced me to Zope 2007, he told me I could skip the DTML chapters of the Zope book, as DTML is obsolete - how wrong he was :-)

As I said, I have no experience with DTML, but I just had a look in my app's ZMI, and there the menu on the left uses dtml tree tag and it works.

The "icon" is no longer a real icon, nor it is a plain + or - character - now it is an empty HTML tag. CSS inserts a special unicode character, which - with the help of a special font, gets rendered as an icon. At least that is how I understand this technique.

In order to track down the problem you encounter, you could try two things:

  • go to your app's ZMI, and have a look at the menu at the left; this uses the dtml-tree-tag; make sure you have some nested structure; if not, please create a folder with some subfolders; does this work?
  • in your browser, before visiting a view with a dtml-tree-tag, please open the "console", load a page with a dtml tree tag and have a look whether there is an error loading some assets, especially the fontawesome file

(open console: FireFox: ctrl+shift+k; Chrome: ctrl+shift+j)

mcgfeller

comment created time in 11 days

issue commentzopefoundation/Zope

dtml-tree tag no longer shows expansion markers

Hi Martin,

for reasons unknown to me the icons were removed from Zope source while transitioning from Zope 2 to Zope 4.

I had the same problem when I migrated to Zope 4.

I checked out the 2.13 branch from Zope and copied / vendored the icons into my app.

mcgfeller

comment created time in 12 days

issue commentplone/plone.recipe.zope2instance

WSGI initialization file breaks existing installations with version 6.7.3

This is twice the same snippet, uh?

dataflake

comment created time in 12 days

issue commentzopefoundation/zope.publisher

cgi is going to be deprecated in Python 3.8 and removed in 3.10

@cjwatson If the following is an option for you, maybe you could also speak up at cpython's issue tracker, that above mentioned issue is a blocker to migrate to Python 3, and that launchpad is involved, and also maybe you could run the cpython pr against launchpad's testsuite... maybe this could accelerate the process on cpython's tracker. Who knows.

mgedmin

comment created time in 12 days

issue commentzopefoundation/zope.publisher

cgi is going to be deprecated in Python 3.8 and removed in 3.10

It is super unfortunate that https://bugs.python.org/issue27777 does not get much attention. Even worse, there seem to be open pull requests to fix this issue, but no reviewer available. Especially https://github.com/python/cpython/pull/21457 looks promising.

Maybe there is even a 5th option? :-)

webob seems to workaround some bugs with a compat.py module: https://github.com/Pylons/webob/blob/5c062aef9397b27915c5cc2ed2f202bff7494eca/src/webob/compat.py

I think @bertjwregeer would not mind us if we vendored his compat module.

Anyway, this will be a tough decision.

mgedmin

comment created time in 12 days

issue commentzopefoundation/zope.publisher

cgi is going to be deprecated in Python 3.8 and removed in 3.10

The mentioned PEP for removing cgi.FieldStorage and other so called "dead batteries" seems to be on halt - there was no discussion for 11 months. Also, I just checked the cpython source and I found no deprecation warning for cgi.

While I appreciate your research a lot, I'd suggest to postpone the decision what to do. Python 3.10' release is due for October 2021. So, there is some time left.

Also, meanwhile and also after reading https://discuss.python.org/t/pep-594-removing-dead-batteries-from-the-standard-library/1704 I think there is a third option available besides vendoring and migrating to multipart.

In the discussion some more users of FieldStorage showed up, including the maintainer of WebOb - so iff cgi will be removed, we could create a real package and also publish it on PyPi, so the other users of cgi could join.

mgedmin

comment created time in 12 days

delete branch plone/plone.testing

delete branch : fix-lint

delete time in 15 days

push eventplone/plone.testing

Jürgen Gmach

commit sha c047edca543b5f99eac590fe63af697225510131

update `isort` configuration for version 5 of `isort` (#76) * Remove broken `flake8-isort` plugin With the release of isort 5, the API has changed, which caused `flake8-isort` to break. Also, `isort` is run anyway with a separate command, so there should be no need for `flake8` plugin anyway. modified: tox.ini * Remove deprecated and obsolete options Both - not_skip - recursive are absolete with isort version 5. modified: setup.cfg modified: tox.ini * Apply isort modified: src/plone/testing/_z2_testbrowser.py modified: src/plone/testing/publisher.py modified: src/plone/testing/security.py modified: src/plone/testing/tests.py modified: src/plone/testing/z2.py modified: src/plone/testing/zca.py modified: src/plone/testing/zodb.py modified: src/plone/testing/zope.py modified: src/plone/testing/zserver.py * Remove deprecated command line option "apply" With the new `isort` version 5, `apply` is deprecated. modified: tox.ini * Add changelog entry for `75` new file: news/75.bugfix

view details

push time in 15 days

PR merged plone/plone.testing

update `isort` configuration for version 5 of `isort`

isort had a major update, ie. deprecated options...

fixes #75

+31 -17

2 comments

12 changed files

jugmac00

pr closed time in 15 days

issue closedplone/plone.testing

tox: linter envs are broken

... due to update to version 5 of isort.

PR #76

closed time in 15 days

jugmac00

issue commentpython-ldap/python-ldap

tox fails

@tiran Thanks for your patience!

If it would be of any help for you to speed up the debugging by having a remote session, please hit me up on Twitter with the same handle.

Otherwise I try to follow your instructions. Unfortunately, I guess I am not a big help here otherwise.

jugmac00

comment created time in 15 days

issue commentpython-ldap/python-ldap

tox fails

Hm... looks like test folders get created, but they have a different number part.

"/home/jugmac00/Projects/python-ldap/python-ldap-test-35413/slapd.conf": Permission denied (13)

vs

├── python-ldap-test-37559
│   ├── openldap-data
│   ├── schema
│   │   └── core.schema -> /etc/ldap/schema/core.schema
│   └── slapd.conf
├── python-ldap-test-42929
│   ├── openldap-data
│   ├── schema
│   │   └── core.schema -> /etc/ldap/schema/core.schema
│   └── slapd.conf
├── python-ldap-test-48081
│   ├── openldap-data
│   ├── schema
│   │   └── core.schema -> /etc/ldap/schema/core.schema
│   └── slapd.conf
├── python-ldap-test-49173
│   ├── openldap-data
│   ├── schema
│   │   └── core.schema -> /etc/ldap/schema/core.schema
│   └── slapd.conf
├── python-ldap-test-50231
│   ├── openldap-data
│   ├── schema
│   │   └── core.schema -> /etc/ldap/schema/core.schema
│   └── slapd.conf
├── python-ldap-test-53003
│   ├── openldap-data
│   ├── schema
│   │   └── core.schema -> /etc/ldap/schema/core.schema
│   └── slapd.conf

jugmac00

comment created time in 15 days

issue commentpython-ldap/python-ldap

tox fails

complete output this time :-)

❯ tox -e py38
GLOB sdist-make: /home/jugmac00/Projects/python-ldap/setup.py
py38 inst-nodeps: /home/jugmac00/Projects/python-ldap/.tox/.tmp/package/1/python-ldap-3.3.0.zip
py38 installed: pyasn1==0.4.8,pyasn1-modules==0.2.8,python-ldap @ file:///home/jugmac00/Projects/python-ldap/.tox/.tmp/package/1/python-ldap-3.3.0.zip
py38 run-test-pre: PYTHONHASHSEED='1013136741'
py38 run-test: commands[0] | /home/jugmac00/Projects/python-ldap/.tox/py38/bin/python -bb -Werror -m unittest discover -v -s Tests -p 't_*'
2020-07-31 10:39:57,556 ERROR 5f23d8dd could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-55323/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR
2020-07-31 10:39:57,565 ERROR 5f23d8dd could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-58649/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR
test_cidict (t_cidict.TestCidict)
test function is_dn() ... ok
test_cidict_data (t_cidict.TestCidict)
test the deprecated data atrtribute ... ok
test_strlist_deprecated (t_cidict.TestCidict) ... ok
2020-07-31 10:39:57,574 ERROR 5f23d8dd could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-42131/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR
test_deprecated (t_ldap_asyncsearch.TestLdapAsyncSearch) ... ok
test_assertioncontrol (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_matchedvalues (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_pagedresults_decode (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_pagedresults_encode (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_ppolicy_graceauth (t_ldap_controls_ppolicy.TestControlsPPolicy) ... ok
test_ppolicy_timebefore (t_ldap_controls_ppolicy.TestControlsPPolicy) ... ok
test_create_sss_request_control (t_ldap_controls_sss.TestControlsPPolicy) ... ok
test_dn2str (t_ldap_dn.TestDN)
test function dn2str() ... ok
test_escape_dn_chars (t_ldap_dn.TestDN)
test function escape_dn_chars() ... ok
test_explode_dn (t_ldap_dn.TestDN)
test function explode_dn() ... ok
test_explode_rdn (t_ldap_dn.TestDN)
test function explode_rdn() ... ok
test_is_dn (t_ldap_dn.TestDN)
test function is_dn() ... ok
test_str2dn (t_ldap_dn.TestDN)
test function str2dn() ... ok
test_escape_filter_chars_mode0 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=0 ... ok
test_escape_filter_chars_mode1 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=1 ... ok
test_escape_filter_chars_mode2 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=2 ... ok
test_escape_str (t_ldap_functions.TestFunction)
test function escape_string_tmpl() ... ok
test_ldap_strf_secs (t_ldap_functions.TestFunction)
test function ldap_strf_secs() ... ok
test_ldap_strp_secs (t_ldap_functions.TestFunction)
test function ldap_strp_secs() ... ok
test_addModlist (t_ldap_modlist.TestModlist) ... ok
test_modifyModlist (t_ldap_modlist.TestModlist) ... ok
test_cafile (t_ldap_options.TestGlobalOptions) ... ok
test_client_controls (t_ldap_options.TestGlobalOptions) ... ok
test_invalid (t_ldap_options.TestGlobalOptions) ... ok
test_network_timeout (t_ldap_options.TestGlobalOptions) ... ok
test_readonly (t_ldap_options.TestGlobalOptions) ... ok
test_server_controls (t_ldap_options.TestGlobalOptions) ... ok
test_timeout (t_ldap_options.TestGlobalOptions) ... ok
test_uri (t_ldap_options.TestGlobalOptions) ... ok
2020-07-31 10:39:57,589 ERROR 5f23d8dd could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-43703/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR
2020-07-31 10:39:57,597 ERROR 5f23d8dd could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-35473/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR
test_attributetype_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of an AttributeType object's attributes ... ok
test_empty_attributetype_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of attributes of a minimal AttributeType ... ok
test_empty_objectclass_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of attributes of a minimal ObjectClass ... ok
test_objectclass_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of an ObjectClass object's attributes ... ok
test_subschema_file (t_ldap_schema_subentry.TestSubschemaLDIF) ... ok
test_urlfetch_file (t_ldap_schema_subentry.TestSubschemaUrlfetch) ... ok
2020-07-31 10:39:58,323 ERROR 5f23d8de could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-57165/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR
test_origin_multi_valued (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_multi_valued_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attr with multi-value X-ORIGIN ... ok
test_origin_none (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_none_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attribute without X-ORIGIN ... ok
test_origin_string (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_string_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attr with single-value X-ORIGIN ... ok
test_set_origin_list (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a list makes entry unusable ... ok
test_set_origin_str (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a string makes entry unusable ... ok
test_set_origin_tuple (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a tuple works ... ok
test_basic (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BASIC ... ok
test_broken (t_ldap_schema_tokenizer.TestSplitTokens) ... ok
test_broken_oid (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BROKEN_OID ... ok
test_escaped_quotes (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_ESCAPED_QUOTES ... ok
test_utf8 (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BASIC ... ok
test_syncidset_message (t_ldap_syncrepl.DecodeSyncreplProtoTests)
A syncrepl server may send a sync info message, with a syncIdSet ... ok
2020-07-31 10:39:58,999 ERROR 5f23d8de could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-35879/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR
2020-07-31 10:39:59,009 ERROR 5f23d8df could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-48451/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR
2020-07-31 10:39:59,021 ERROR 5f23d8df could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-58851/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR
2020-07-31 10:39:59,032 ERROR 5f23d8df could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-35575/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR
test_isLDAPUrl (t_ldapurl.TestIsLDAPUrl) ... ok
test_bad_urls (t_ldapurl.TestLDAPUrl) ... expected failure
test_combo (t_ldapurl.TestLDAPUrl) ... ok
test_parse_attrs (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_attrs (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_extensions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_filter (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_hostport (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_scope (t_ldapurl.TestLDAPUrl) ... ok
test_parse_dn (t_ldapurl.TestLDAPUrl) ... ok
test_parse_empty_dn (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_5questions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_novalue (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_nulls (t_ldapurl.TestLDAPUrl) ... ok
test_parse_filter (t_ldapurl.TestLDAPUrl) ... ok
test_parse_hostport (t_ldapurl.TestLDAPUrl) ... ok
test_parse_schemes (t_ldapurl.TestLDAPUrl) ... ok
test_parse_scope (t_ldapurl.TestLDAPUrl) ... ok
test_parse_scope_default (t_ldapurl.TestLDAPUrl) ... ok
test_ldapurl (t_ldapurl.TestParseLDAPUrl) ... ok
test_bad_change_records (t_ldif.TestChangeRecords) ... ok
test_empty (t_ldif.TestChangeRecords) ... ok
test_missing_trailing_dash_separator (t_ldif.TestChangeRecords) ... ok
test_mod_increment (t_ldif.TestChangeRecords) ... ok
test_simple (t_ldif.TestChangeRecords) ... ok
test_weird_empty_lines (t_ldif.TestChangeRecords) ... ok
test_big_binary (t_ldif.TestEntryRecords) ... ok
test_binary (t_ldif.TestEntryRecords) ... ok
test_binary2 (t_ldif.TestEntryRecords) ... ok
test_comments (t_ldif.TestEntryRecords) ... ok
test_empty (t_ldif.TestEntryRecords) ... ok
test_empty_attr_values (t_ldif.TestEntryRecords) ... ok
test_folded (t_ldif.TestEntryRecords) ... ok
test_ignored_attr_types (t_ldif.TestEntryRecords) ... ok
test_max_entries (t_ldif.TestEntryRecords) ... ok
test_missing_trailing_line_separator (t_ldif.TestEntryRecords) ... ok
test_multiple (t_ldif.TestEntryRecords) ... ok
test_multiple_empty_lines (t_ldif.TestEntryRecords)
test malformed LDIF with multiple empty lines ... ok
test_simple (t_ldif.TestEntryRecords) ... ok
test_simple2 (t_ldif.TestEntryRecords) ... ok
test_sorted (t_ldif.TestEntryRecords) ... ok
test_unencoded_unicode (t_ldif.TestEntryRecords) ... ok
test_unicode (t_ldif.TestEntryRecords) ... ok
test_weird_empty_lines (t_ldif.TestEntryRecords) ... ok
test_context_manager (t_slapdobject.TestSlapdObject) ... 2020-07-31 10:39:59,048 ERROR 5f23d8df could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-47255/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR
test_context_manager_after_start (t_slapdobject.TestSlapdObject) ... 2020-07-31 10:39:59,057 ERROR 5f23d8df could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-39539/slapd.conf": Permission denied (13)
slaptest: bad configuration file!

ERROR

======================================================================
ERROR: setUpClass (t_bind.TestBinds)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 610, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_cext.TestLdapCExtension)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_cext.py", line 31, in setUpClass
    super(TestLdapCExtension, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 610, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_edit.EditionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_edit.py", line 16, in setUpClass
    super(EditionTests, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 610, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldap_options.TestLDAPObjectOptions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 610, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldap_sasl.TestSasl)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldap_sasl.py", line 50, in setUpClass
    super(TestSasl, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 610, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldap_schema_subentry.TestSubschemaUrlfetchSlapd)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 610, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldap_syncrepl.TestSyncrepl)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldap_syncrepl.py", line 265, in setUpClass
    super(BaseSyncreplTests, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 610, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldapobject.Test00_SimpleLDAPObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
    super(Test00_SimpleLDAPObject, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 610, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldapobject.Test01_ReconnectLDAPObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
    super(Test00_SimpleLDAPObject, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 610, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldapobject.Test03_SimpleLDAPObjectWithFileno)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
    super(Test00_SimpleLDAPObject, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 610, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: test_context_manager (t_slapdobject.TestSlapdObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_slapdobject.py", line 8, in test_context_manager
    with slapdtest.SlapdObject() as server:
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 581, in __enter__
    self.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: test_context_manager_after_start (t_slapdobject.TestSlapdObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_slapdobject.py", line 14, in test_context_manager_after_start
    server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

----------------------------------------------------------------------
Ran 101 tests in 1.509s

FAILED (errors=12, expected failures=1)
ERROR: InvocationError for command /home/jugmac00/Projects/python-ldap/.tox/py38/bin/python -bb -Werror -m unittest discover -v -s Tests -p 't_*' (exited with code 1)
____________________________________________________________ summary ____________________________________________________________
ERROR:   py38: commands failed
jugmac00

comment created time in 15 days

issue commentpython-ldap/python-ldap

tox fails

I set a breakpoint to extract the message oO

CompletedProcess(args=['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-42929/slapd.conf', '-u', '-v', '-d', 'config'], returncode=1, stdout=b'5f23d885 could not open config file "/home/jugmac00/Projects/python-ldap/python-ldap-test-42929/slapd.conf": Permission denied (13)\nslaptest: bad configuration file!\n')
jugmac00

comment created time in 15 days

issue commentpython-ldap/python-ldap

tox fails

ERROR: test_context_manager_after_start (t_slapdobject.TestSlapdObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_slapdobject.py", line 14, in test_context_manager_after_start
    server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 460, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 408, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

----------------------------------------------------------------------
Ran 101 tests in 1.682s

FAILED (errors=12, expected failures=1)
ERROR: InvocationError for command /home/jugmac00/Projects/python-ldap/.tox/py38/bin/python -bb -Werror -m unittest discover -v -s Tests -p 't_*' (exited with code 1)
____________________________________________________________ summary ____________________________________________________________
ERROR:   py38: commands failed
jugmac00

comment created time in 15 days

issue commentpython-ldap/python-ldap

tox fails

ERROR: test_context_manager_after_start (t_slapdobject.TestSlapdObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_slapdobject.py", line 14, in test_context_manager_after_start
    server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 456, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 402, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-54653/slapd.conf', '-u']' returned non-zero exit status 1.

----------------------------------------------------------------------
Ran 101 tests in 1.644s

FAILED (errors=12, expected failures=1)
ERROR: InvocationError for command /home/jugmac00/Projects/python-ldap/.tox/py38/bin/python -bb -Werror -m unittest discover -v -s Tests -p 't_*' (exited with code 1)
____________________________________________________________ summary ____________________________________________________________
ERROR:   py38: commands failed
jugmac00

comment created time in 15 days

Pull request review commentjtesta/ssh-audit

Algorithm lookup

 def audit(aconf: AuditConf, sshv: Optional[int] = None, print_target: bool = Fal      return program_retval +def algorithm_lookup(alg_names):       +    if not alg_names:    +        out.fail("[exception] Missing argument: alg_names")+        sys.exit(1)+        +    alg_types = {'kex': 'key exchange algorithms', +                 'key': 'host-key algorithms',+                 'mac': 'message authentication code algorithms',+                 'enc': 'encryption algorithms (ciphers)'+    }+    +    algorithms = alg_names.split(",")+    adb = SSH2.KexDB.ALGORITHMS+    algorithms_dict = {}+    +    for alg_type in alg_types:+        for alg_name in algorithms:+            try:+                SSH2.KexDB.ALGORITHMS[alg_type][alg_name]+                algorithms_dict.update( {alg_name : alg_type} ) +            except Exception:

Instead of a blank Exception you should use a more specific one, else this obfuscates other errors and makes debugging harder. Here you could use a KeyError.

Catching a bare exception is also called the "most diabolical antipattern" in Python. https://realpython.com/the-most-diabolical-python-antipattern/

thecliguy

comment created time in 15 days

issue commentpython-ldap/python-ldap

tox fails

❯ systemctl status slapd
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
   Loaded: loaded (/etc/init.d/slapd; generated)
  Drop-In: /lib/systemd/system/slapd.service.d
           └─slapd-remain-after-exit.conf
   Active: active (running) since Fri 2020-07-31 09:18:36 CEST; 45min ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 3 (limit: 4915)
   CGroup: /system.slice/slapd.service
           └─337 /usr/sbin/slapd -h ldap:/// ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d

Jul 31 09:18:36 jugmac00-XPS-13-9370 systemd[1]: Starting LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
Jul 31 09:18:36 jugmac00-XPS-13-9370 slapd[314]:  * Starting OpenLDAP slapd
Jul 31 09:18:36 jugmac00-XPS-13-9370 slapd[324]: @(#) $OpenLDAP: slapd  (Ubuntu) (Jul  1 2020 19:38:55) $
                                                         Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Jul 31 09:18:36 jugmac00-XPS-13-9370 slapd[337]: slapd starting
Jul 31 09:18:36 jugmac00-XPS-13-9370 slapd[314]:    ...done.
Jul 31 09:18:36 jugmac00-XPS-13-9370 systemd[1]: Started LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).
lines 1-17/17 (END)
jugmac00

comment created time in 15 days

issue commentpython-ldap/python-ldap

tox fails

Thanks for the quick response!

❯ tox -e py38
GLOB sdist-make: /home/jugmac00/Projects/python-ldap/setup.py
py38 inst-nodeps: /home/jugmac00/Projects/python-ldap/.tox/.tmp/package/1/python-ldap-3.3.0.zip
py38 installed: pyasn1==0.4.8,pyasn1-modules==0.2.8,python-ldap @ file:///home/jugmac00/Projects/python-ldap/.tox/.tmp/package/1/python-ldap-3.3.0.zip
py38 run-test-pre: PYTHONHASHSEED='3407328550'
py38 run-test: commands[0] | /home/jugmac00/Projects/python-ldap/.tox/py38/bin/python -bb -Werror -m unittest discover -v -s Tests -p 't_*'
ERROR
ERROR
test_cidict (t_cidict.TestCidict)
test function is_dn() ... ok
test_cidict_data (t_cidict.TestCidict)
test the deprecated data atrtribute ... ok
test_strlist_deprecated (t_cidict.TestCidict) ... ok
ERROR
test_deprecated (t_ldap_asyncsearch.TestLdapAsyncSearch) ... ok
test_assertioncontrol (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_matchedvalues (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_pagedresults_decode (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_pagedresults_encode (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_ppolicy_graceauth (t_ldap_controls_ppolicy.TestControlsPPolicy) ... ok
test_ppolicy_timebefore (t_ldap_controls_ppolicy.TestControlsPPolicy) ... ok
test_create_sss_request_control (t_ldap_controls_sss.TestControlsPPolicy) ... ok
test_dn2str (t_ldap_dn.TestDN)
test function dn2str() ... ok
test_escape_dn_chars (t_ldap_dn.TestDN)
test function escape_dn_chars() ... ok
test_explode_dn (t_ldap_dn.TestDN)
test function explode_dn() ... ok
test_explode_rdn (t_ldap_dn.TestDN)
test function explode_rdn() ... ok
test_is_dn (t_ldap_dn.TestDN)
test function is_dn() ... ok
test_str2dn (t_ldap_dn.TestDN)
test function str2dn() ... ok
test_escape_filter_chars_mode0 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=0 ... ok
test_escape_filter_chars_mode1 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=1 ... ok
test_escape_filter_chars_mode2 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=2 ... ok
test_escape_str (t_ldap_functions.TestFunction)
test function escape_string_tmpl() ... ok
test_ldap_strf_secs (t_ldap_functions.TestFunction)
test function ldap_strf_secs() ... ok
test_ldap_strp_secs (t_ldap_functions.TestFunction)
test function ldap_strp_secs() ... ok
test_addModlist (t_ldap_modlist.TestModlist) ... ok
test_modifyModlist (t_ldap_modlist.TestModlist) ... ok
test_cafile (t_ldap_options.TestGlobalOptions) ... ok
test_client_controls (t_ldap_options.TestGlobalOptions) ... ok
test_invalid (t_ldap_options.TestGlobalOptions) ... ok
test_network_timeout (t_ldap_options.TestGlobalOptions) ... ok
test_readonly (t_ldap_options.TestGlobalOptions) ... ok
test_server_controls (t_ldap_options.TestGlobalOptions) ... ok
test_timeout (t_ldap_options.TestGlobalOptions) ... ok
test_uri (t_ldap_options.TestGlobalOptions) ... ok
ERROR
ERROR
test_attributetype_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of an AttributeType object's attributes ... ok
test_empty_attributetype_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of attributes of a minimal AttributeType ... ok
test_empty_objectclass_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of attributes of a minimal ObjectClass ... ok
test_objectclass_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of an ObjectClass object's attributes ... ok
test_subschema_file (t_ldap_schema_subentry.TestSubschemaLDIF) ... ok
test_urlfetch_file (t_ldap_schema_subentry.TestSubschemaUrlfetch) ... ok
ERROR
test_origin_multi_valued (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_multi_valued_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attr with multi-value X-ORIGIN ... ok
test_origin_none (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_none_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attribute without X-ORIGIN ... ok
test_origin_string (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_string_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attr with single-value X-ORIGIN ... ok
test_set_origin_list (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a list makes entry unusable ... ok
test_set_origin_str (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a string makes entry unusable ... ok
test_set_origin_tuple (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a tuple works ... ok
test_basic (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BASIC ... ok
test_broken (t_ldap_schema_tokenizer.TestSplitTokens) ... ok
test_broken_oid (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BROKEN_OID ... ok
test_escaped_quotes (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_ESCAPED_QUOTES ... ok
test_utf8 (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BASIC ... ok
test_syncidset_message (t_ldap_syncrepl.DecodeSyncreplProtoTests)
A syncrepl server may send a sync info message, with a syncIdSet ... ok
ERROR
ERROR
ERROR
ERROR
test_isLDAPUrl (t_ldapurl.TestIsLDAPUrl) ... ok
test_bad_urls (t_ldapurl.TestLDAPUrl) ... expected failure
test_combo (t_ldapurl.TestLDAPUrl) ... ok
test_parse_attrs (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_attrs (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_extensions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_filter (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_hostport (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_scope (t_ldapurl.TestLDAPUrl) ... ok
test_parse_dn (t_ldapurl.TestLDAPUrl) ... ok
test_parse_empty_dn (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_5questions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_novalue (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_nulls (t_ldapurl.TestLDAPUrl) ... ok
test_parse_filter (t_ldapurl.TestLDAPUrl) ... ok
test_parse_hostport (t_ldapurl.TestLDAPUrl) ... ok
test_parse_schemes (t_ldapurl.TestLDAPUrl) ... ok
test_parse_scope (t_ldapurl.TestLDAPUrl) ... ok
test_parse_scope_default (t_ldapurl.TestLDAPUrl) ... ok
test_ldapurl (t_ldapurl.TestParseLDAPUrl) ... ok
test_bad_change_records (t_ldif.TestChangeRecords) ... ok
test_empty (t_ldif.TestChangeRecords) ... ok
test_missing_trailing_dash_separator (t_ldif.TestChangeRecords) ... ok
test_mod_increment (t_ldif.TestChangeRecords) ... ok
test_simple (t_ldif.TestChangeRecords) ... ok
test_weird_empty_lines (t_ldif.TestChangeRecords) ... ok
test_big_binary (t_ldif.TestEntryRecords) ... ok
test_binary (t_ldif.TestEntryRecords) ... ok
test_binary2 (t_ldif.TestEntryRecords) ... ok
test_comments (t_ldif.TestEntryRecords) ... ok
test_empty (t_ldif.TestEntryRecords) ... ok
test_empty_attr_values (t_ldif.TestEntryRecords) ... ok
test_folded (t_ldif.TestEntryRecords) ... ok
test_ignored_attr_types (t_ldif.TestEntryRecords) ... ok
test_max_entries (t_ldif.TestEntryRecords) ... ok
test_missing_trailing_line_separator (t_ldif.TestEntryRecords) ... ok
test_multiple (t_ldif.TestEntryRecords) ... ok
test_multiple_empty_lines (t_ldif.TestEntryRecords)
test malformed LDIF with multiple empty lines ... ok
test_simple (t_ldif.TestEntryRecords) ... ok
test_simple2 (t_ldif.TestEntryRecords) ... ok
test_sorted (t_ldif.TestEntryRecords) ... ok
test_unencoded_unicode (t_ldif.TestEntryRecords) ... ok
test_unicode (t_ldif.TestEntryRecords) ... ok
test_weird_empty_lines (t_ldif.TestEntryRecords) ... ok
test_context_manager (t_slapdobject.TestSlapdObject) ... ERROR
test_context_manager_after_start (t_slapdobject.TestSlapdObject) ... ERROR

======================================================================
ERROR: setUpClass (t_bind.TestBinds)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-43119/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

======================================================================
ERROR: setUpClass (t_cext.TestLdapCExtension)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_cext.py", line 31, in setUpClass
    super(TestLdapCExtension, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-49819/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

======================================================================
ERROR: setUpClass (t_edit.EditionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_edit.py", line 16, in setUpClass
    super(EditionTests, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-41785/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

======================================================================
ERROR: setUpClass (t_ldap_options.TestLDAPObjectOptions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-43473/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

======================================================================
ERROR: setUpClass (t_ldap_sasl.TestSasl)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldap_sasl.py", line 50, in setUpClass
    super(TestSasl, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-56629/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

======================================================================
ERROR: setUpClass (t_ldap_schema_subentry.TestSubschemaUrlfetchSlapd)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-55211/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

======================================================================
ERROR: setUpClass (t_ldap_syncrepl.TestSyncrepl)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldap_syncrepl.py", line 265, in setUpClass
    super(BaseSyncreplTests, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-38699/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

======================================================================
ERROR: setUpClass (t_ldapobject.Test00_SimpleLDAPObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
    super(Test00_SimpleLDAPObject, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-54223/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

======================================================================
ERROR: setUpClass (t_ldapobject.Test01_ReconnectLDAPObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
    super(Test00_SimpleLDAPObject, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-56611/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

======================================================================
ERROR: setUpClass (t_ldapobject.Test03_SimpleLDAPObjectWithFileno)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
    super(Test00_SimpleLDAPObject, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-55965/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

======================================================================
ERROR: test_context_manager (t_slapdobject.TestSlapdObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_slapdobject.py", line 8, in test_context_manager
    with slapdtest.SlapdObject() as server:
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 579, in __enter__
    self.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-48527/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

======================================================================
ERROR: test_context_manager_after_start (t_slapdobject.TestSlapdObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_slapdobject.py", line 14, in test_context_manager_after_start
    server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 404, in _test_config
    proc = subprocess.check_call(popen_list)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/slapd', '-Ttest', '-f', '/home/jugmac00/Projects/python-ldap/python-ldap-test-51863/slapd.conf', '-u', '-Q']' returned non-zero exit status 1.

----------------------------------------------------------------------
Ran 101 tests in 1.498s

FAILED (errors=12, expected failures=1)
ERROR: InvocationError for command /home/jugmac00/Projects/python-ldap/.tox/py38/bin/python -bb -Werror -m unittest discover -v -s Tests -p 't_*' (exited with code 1)
____________________________________________________________ summary ____________________________________________________________
ERROR:   py38: commands failed

I just started with LDAP at all yesterday, set up a server which works.

Now, I tried to add data via this package, did not find a lot of documentation, had a look at Demo, found something to fix, tried to run tests.. and here we are :-)

Thanks for helping!

jugmac00

comment created time in 15 days

issue openedpython-ldap/python-ldap

tox fails

Please describe the issue and your environment here.

I tried to run tox on my machine and it fails.

Steps to reproduce:

❯ tox -e py38
GLOB sdist-make: /home/jugmac00/Projects/python-ldap/setup.py
py38 inst-nodeps: /home/jugmac00/Projects/python-ldap/.tox/.tmp/package/1/python-ldap-3.3.0.zip
py38 installed: pyasn1==0.4.8,pyasn1-modules==0.2.8,python-ldap @ file:///home/jugmac00/Projects/python-ldap/.tox/.tmp/package/1/python-ldap-3.3.0.zip
py38 run-test-pre: PYTHONHASHSEED='3830792126'
py38 run-test: commands[0] | /home/jugmac00/Projects/python-ldap/.tox/py38/bin/python -bb -Werror -m unittest discover -v -s Tests -p 't_*'
ERROR
ERROR
test_cidict (t_cidict.TestCidict)
test function is_dn() ... ok
test_cidict_data (t_cidict.TestCidict)
test the deprecated data atrtribute ... ok
test_strlist_deprecated (t_cidict.TestCidict) ... ok
ERROR
test_deprecated (t_ldap_asyncsearch.TestLdapAsyncSearch) ... ok
test_assertioncontrol (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_matchedvalues (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_pagedresults_decode (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_pagedresults_encode (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_ppolicy_graceauth (t_ldap_controls_ppolicy.TestControlsPPolicy) ... ok
test_ppolicy_timebefore (t_ldap_controls_ppolicy.TestControlsPPolicy) ... ok
test_create_sss_request_control (t_ldap_controls_sss.TestControlsPPolicy) ... ok
test_dn2str (t_ldap_dn.TestDN)
test function dn2str() ... ok
test_escape_dn_chars (t_ldap_dn.TestDN)
test function escape_dn_chars() ... ok
test_explode_dn (t_ldap_dn.TestDN)
test function explode_dn() ... ok
test_explode_rdn (t_ldap_dn.TestDN)
test function explode_rdn() ... ok
test_is_dn (t_ldap_dn.TestDN)
test function is_dn() ... ok
test_str2dn (t_ldap_dn.TestDN)
test function str2dn() ... ok
test_escape_filter_chars_mode0 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=0 ... ok
test_escape_filter_chars_mode1 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=1 ... ok
test_escape_filter_chars_mode2 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=2 ... ok
test_escape_str (t_ldap_functions.TestFunction)
test function escape_string_tmpl() ... ok
test_ldap_strf_secs (t_ldap_functions.TestFunction)
test function ldap_strf_secs() ... ok
test_ldap_strp_secs (t_ldap_functions.TestFunction)
test function ldap_strp_secs() ... ok
test_addModlist (t_ldap_modlist.TestModlist) ... ok
test_modifyModlist (t_ldap_modlist.TestModlist) ... ok
test_cafile (t_ldap_options.TestGlobalOptions) ... ok
test_client_controls (t_ldap_options.TestGlobalOptions) ... ok
test_invalid (t_ldap_options.TestGlobalOptions) ... ok
test_network_timeout (t_ldap_options.TestGlobalOptions) ... ok
test_readonly (t_ldap_options.TestGlobalOptions) ... ok
test_server_controls (t_ldap_options.TestGlobalOptions) ... ok
test_timeout (t_ldap_options.TestGlobalOptions) ... ok
test_uri (t_ldap_options.TestGlobalOptions) ... ok
ERROR
ERROR
test_attributetype_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of an AttributeType object's attributes ... ok
test_empty_attributetype_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of attributes of a minimal AttributeType ... ok
test_empty_objectclass_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of attributes of a minimal ObjectClass ... ok
test_objectclass_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of an ObjectClass object's attributes ... ok
test_subschema_file (t_ldap_schema_subentry.TestSubschemaLDIF) ... ok
test_urlfetch_file (t_ldap_schema_subentry.TestSubschemaUrlfetch) ... ok
ERROR
test_origin_multi_valued (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_multi_valued_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attr with multi-value X-ORIGIN ... ok
test_origin_none (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_none_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attribute without X-ORIGIN ... ok
test_origin_string (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_string_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attr with single-value X-ORIGIN ... ok
test_set_origin_list (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a list makes entry unusable ... ok
test_set_origin_str (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a string makes entry unusable ... ok
test_set_origin_tuple (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a tuple works ... ok
test_basic (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BASIC ... ok
test_broken (t_ldap_schema_tokenizer.TestSplitTokens) ... ok
test_broken_oid (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BROKEN_OID ... ok
test_escaped_quotes (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_ESCAPED_QUOTES ... ok
test_utf8 (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BASIC ... ok
test_syncidset_message (t_ldap_syncrepl.DecodeSyncreplProtoTests)
A syncrepl server may send a sync info message, with a syncIdSet ... ok
ERROR
ERROR
ERROR
ERROR
test_isLDAPUrl (t_ldapurl.TestIsLDAPUrl) ... ok
test_bad_urls (t_ldapurl.TestLDAPUrl) ... expected failure
test_combo (t_ldapurl.TestLDAPUrl) ... ok
test_parse_attrs (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_attrs (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_extensions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_filter (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_hostport (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_scope (t_ldapurl.TestLDAPUrl) ... ok
test_parse_dn (t_ldapurl.TestLDAPUrl) ... ok
test_parse_empty_dn (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_5questions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_novalue (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_nulls (t_ldapurl.TestLDAPUrl) ... ok
test_parse_filter (t_ldapurl.TestLDAPUrl) ... ok
test_parse_hostport (t_ldapurl.TestLDAPUrl) ... ok
test_parse_schemes (t_ldapurl.TestLDAPUrl) ... ok
test_parse_scope (t_ldapurl.TestLDAPUrl) ... ok
test_parse_scope_default (t_ldapurl.TestLDAPUrl) ... ok
test_ldapurl (t_ldapurl.TestParseLDAPUrl) ... ok
test_bad_change_records (t_ldif.TestChangeRecords) ... ok
test_empty (t_ldif.TestChangeRecords) ... ok
test_missing_trailing_dash_separator (t_ldif.TestChangeRecords) ... ok
test_mod_increment (t_ldif.TestChangeRecords) ... ok
test_simple (t_ldif.TestChangeRecords) ... ok
test_weird_empty_lines (t_ldif.TestChangeRecords) ... ok
test_big_binary (t_ldif.TestEntryRecords) ... ok
test_binary (t_ldif.TestEntryRecords) ... ok
test_binary2 (t_ldif.TestEntryRecords) ... ok
test_comments (t_ldif.TestEntryRecords) ... ok
test_empty (t_ldif.TestEntryRecords) ... ok
test_empty_attr_values (t_ldif.TestEntryRecords) ... ok
test_folded (t_ldif.TestEntryRecords) ... ok
test_ignored_attr_types (t_ldif.TestEntryRecords) ... ok
test_max_entries (t_ldif.TestEntryRecords) ... ok
test_missing_trailing_line_separator (t_ldif.TestEntryRecords) ... ok
test_multiple (t_ldif.TestEntryRecords) ... ok
test_multiple_empty_lines (t_ldif.TestEntryRecords)
test malformed LDIF with multiple empty lines ... ok
test_simple (t_ldif.TestEntryRecords) ... ok
test_simple2 (t_ldif.TestEntryRecords) ... ok
test_sorted (t_ldif.TestEntryRecords) ... ok
test_unencoded_unicode (t_ldif.TestEntryRecords) ... ok
test_unicode (t_ldif.TestEntryRecords) ... ok
test_weird_empty_lines (t_ldif.TestEntryRecords) ... ok
test_context_manager (t_slapdobject.TestSlapdObject) ... ERROR
test_context_manager_after_start (t_slapdobject.TestSlapdObject) ... ERROR

======================================================================
ERROR: setUpClass (t_bind.TestBinds)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_cext.TestLdapCExtension)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_cext.py", line 31, in setUpClass
    super(TestLdapCExtension, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_edit.EditionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_edit.py", line 16, in setUpClass
    super(EditionTests, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldap_options.TestLDAPObjectOptions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldap_sasl.TestSasl)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldap_sasl.py", line 50, in setUpClass
    super(TestSasl, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldap_schema_subentry.TestSubschemaUrlfetchSlapd)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldap_syncrepl.TestSyncrepl)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldap_syncrepl.py", line 265, in setUpClass
    super(BaseSyncreplTests, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldapobject.Test00_SimpleLDAPObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
    super(Test00_SimpleLDAPObject, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldapobject.Test01_ReconnectLDAPObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
    super(Test00_SimpleLDAPObject, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: setUpClass (t_ldapobject.Test03_SimpleLDAPObjectWithFileno)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
    super(Test00_SimpleLDAPObject, cls).setUpClass()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
    cls.server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: test_context_manager (t_slapdobject.TestSlapdObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_slapdobject.py", line 8, in test_context_manager
    with slapdtest.SlapdObject() as server:
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 579, in __enter__
    self.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

======================================================================
ERROR: test_context_manager_after_start (t_slapdobject.TestSlapdObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jugmac00/Projects/python-ldap/Tests/t_slapdobject.py", line 14, in test_context_manager_after_start
    server.start()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
    self._test_config()
  File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
    raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed

----------------------------------------------------------------------
Ran 101 tests in 1.507s

FAILED (errors=12, expected failures=1)
ERROR: InvocationError for command /home/jugmac00/Projects/python-ldap/.tox/py38/bin/python -bb -Werror -m unittest discover -v -s Tests -p 't_*' (exited with code 1)
____________________________________________________________ summary ____________________________________________________________
ERROR:   py38: commands failed

Operating system: Ubuntu 18.04

Python version: 3.8.5

python-ldap version: current master = 2e34d75e64628d02e32dadaa87bfa35447fa503c

I am bit suspicious that my tests fail while Travis, which also runs tox via tox-travis works. :-(

I installed the dev dependencies as described in the installation guide:

# apt-get install build-essential python3-dev python2.7-dev \
    libldap2-dev libsasl2-dev slapd ldap-utils tox \
    lcov valgrind

Any help is appreciated. Thanks!

created time in 15 days

pull request commentjtesta/ssh-audit

Algorithm lookup

Thank you very much for your pr!

A couple of thoughts: This project recently started to apply both style and type linters. Both fail for your pr. Whereas the latter shows the errors, it is configured not to fail hard (ie. 0 return code although there are errors) (the reason is the - in front of the mypy call in the tox.ini).

You can run them locally with tox - https://tox.readthedocs.io/

@jtesta Maybe it would be a good idea to create a CONTRIBUTING.md file?

Generally, it would be a good idea to run tox once before creating a pr.

To reproduce the above mentioned linter failures, you could run

for the type checker

tox -e py38-mypy

for the style linter

tox -e py38-flake8

Also, you provided no tests. Whether tests for new code is wanted or not is on @jtesta to decide.

Also, I really like your example usage description in https://github.com/jtesta/ssh-audit/issues/52#issue-668202319

Unfortunately, once the issue is closed, this information is pretty much gone.

I really loved to see something like this in the documentation. That is another topic @jtesta should have a look and decide if and where documentation should be put. And it is always a good idea to add documentation along with the new feature, as we all know there will be never again the time to add documentation later on.

So, tl/dr - this is not about the pr in particular, but about general guidelines for new contributions.

Possible issues with this pr:

  • flake8 fails
  • mypy fails
  • no tests
  • no documentation
thecliguy

comment created time in 15 days

Pull request review commentzopefoundation/zope.sendmail

fixes #30

 integrates with the transaction mechanism and queues your emails to be sent on successful commits only.  +Install on Windows/ Buildout

Install on Windows/ Buildout => Installation on Windows/ Buildout

jensens

comment created time in 15 days

Pull request review commentzopefoundation/zope.sendmail

fixes #30

 integrates with the transaction mechanism and queues your emails to be sent on successful commits only.  +Install on Windows/ Buildout+============================++When using Windows, `pywin32 <https://github.com/mhammond/pywin32>`_ is required.+``pywin32`` can only be installed using Pip, it **does not work with ``zc.buildout``**.
Pip -> ``pip``
jensens

comment created time in 15 days

Pull request review commentzopefoundation/zope.sendmail

fixes #30

 integrates with the transaction mechanism and queues your emails to be sent on successful commits only.  +Install on Windows/ Buildout+============================++When using Windows, `pywin32 <https://github.com/mhammond/pywin32>`_ is required.+``pywin32`` can only be installed using Pip, it **does not work with ``zc.buildout``**.+When using buildout, prior to execution of buildout, use to install ``pywin32``.

prior to execution of buildout => prior to the execution of buildout

jensens

comment created time in 15 days

Pull request review commentzopefoundation/zope.sendmail

fixes #30

 integrates with the transaction mechanism and queues your emails to be sent on successful commits only.  +Install on Windows/ Buildout+============================++When using Windows, `pywin32 <https://github.com/mhammond/pywin32>`_ is required.+``pywin32`` can only be installed using Pip, it **does not work with ``zc.buildout``**.+When using buildout, prior to execution of buildout, use to install ``pywin32``.+
use to install ``pywin32``.
=>
use ``pip`` to install ``pywin32``.
jensens

comment created time in 15 days

startedobestwalter/pytest-fixtures-introduction

started time in 17 days

issue commentflyingcircusio/batou

Make comments in secrets possible

I'm a bit surprised about the error you are getting - in my cases (either using ; or #) I'm just loosing my data (because the parse/serialize cycle "eats them") but not getting an error.

I also recall just loosing the data from quite some time ago... but well, I just tried it again. I get above error message.

This is on Ubuntu 18.04 with gpg 2.2.4.

The loosing data behavior I recall may date back to the time I used Windows. (maybe)

And thanks for the hint about saving plain text and calculating the hash in Python - sounds good!

jugmac00

comment created time in 18 days

delete branch zopefoundation/Products.ZCatalog

delete branch : fix-lint

delete time in 18 days

push eventzopefoundation/Products.ZCatalog

Jürgen Gmach

commit sha c4e4cd55e17e2660e81795d4a8dc48278642a726

Fix linting issues (#106) ... which came with the new flake8 version. modified: src/Products/PluginIndexes/CompositeIndex/tests/testCompositeIndex.py modified: src/Products/ZCTextIndex/BaseIndex.py modified: src/Products/ZCTextIndex/RiceCode.py modified: src/Products/ZCatalog/ZCatalog.py

view details

push time in 18 days

pull request commentzopefoundation/Products.ZCatalog

Fix linting issues

Ready for review.

jugmac00

comment created time in 18 days

issue openedzopefoundation/Products.ZCatalog

ZCTextIndex uses binary data for `WID`

I updated my Zope app from Python 2 to Python 3 and all my ZCTextIndexes from ZCatalog are now broken.

TypeError: argument should be integer or bytes-like object, not 'str'

@d-maurer analyzed the problem:

But, the ZCTextIndex uses actually binary data (for the "WID" (= "WordInDEX") encoded document content) and there the heuristics breaks (apparently, no one has already told zodbupdate about this exception).

Initially reported here: https://community.plone.org/t/typeerror-in-zctextindex-after-upgrade-to-py3/12621

I am not sure whether I should have created a mapping or this should have been detected by zodbupdate itself, as Products.ZCatalog is pretty much Zope standard.

created time in 18 days

push eventjugmac00/python-version-cheat-sheet

Jürgen Gmach

commit sha ae0ebffeebb3cefd7b3eb5d6ebf7be6877c0e079

Fix formatting

view details

push time in 18 days

issue commentkoodaamo/tnefparse

unable to extract content from winmail.dat (Mail is a read receipt)

Unfortunately, I have no time to investigate deeper in the next days, but from a quick look at the screenshot I think it is possible that there is no body at all. I assume Outlook is generating this text from the headers. e.g. when I open the same message in Thunderbird, I do not see this text.

Sam-Gracy

comment created time in 18 days

issue openedzopefoundation/zodbupdate

ZCTextIndex uses binary data for `WID`

I updated my Zope app from Python 2 to Python 3 and all my ZCTextIndexes from ZCatalog are now broken.

TypeError: argument should be integer or bytes-like object, not 'str'

@d-maurer analyzed the problem:

But, the ZCTextIndex uses actually binary data (for the "WID" (= "WordInDEX") encoded document content) and there the heuristics breaks (apparently, no one has already told zodbupdate about this exception).

Initially reported here: https://community.plone.org/t/typeerror-in-zctextindex-after-upgrade-to-py3/12621

I am not sure whether I should have created a mapping or this should have been detected by zodbupdate itself, as Products.ZCatalog is pretty much Zope standard.

created time in 19 days

push eventjugmac00/python-version-cheat-sheet

Jürgen Gmach

commit sha 01b622a45e208d6714528eb80bc98a209b11f13c

Add note for `underscores in numeric literals`

view details

push time in 21 days

issue commentkoodaamo/tnefparse

unable to extract content from winmail.dat (Mail is a read receipt)

Yes, when I give the email(eml) file to Outlook, it is displaying the read receipt properly.

Could you provide a screenshot of the read receipt?

Is the text (body) you see there something the other email contact actively wrote? Or is it something auto-generated by Outlook? Maybe from the header information?

Also, yep, it would help if you provide the .eml file too.

I cannot promise anything, but I will certainly have a look.

Sam-Gracy

comment created time in 21 days

issue commentkoodaamo/tnefparse

unable to extract content from winmail.dat (Mail is a read receipt)

Suresh, are you sure there is a body?

From the bit I read it looks like as if there are possibly only some headers set. And probably each mail client or server is able to do whatever it likes to do.

If this is an important topic for you (and @petri does not know more about it), I'd recommend to read the RFCs.

This looks also interesting: https://www.limilabs.com/blog/creating-read-receipt-mdn

There, a read receipt gets build - and a text is set manually - which proves me right that the client/server can do whatever they like.

Some more to read: https://techcommunity.microsoft.com/t5/exchange-team-blog/everything-you-wanted-to-know-about-read-receipts-and-delivery/ba-p/587312

The RFCs https://tools.ietf.org/html/rfc3798 https://tools.ietf.org/html/rfc8098 https://www.ietf.org/rfc/rfc2298.txt

Sam-Gracy

comment created time in 21 days

fork jugmac00/batou_scm

Batou components for managing source code in a development deployment.

fork in 22 days

push eventjugmac00/til

Jürgen Gmach

commit sha dfc20415df06fa1232b60445418f2705a9264305

import can be dropped for Python 3

view details

push time in 22 days

issue closedjugmac00/workout-bot

Make `workout` configurable by user

.. without changing Python code.

The configuration should happen in a human readable config file, e.g toml or similar.

The user can choose one or several workouts, which (s)he would then receive daily.

The mapping of workout names and functions/classes could be a dictionary. Also a decorator, which collects all workout providers, could be used.

closed time in 22 days

jugmac00

issue commentjugmac00/workout-bot

Make `workout` configurable by user

Not any longer interested in this - for now.

jugmac00

comment created time in 22 days

issue closedjugmac00/workout-bot

Make use of `dotenv`?

https://preslav.me/2019/01/09/dotenv-files-python/

closed time in 22 days

jugmac00

issue commentjugmac00/workout-bot

Make use of `dotenv`?

Not any longer interested in this.

jugmac00

comment created time in 22 days

issue commentjugmac00/workout-bot

Provide a .env.template file

Not any longer interested in this.

jugmac00

comment created time in 22 days

push eventjugmac00/workout-bot

Jürgen Gmach

commit sha f21066bf4f966c3bfdb8757d8ccd01443e92f627

Remove debugging code modified: src/workout_bot/main.py

view details

push time in 22 days

issue closedjugmac00/workout-bot

Tests are failing

closed time in 22 days

jugmac00

issue commentjugmac00/workout-bot

Tests are failing

Fixed by #18

jugmac00

comment created time in 22 days

push eventjugmac00/workout-bot

Jürgen Gmach

commit sha 96d8743413a106d1e4853ee8da8c666f6823b204

Add pdbpp to test runs ... as I really love pdb++ for debugging. modified: tox.ini

view details

Jürgen Gmach

commit sha 387c20ece48ee12fff8af502d04e5f5e43c8cc75

Fix finding workout URLs modified: src/workout_bot/main.py

view details

Jürgen Gmach

commit sha 3768169bfeadfb2f13667e7565f4d0d4a2c2e947

Update all linters modified: .pre-commit-config.yaml

view details

Jürgen Gmach

commit sha 6a00fbc5c657dd418df643bd06600a3a674141f0

Add changelog entries modified: CHANGES.md

view details

push time in 22 days

delete branch jugmac00/workout-bot

delete branch : fix-finding-images

delete time in 22 days

PR merged jugmac00/workout-bot

Fix finding images

.. and more.

+10 -7

0 comment

4 changed files

jugmac00

pr closed time in 22 days

PR opened jugmac00/workout-bot

Fix finding images

.. and more.

+10 -7

0 comment

4 changed files

pr created time in 22 days

push eventjugmac00/workout-bot

Jürgen Gmach

commit sha be5c07ea11dc90058a96e3391ac94051959dbdd2

Add changelog entries modified: CHANGES.md

view details

push time in 22 days

push eventjugmac00/workout-bot

Jürgen Gmach

commit sha 43899e91ff77a9ecf9be5d1ef3cc5e54dada8fb9

Update all linters modified: .pre-commit-config.yaml

view details

push time in 22 days

push eventjugmac00/workout-bot

Jürgen Gmach

commit sha fc5c4d67e1fda1c01d28691502a8c2511e18d1f3

Fix finding workout URLs modified: src/workout_bot/main.py

view details

push time in 22 days

create barnchjugmac00/workout-bot

branch : fix-finding-images

created branch time in 22 days

issue closedzopefoundation/z3c.checkversions

Deprecation warnings

tox -e=coverage shows the following...

  Set up zope.testrunner.layer.UnitTests in 0.000 seconds.
/home/jugmac00/Projects/z3c.checkversions/.tox/coverage/lib/python3.7/site-packages/setuptools/depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
/home/jugmac00/Projects/z3c.checkversions/.tox/coverage/lib/python3.7/site-packages/zc/buildout/buildout.py:28: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import MutableMapping as DictMixin
/usr/lib/python3.7/doctest.py:2172: ResourceWarning: unclosed file <_io.BufferedWriter name=4>
  test.globs.clear()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.7/doctest.py:2172: ResourceWarning: unclosed file <_io.BufferedReader name=5>
  test.globs.clear()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.7/doctest.py:2172: ResourceWarning: unclosed file <_io.BufferedReader name=7>
  test.globs.clear()

closed time in 22 days

jugmac00

issue commentzopefoundation/z3c.checkversions

Deprecation warnings

Currently, there are no more deprecation warnings :clap:

jugmac00

comment created time in 22 days

issue commentgocept/gocept.template_rewrite

Parsing error

@viktordick and @icemac I just stumbled over this issue while finally preparing my migration to Python 3 (tomorrow :dancers: ).

Almost one year has passed and I no longer recall what was planned to add to the known issues section.

Could anybody of you two add it? If not, let's close this issue anyway.

jugmac00

comment created time in 23 days

PR opened zopefoundation/Zope

Fix typo

modified: docs/migrations/zope4/zodb.rst

+1 -1

0 comment

1 changed file

pr created time in 23 days

create barnchzopefoundation/Zope

branch : fix-typo

created branch time in 23 days

PR opened zopefoundation/zodbupdate

Fix typo

modified: src/zodbupdate/serialize.py

+1 -1

0 comment

1 changed file

pr created time in 23 days

push eventzopefoundation/zodbupdate

Jürgen Gmach

commit sha e8ad8ecf816cc3b5eed44f51187ef8bebe3f1497

Fix typo modified: src/zodbupdate/serialize.py

view details

push time in 23 days

create barnchzopefoundation/zodbupdate

branch : fix-typo

created branch time in 23 days

PR opened plone/zodbverify

Fix typo

modified: README.rst

+1 -1

0 comment

1 changed file

pr created time in 23 days

create barnchplone/zodbverify

branch : fix-typo

created branch time in 23 days

pull request commentzopefoundation/Zope

improve unsolicited translation avoidance

It should be safe. At this place expression should be a chameleon.tokenize.Token. For Python 3, this class derives from str and for Python 2 from unicode. This means that expression contains already (unicode) text (and never an encoded binary string) -- we just replace the subtype Token by the supertype (str or unicode).

Maybe it is a good idea to add a comment with this explanation?

d-maurer

comment created time in 23 days

push eventjugmac00/til

Jürgen Gmach

commit sha 32032d2d4999369f189ab3ecca0f2c5a61357d2d

Update why-is-setuptools-a-runtime-requirement-for-zope-projects.md

view details

push time in 23 days

push eventjugmac00/til

Jürgen Gmach

commit sha 3c72abdbd276728acc5fd1a3fd9b95d1001f193d

Create why-is-setuptools-a-runtime-requirement-for-zope-projects.md

view details

push time in 23 days

push eventjugmac00/til

Jürgen Gmach

commit sha 1e4bdd82bdf9c3ba16c5590167d50587ea1e02c7

Update ssh-client-auditing-and-hardening.md

view details

push time in 23 days

push eventjugmac00/til

Jürgen Gmach

commit sha 71f3af2c131dedc299dce116888428b63175244e

Create ssh-client-auditing-and-hardening.md

view details

push time in 23 days

issue commentjtesta/ssh-audit

client audit vs client hardening guide

I guess I figured it out.

In man 5 ssh_config you can read

Host Restricts the following declarations (up to the next Host or Match keyword) to be only for those hosts that match one of the patterns given after the keyword.

Yep. So I configured some hosts - then I echoed your configurations into my config file and thus the hardening infos only apply to my last configured host oO

jugmac00

comment created time in 23 days

issue commentjtesta/ssh-audit

client audit vs client hardening guide

Ok. I figured it out.

The cipher (et al) config has to be put on the top of the ssh-config file - otherwise it seems it gets ignored.

This is the reason I tried to find information about how the structure of a client config file has to look.

Damn you SSH for not throwing an error :-)

Maybe it is possible that you update your hardening guides?

I guess I am not the only one with some basic ssh config.

jugmac00

comment created time in 23 days

issue commentjtesta/ssh-audit

client audit vs client hardening guide

I suppose I don't understand what the problem is. Did my hardening guide not result in all green output?

Yes, that is the problem.

I followed your instruction by echoing your recommendations into my ~/.ssh/config file. Screenshot from 2020-07-22 16-14-50

Then I started the client audit mode.. (Python 3.8 - and latest commit from your dev branch) Screenshot from 2020-07-22 16-15-21

When I ssh into localhost -p 22222 in a second terminal, I get this output in the first terminal (where I started the client audit )... Screenshot from 2020-07-22 16-18-08 Screenshot from 2020-07-22 16-17-31

I know your blog article, but it also did not solve my problem. I tried to look for other information on who the config file has to be structured so I could get a hint where the problem is, but I did not find any info out there.

As I assume your hardening information are correct (as you tried them), I can only guess my config file does not get used or there is a syntax error inside so some information get ignored. Or maybe there is a os-wide setting which weighs heigher?

On the other hand, my ~/.ssh/config file works - as I use the jump hosts for my work.

So I am left clueless at the moment.

jugmac00

comment created time in 23 days

push eventzopefoundation/Products.CMFCore

Jürgen Gmach

commit sha 0a6f150891fdf5160f7cf9ae1dcf1689238b326f

Add Products.ZCTextIndex to `known_zope` modified: Products/CMFCore/exportimport/tests/test_catalog.py modified: setup.cfg

view details

push time in 24 days

more