Skip to content
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

Install failing on MacOS #6

Open
msollami opened this issue Oct 1, 2018 · 8 comments
Open

Install failing on MacOS #6

msollami opened this issue Oct 1, 2018 · 8 comments
Assignees

Comments

@msollami
Copy link

msollami commented Oct 1, 2018

I'm on v11.3 with MacOS 10.13.6. Doesn't seem to install as the Readme says:

In[82]:= PacletInstall["PJLink","Site"->"http://www.wolframcloud.com/objects/b3m2a1.paclets/PacletServer"]
Out[82]= Paclet[PJLink,1.0.0,<>]
In[83]:= ker=InstallPython[];
In[84]:= PyEvaluateString["import numpy as np"];
PyEvaluateString["np.random.rand(5, 5, 5)"]~Short~3
Out[85]//Short= PyEvaluateString[np.random.rand(5, 5, 5)]
@b3m2a1
Copy link
Owner

b3m2a1 commented Oct 1, 2018

What's the error you're getting? The flow works for me on the same MacOS. Is it an issue in the InstallPython step?

@b3m2a1 b3m2a1 self-assigned this Oct 1, 2018
@b3m2a1
Copy link
Owner

b3m2a1 commented Oct 1, 2018

Oh shoot have you run <<PJLink` ? I can't believe I forgot that step in the README...

@msollami
Copy link
Author

msollami commented Oct 1, 2018

<< PJLink`
ker = InstallPython[];

warns:

StartProcess::pnfd: Program python3 not found. Check Environment["PATH"].

and then hangs

@b3m2a1
Copy link
Owner

b3m2a1 commented Oct 1, 2018

@msollami Hmm... I think I've hit that one for others before. If I had to guess there's something weird going on with the .so file compilation. If you're willing to do a bit of testing, try

DeleteFile@
 FileNames["*.so", 
   PacletFind["PJLink"][[1]]["Location"], Infinity][[1]]

and try again

@msollami
Copy link
Author

msollami commented Oct 1, 2018

It's looking for python3, which isn't a thing on my machine - just python.

@b3m2a1
Copy link
Owner

b3m2a1 commented Oct 1, 2018

Ahh. That would be an issue. Do you have python 3 installed? Another thing I forgot to mention in the readme is that this is a python3 package as the python C interface is very different for 2 and for 3. (I'll add that).

@msollami
Copy link
Author

msollami commented Oct 2, 2018

I use conda inside zsh:

 ➜ conda activate py36
(py37) ➜ which python
/Users/msollami/anaconda3/envs/py36/bin/python

The exact version is:

Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 11:07:29) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin

Is there a way to tell your package to use this executable or is it looking for some brew installation?

@b3m2a1
Copy link
Owner

b3m2a1 commented Oct 2, 2018

Yeah try:

InstallPython["python"]

where the first argument is the executable to use or a version string. Conda's been a problem for compilation and things in the past but hopefully the fixes I've tried to get in place will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants