-
Notifications
You must be signed in to change notification settings - Fork 129
Use shell=False
for Popen
on Windows
#1324
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (85.91%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1324 +/- ##
==========================================
+ Coverage 82.05% 82.08% +0.02%
==========================================
Files 203 206 +3
Lines 48863 49171 +308
Branches 8695 8718 +23
==========================================
+ Hits 40093 40360 +267
- Misses 6619 6654 +35
- Partials 2151 2157 +6
🚀 New features to boost your workflow:
|
@Armavica you also worked on these components - what do you think about |
I will have a look this weekend or next week |
@Armavica did you already get a chance? |
I don't think I worked specifically on this besides cosmetic changes, and I never tried to install PyTensor on Windows. |
The backslashes in `__file__` created invalid escape sequences.
1c15c12
to
c78cef1
Compare
Without the list to string conversion already the first test failed. |
Should we have a try/except where this is called that tries the shell trick if it fails without it, just in case this is actually doing something for someone out there? |
I don't think that's needed. To me it looks like the recent changes to compilation dependencies (switching to g++, no longer using mkl-toolchain and so on) simply don't work with And this is only going to affect future versions which will be in that new configuration.. |
We didn't switch to g++ recently or anything like that. |
I'm mean this: f37380f |
What about non-conda users? |
Do you have a specific scenario in mind?
|
can we get to a conclusion on this one? from my point of view this change fixes all Windows setups I can come up with; all of which were broken before.. |
It all seems good to me, but I'm gun shy about approving since I haven't touched this part of the codebase before. You're saying the recent changes to the tooling makes that comment about the conda |
That's the only possible definition, and the type checker is freaking out.
Convert lines when `parse=False` from generator to list. The result when `parse=False` is only used in a warning message, and I don't think the generator would even print properly.
...in print statements
98b81fb
to
2928211
Compare
I took this further because halfway workarounds are very difficult for me to reason about.
Is this in reference to the following? Lines 140 to 145 in 2928211
I'd love to get rid of that too, but I'm not quite feeling that motivated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michaelosthege maybe a quick glance at my commits?
(Please ping me in case of CI failure.)
Thanks @maresb, your commits look good! Running the tests now.. |
Hmm, this may be an important occasion to make codecov happy. This is a situation where the tests are basically the only indication we're not breaking stuff. Just about to take off now though. |
Unsurprisingly I get failing tests when running things locally (even
List of failing tests
|
They could get tested independently. This was mostly done to understand their purpose.
b4f7eb3
to
5e03d50
Compare
Such that its name can be more informative.
5e03d50
to
fa88367
Compare
Ran a bunch of tests, did some more refactoring and fixed some tests for Windows. Everything appears to be working fine. |
Description
I'm having hard times creating new environments with working compiler dependencies.
My debugging attempts show that
shell=False
could fix this, however this observation contradicts the comments next to that line.Further testing may be required.Tested on another machine.I also removed an old workaround for Python 2..
Related Issue
Hints?
Checklist
Added necessary documentation (docstrings and/or example notebooks)Type of change
📚 Documentation preview 📚: https://pytensor--1324.org.readthedocs.build/en/1324/