wenv | Running Python on Wine | Build Tool library
kandi X-RAY | wenv Summary
kandi X-RAY | wenv Summary
Running Python on Wine
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get list of available versions
- Download a file
- Return the latest build for the given arch and minor
- Return a list of available python versions
- Return the version of the builtin package
- Parse version string
- Command line interface
- Shebang
wenv Key Features
wenv Examples and Code Snippets
Community Discussions
Trending Discussions on wenv
QUESTION
As part of my Python package, I am trying to launch wine
through Python's subprocess.Popen
. In a nutshell, (only) on Travis CI, although wine
is in PATH
, I am receiving the following error: FileNotFoundError: [Errno 2] No such file or directory: 'wine': 'wine'
What am I overlooking?
OK: The wine
command is located in /opt/wine-staging/bin
, which is also part of PATH
. It is added in the before_install
section of .travis.yml
.
OK: Running wine --version
in the before_install
section works, showing the correct version of Wine.
OK: Checking os.environ
confirms that Python sees the correct content of PATH
including /opt/wine-staging/bin
.
OK: Checking the contents of /opt/wine-staging/bin
from my Python script with os.listdir('/opt/wine-staging/bin/')
confirms that wine
is present.
NOT OK: Running subprocess.Popen(['which', 'wine'], stdout = subprocess.PIPE, stderr = subprocess.PIPE).communicate()
from within the Python script does not yield any output at all (but also does not fail in a meaningful way).
NOT OK: Running subprocess.Popen(['wine', '--version'], stdout = subprocess.PIPE, stderr = subprocess.PIPE).communicate()
fails with FileNotFoundError: [Errno 2] No such file or directory: 'wine': 'wine'
.
ANSWER
Answered 2019-Sep-17 at 11:22On openSUSE Linux, subprocess.Popen
will inherit all variables from os.environ
implicitly, even if the env
parameter is changed. The following will work just fine:
QUESTION
if I run only this - it works as expected
...ANSWER
Answered 2018-Mar-16 at 15:19You just have to figure out what directory you're in when you that executes. make_base_dir calls make_log_file which does a cd but never changes back to the previous directory.
QUESTION
Using a nested model like this:
...ANSWER
Answered 2017-Sep-18 at 19:49 File "C:\Users\ccsv\Desktop\wenv\mysite\stats\models.py", line 89, in __str__
return self.parent.parent.name()
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wenv
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page