-
Notifications
You must be signed in to change notification settings - Fork 234
xdist v1.26 breaks PyInstaller's test suite for Python 2.7 #414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @htgoebel, First of all thanks for pyinstaller, we use it at work extensively and is a great piece of software. I see htgoebel/pyinstaller@4f8f624#diff-354f30a63fb0907d4ad57269548329e3 That's pretty close to what was changed in #397...
|
Hi @nicoddemus
May I ask you to consider funding a few days of development?
Yes, I tried to "revert" #397. re 1) Yes PyInstaller is installed using re 2) This does not solve the issue, see https://travis-ci.org/htgoebel/pyinstaller/jobs/492320342#L1023 |
Great!
Right, see the change you mentioned in #414 (comment) and can see it here and heere in the travis log.
Yes, this also happens on windows, see https://ci.appveyor.com/project/htgoebel/pyinstaller/builds/22317708/job/nl84rdbnwlk74org The symptoms are a bit different (there are other tests which fail), but the problem is the same. For reproducing please note:
So for speeding up testing I suggest using
|
Thanks, I will give it a go ASAP. 👍 |
Hi @htgoebel, Managed to reproduce the issue and debug a little. First thing is that my suspicions are correct and I can confirm if I revert #397 on top of I saw your print statements you added to Here's the difference in
(Note that the 3d
Another interesting difference is on the imported modules:
So #397 caused the imported modules to get relative paths, instead of absolute ones, because without I noticed a workaround: if I execute from inside the
Not clear to me yet why this is causing a problem though. |
(I was about to close PyCharm when I decided to take a look at I noticed these two lines at the top:
If I comment out
This is strange, this type of sys.path manipulation should not be necessary given that
It is late, I will continue this debugging some other time. |
Hey @nicoddemus, did you ever have a chance to further debug this? One interesting side-effect of this issue is that |
add a workaround for pytest-dev/pytest-xdist#414
add a workaround for pytest-dev/pytest-xdist#414
add a workaround for pytest-dev/pytest-xdist#414
add a workaround for pytest-dev/pytest-xdist#414
Given that this affects Python 2.7 only, which will be EOL in 3 moths, I'm closing this issuse. |
Sorry for lack of response here, unfortunately I did not manage to find the time to look further into it, sorry. @htgoebel thanks for the follow up. 👍 |
add a workaround for pytest-dev/pytest-xdist#414
Uh oh!
There was an error while loading. Please reload this page.
PyInstaller's test-suite fails with an import error when xdist 1.26 is used, but only on Python 2.7.
PyInstaller/__main__.py:78
reads:import PyInstaller.building.makespec
.PyInstaller.building.PyInstaller
,PyInstaller.lib.modulegraph.sys
,PyInstaller.utils.hooks.PyInstaller
and evenPyInstaller.utils.pytest
- none of which exists.PyInstaller.hooks
.I thought, this might be related to #397, but setting PYTHONPATH does not solve the issue.
The text was updated successfully, but these errors were encountered: