-
Notifications
You must be signed in to change notification settings - Fork 26
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
CLI installation fails with "Python.h: no such file or directory" #26
Comments
Hi @iceback , the installation failed while installing pyyaml, due to the lack of Python development package. Which OS are you using? Python 3.6 is used? |
Yes. Python 3.6. Working with sys admin if larger system
… On Apr 15, 2020, at 12:57 PM, Rick Kim ***@***.***> wrote:
Hi @iceback , the installation failed while installing pyyaml, due to the lack of Python development package. Which OS are you using? Python 3.6 is used?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Unless this is a already a way your team commonly installs python packages, you may be better off using python virtual environments. As in,
This will ensure that the From some older python docs, the |
I’ll take that under advisement. Getting the whole group into venv not straight forward
… On Apr 15, 2020, at 1:45 PM, Kyle Moad ***@***.***> wrote:
Unless this is a already a way your team commonly installs python packages, you may be better off using python virtual environments. As in,
python3 -m venv /group3/tools/pythonvenv
source /group3/tools/pythonvenv/bin/activate
python3 -m pip install open-cravat
This will ensure that the oc tool is available on the command line, as long as the venv is active.
From some older python docs, the --install-option="--prefix=/group3/tools" option is changing the install write directory, while running python from the system path. Unless you have the relevant directories under /group3/toolsadded to your PATH, theoccommand line tool will not be available. The same issue would still apply if you used the newer--target` option for pip as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
If I'm following correctly you removed linux option 2), leaving only the single-user option 1. However, I do not see any "oc" (nor "cravat") executable so "oc module install-base" is off the table In interactive python3 session, "import cravat" get this little scree, twice
Is that expected? |
That message is expected with pyyaml>=5.1. It will be gone in the next version of OC, and the warning can be disabled by setting an environment variable as described here. PyYaml made some non-backwards compatible changes and was unstable for a few versions around 5.1, so we temporarily pinned to a stable version. The oc executable is a script that pip automatically creates in the user's path. The script is
Putting this script somewhere in path should make |
Also, depending on how your machine is configured, you may want to put oc's modules directory (where reference data gets installed) somewhere other than the default, which is under python's package directory. This can be done with |
Thank you, tons and tons
…On 4/15/20 4:02 PM, Kyle Moad wrote:
Also, depending on how your machine is configured, you may want to put
oc's modules directory (where reference data gets installed) somewhere
other than the default, which is under python's package directory.
This can be done with |oc config md [path]|, before |oc module
install-base|.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACY7PFB5W36J2GSUTKGAKTRMYVFTANCNFSM4MIDTNBQ>.
|
@iceback We've just release OpenCRAVAT 1.8.0, which won't throw pyyaml warnings. If you update, be sure to change the version number in the oc script above. |
I'll see if I can recreate the magic |
Oh, and also, please run |
Hm - this is tricky: I think we're good, but a little shakey. (I don't use oc, I'll pester she-who-does to try it asap) |
Appreciate the detail here. Looks like the "Continue" prompt for oc module update goes to stderr, and was being redirected. Oddly, it appears to get redirected by 1> /dev/null and by 2> /dev/null. Gonna dig a bit to figure out what python's up to there. |
I'm trying to install open-cravat for our team with a shared resource. I do not have sudo privileges. My command line, as follows, attempts to place the product into our space.
pip3 install
--verbose
--install-option="--prefix=/group3/tools"
open-cravat
Adding -v to the last action ("Running command") I see
import 'setuptools.msvc' # <_frozen_importlib_external.SourceFileLoader object at 0x2ae8d794b5c0>
import 'setuptools' # <_frozen_importlib_external.SourceFileLoader object at 0x2ae8cac41a20>
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib64/python3.6/tokenize.py", line 452, in open buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-ydzqg6mr/pyyaml/setup.py'
I was wondering if there was a connect between "msvc" and not find "Python.h" in a case insensitive manor?
Any help very much appreciated.
The text was updated successfully, but these errors were encountered: