You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a dumping ground for build or test failures encountered. Not nearly as systematic as Nuitka/Nuitka#522 because I cant use OBS due to #164 , but I hope to resolve that soon.
All tests are run with pytest as an external import unless otherwise noted. I am focusing on core compiled libraries, as they are most likely to fail silently, and a few other CLI deps of mine.
PyYAML needs Cython pre-installed in order to build the DSO, and running test suite requires being in the project root dir, and running pytest.main(['-v', './tests/lib3']) passes all tests.
Django, https://code.djangoproject.com/ticket/30950 - note installation of Django breaks pytest if pytest-webtest or pytest-django (or other similar plugins) is in the sys.path
psutil tests mostly fail because of the use sys.executable -c . Using import hooks to add __file__ helps all tests pass. pytest.main(['-v', '/path/to/psutil/tests', '-k', 'not (test_process or TestProcessUtils or TestScripts or TestTerminatedProcessLeaks)']) removes most of those.
[ ] coverage has lots of __file__ problems, and likely too entrenched to be fixed any time soon. And test failures due to use of sys.executable -c '..'
Unknown failures
peewee needs to be tested using runtests.py in the project root, and it fails only tests.fields.TestTimestampField, in what seems to be a timezone offset problem as the day field is off by one. Need to retest locally with CPython directly.
requests, after hacking around certifi, and even getting cryptography extensions working(c.f. cryptography modules not built due to PEP 517 #170), test_https_warnings still fails and 2 of 4 of the "test_errors" fail pytest.main(['-v', '/path/to/requests-2.22.0/tests/', '-k', 'not TestTimeout and not test_errors and not test_proxy_error']) is my current recipe. fixture httpbin_ca_bundle = None is probably the problem - something is probably wrong with my httpbin.
gevent tests fail to get collected due to use of sys.executable -c; need to get its greentest running under PyOxidizer to evaluate properly
lz4 had one failure test_roundtrip_1[data1-4-True-True-True-0-store_size0] , and then finished at 37%
aiohttp[speedups] tests use __file__, but there are also a four other failures, mostly related to network responses. test_fingerprint_mismatch, test_aiohttp_request_ctx_manager_not_found, test_recv_protocol_error[pyloop], test_constructor[pyloop], TestCookieJarSafe.test_expires, TestCookieJarSafe.test_max_age
Flask - only three tests fail: test_scriptinfo fails but looks due to test runner path fiddling, test_main_module_paths and test_aborting. (This looks good to enough to say that PyOxidizer is Flask compatible.)
pycares - 9 quite significant failures
OK
PySocks
idna
persistent
multidict
msgpack
cmarkgfm
yarl
cChardet
The text was updated successfully, but these errors were encountered:
ruamel.yaml 0.17.0 no longer throws an exception based on __file__. If you don't rely on any plug-ins you should be able to oxidize your program as is.
This is a dumping ground for build or test failures encountered. Not nearly as systematic as Nuitka/Nuitka#522 because I cant use OBS due to #164 , but I hope to resolve that soon.
All tests are run with pytest as an external import unless otherwise noted. I am focusing on core compiled libraries, as they are most likely to fail silently, and a few other CLI deps of mine.
Upstream rejected solutions:
Build & test tips
pytest.main(['-v', '/path/to/Click-7.0/tests/', '-k', 'not test_cli_as_module'])
pyrsistent
Static symbol moduleinit clashes with pyrsistent and evdev libgit2/pygit2#951PyYAML
needs Cython pre-installed in order to build the DSO, and running test suite requires being in the project root dir, and runningpytest.main(['-v', './tests/lib3'])
passes all tests.Upstream failures
ruamel.yaml.clib
builds ok, but getting the core tests passing is a bit finicky, and some fail only becauseruamel.yaml.main
uses__file__
, raised as https://bitbucket.org/ruamel/yaml/issues/324/dependency-on-__file__ . Most usage is unlikely to be effected as this is the CLI of ruamel.yamltoolz
/cytoolz
__file__
Ignore missing __file__ pytoolz/toolz#476decorator
Use of __file__ breaks PyOxidizer micheles/decorator#73 (merged)httpbin
Use importlib.resources instead of __file__ postmanlabs/httpbin#584Django
, https://code.djangoproject.com/ticket/30950 - note installation of Django breaks pytest ifpytest-webtest
orpytest-django
(or other similar plugins) is in thesys.path
ply
Avoid __file__ dabeaz/ply#216 effectingpycparser
Avoid __file__ eliben/pycparser#355 , also effectingcffi
in the built binary (but not in the packaging rule stages)cffi
also fails because it needsPython.h
tlz._build_tlz
uses__file__
Ignore missing __file__ pytoolz/toolz#476yaspin
- fixed on masterorderedmultidict
- Regression with PyInstaller (1.0.1 compared to 1.0) gruns/orderedmultidict#25, pin to<1.0.1
to avoid breakagekombu
andcell
(andcl
) Avoid use of __file__ celery/kombu#1121 / Avoid use of __file__ auvipy/cell#21boltons
Avoid use of __file__ mahmoud/boltons#229hypothesis
Avoid use of __file__ HypothesisWorks/hypothesis#2196 (released)__file__
to be raised upstream)Babel
Replace __file__ with newer APIs python-babel/babel#674Known failures
sys.executable -c
. Using import hooks to add__file__
helps all tests pass.pytest.main(['-v', '/path/to/psutil/tests', '-k', 'not (test_process or TestProcessUtils or TestScripts or TestTerminatedProcessLeaks)'])
removes most of those.[ ] coverage has lots of
__file__
problems, and likely too entrenched to be fixed any time soon. And test failures due to use ofsys.executable -c '..'
Unknown failures
peewee
needs to be tested usingruntests.py
in the project root, and it fails onlytests.fields.TestTimestampField
, in what seems to be a timezone offset problem as the day field is off by one. Need to retest locally with CPython directly.requests
, after hacking around certifi, and even gettingcryptography
extensions working(c.f. cryptography modules not built due to PEP 517 #170),test_https_warnings
still fails and 2 of 4 of the "test_errors" failpytest.main(['-v', '/path/to/requests-2.22.0/tests/', '-k', 'not TestTimeout and not test_errors and not test_proxy_error'])
is my current recipe. fixturehttpbin_ca_bundle = None
is probably the problem - something is probably wrong with myhttpbin
.gevent
tests fail to get collected due to use ofsys.executable -c
; need to get its greentest running under PyOxidizer to evaluate properlylz4
had one failuretest_roundtrip_1[data1-4-True-True-True-0-store_size0]
, and then finished at 37%blist
, errorsNameError: name 'cmp' is not defined
when run under pytest. Need to retest with unittest, as it is passing at https://build.opensuse.org/package/show/devel:languages:python/python-blistaiodns
one failuretest_query_a_bad
aiohttp[speedups]
tests use__file__
, but there are also a four other failures, mostly related to network responses.test_fingerprint_mismatch
,test_aiohttp_request_ctx_manager_not_found
,test_recv_protocol_error[pyloop]
,test_constructor[pyloop]
,TestCookieJarSafe.test_expires
,TestCookieJarSafe.test_max_age
test_scriptinfo
fails but looks due to test runner path fiddling,test_main_module_paths
andtest_aborting
. (This looks good to enough to say that PyOxidizer is Flask compatible.)OK
The text was updated successfully, but these errors were encountered: