-
-
Notifications
You must be signed in to change notification settings - Fork 571
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
Complete working example using a package from pypi #1741
Comments
What problem are you having? The interpreter is defined here. |
I can't get anything to work after hours of trying.
So I've put the pip_parse example into my own repo and tried to do a bare
bones setup and it errors out:
weegreenblobbie/example_rules_python@c8c273b
LAUNCHER ERROR: Cannot launch process: "python.exe"
Any help would be appreciated!
Nick
…On Thu, Feb 8, 2024 at 1:37 PM Jeremy Volkman ***@***.***> wrote:
What problem are you having? The interpreter is defined here
<https://github.com/bazelbuild/rules_python/blob/main/examples/pip_parse/WORKSPACE#L12-L15>
.
—
Reply to this email directly, view it on GitHub
<#1741 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPYP32MQAQJ5QKMPX6MN3TYSVARTAVCNFSM6AAAAABCUITYUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZUHE3TENJZHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
After resetting the contents of requirements*.txt, I get a different error as documented here: weegreenblobbie/example_rules_python@3b42abf bazel run //tools:main I'm happy to update docs once I understand what I'm doing wrong. Nick |
Here is a working example: https://github.com/pat-jpnk/bazel_pip_example In your code you need to call |
Still doesn't work: weegreenblobbie/example_rules_python@d43ac0c Does |
Please reopen. |
Yes, you need a system interpreter for now (#691) and you need to use something like Your example from the first glance looks OK, though. |
Using @pat-jpnk's examples I'm still failing on Windows after install python 3.11 from python.org: I updated to python 3.11 in the WORKSPACE file:
|
🐞 bug report
Description
I'm trying to create a project that uses restructured text and I want to use the
rstfmt package. I can install this manually on windows but I thought I'd try to
use bazel to make this easier for future users.
I tried following the pip_parse examples but it's not complete. No python
interpreter is specified and I can't figure out how to make it work. Can we add
a complete, working example? If specific versions of bazel is required please
specify as a comment in the example.
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
Anything else relevant?
I'm invoking bazel in a user mode power shell.
The text was updated successfully, but these errors were encountered: