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

gr crashes on executing the example #3

Closed
HermenB opened this issue Dec 5, 2014 · 10 comments
Closed

gr crashes on executing the example #3

HermenB opened this issue Dec 5, 2014 · 10 comments

Comments

@HermenB
Copy link

HermenB commented Dec 5, 2014

I installed gr using conda install -c https://conda.binstar.org/jheinen gr on mac osx 10.8.5. There seems to be an issue with the 'libfreetype.6.dylib'.
When running the example from the gr website:
from gr import pygr
pygr.plot([0,1,4],[3,2,5])
gr crashes and leaves an item named: "libfreetype.6.dylib" in the finder favorites column, which refers to the following terminal message:

Last login: Fri Dec 5 15:01:10 on ttys002
/opt/X11/lib/libfreetype.6.dylib ; exit;
~ user$ /opt/X11/lib/libfreetype.6.dylib ; exit;
-bash: /opt/X11/lib/libfreetype.6.dylib: cannot execute binary file
logout

[Proces voltooid]

More information may be found in the apple crash report, most of which to be honest is beyond my comprehension. The apple crash report is attached below. How could I get gr working on my machine? Your help is very much appreciated.

Regards,

Hermen
ps: anaconda is installed in user/anaconda


Apple crash report deleted because problem==solved

@jheinen
Copy link
Collaborator

jheinen commented Dec 5, 2014

It seems that the GR framework has to be build for an older deployment target.
I will test this and probably correct the build settings in the next version (0.8), which is planned for next week. Is this OK for you?

@HermenB
Copy link
Author

HermenB commented Dec 6, 2014

Next week is perfectly fine for me, thanks!

BTW, Does that mean that it would run under OS X 10.10 (Yosemite), for
example?
That's the only upgrade I might consider, thus skipping 10.9.

Regards,

Hermen

On Fri, Dec 5, 2014 at 8:19 PM, jheinen notifications@github.com wrote:

It seems that the GR framework has to be build for an older deployment
target.
I will test this and probably correct the build settings in the next
version (0.8), which is planned for next week. Is this OK for you?


Reply to this email directly or view it on GitHub
#3 (comment).

@jheinen
Copy link
Collaborator

jheinen commented Dec 7, 2014

I have to admin that I built the latest Conda package for GR on a Yosemite system. I probably should follow other developers' advice and build future packages on an older OS X host, e.g. 10.8 or even 10.6 (as I did before) due to some problems with Xcode 6. I will check this on my office desktop which I normally use to test GR packages with different OS X virtual machines.

If you plan to upgrade to Yosemite, don;t forget to re-install Xquartz.

@HermenB
Copy link
Author

HermenB commented Dec 8, 2014

Well, it ìs advanced stuff after all, this GR:-) Thanks for the advice, and I'll keep an eye for the next upgrade.

regards,

Hermen

@HermenB
Copy link
Author

HermenB commented Sep 2, 2015

Hello again,
Today I finally got to installing gr again, but this time another issue arose. After trying the example in the "Getting started" section, I got the following error message:

from gr import pygr
pygr.plot([0,1,4],[3,2,5])
2015-09-02 13:25:38.461 python[1117:707] Could not locate GKSTerm.app.
2015-09-02 13:25:38.462 python[1117:707] Launching GKSTerm failed.

I figured it has something to do with XQuartz, and reinstalled that, but still no avail. Do you heve any further suggestions? I'm still on OSX 10.8.5, I should add…

Kind regards,

Hermen

PS: I continued on this thread because I couldn't find the option to create a new one...

@jheinen
Copy link
Collaborator

jheinen commented Sep 2, 2015

I'm sorry that there are (again) problems with the installation. I'll check this tomorrow on my office desktop. The next GR release will be self-contained and built without XQuartz, although this is not related to the current issue.

@jheinen
Copy link
Collaborator

jheinen commented Sep 3, 2015

As a temporary solution, please download the missing GKSTerm.app and unpack or move it to your Anaconda bin directory, e.g, if you installed Anaconda in your home directory:

cd $HOME/anaconda/bin
curl -O http://gr-framework.org/downloads/GKSTerm.zip
open GKSTerm.zip
rm GKSTerm.zip

Sorry for the inconvenience ...

@HermenB
Copy link
Author

HermenB commented Sep 3, 2015

Thank you for this solution, I'll try it today. Just for my knowledge, what is GKSTerm.app exactly? When I googled it, I only found references to the gr-website. Is it an in-house developed product?
And to verify, as far as I know the only requirement for gr is pyopengl, is that correct? Or do I need other programs / packages, too? Specifically, in the gr code I found references to .xcodeproj, do I need Xcode to be installed?

@jheinen
Copy link
Collaborator

jheinen commented Sep 3, 2015

GKSTerm.app is part of the GR framework - it is the GR's native graphics driver for OS X. The requirements for GR are shown in the installation section of the website.

With the next release, the optional packages can automatically be downloaded and built with a shell script (3rdparty/makeself.sh). The result is a self-contained GR distribution, thus minimizing dependencies and improving portability.

For the Python part, numpy is the only requirement. To run all the demos, you might have to install some other packages, e.g. scipy or pyaudio, but those are note required for normal usage.

Xcode is only needed, if you want to build the GR framework from source.

@HermenB
Copy link
Author

HermenB commented Sep 3, 2015

Thank you, this worked! I am currently trying out some of the demos and so far, so good! Sometimes it seems not to work, but after a kernel restart it does. Thank you very much for your patience with helping me out.

kind regards,

Hermen

ps: do you know where best to get pyopencl? I couldn't find it on Anaconda.

@jheinen jheinen closed this as completed Jul 30, 2016
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