Skip to content

Force Julia to only use pyjulia cache path - #93

Closed
ExpandingMan wants to merge 2 commits into
JuliaPy:masterfrom
ExpandingMan:fixes0
Closed

ExpandingMan wants to merge 2 commits into
JuliaPy:masterfrom
ExpandingMan:fixes0

Conversation

@ExpandingMan

Copy link
Copy Markdown

This forces Base.LOAD_CACHE_PATH to only point to the directory with binaries specific to pyjulia and fixes #92. This solution is certainly not ideal because it forces recompilation of absolutely everything, but previously many (if not most) users would experience a segfault when they start pyjulia for the first time.

A permanent solution would be either Julia adding functionality to set the cache path for individual modules, or pyjulia making changes to Base.LOAD_CACHE_PATH every time it loads a module. It seems to me that the best way to implement the latter solution would be to add a special macro to PyCall which pyjulia would use instead of using.

The reason for the very strange line 345 is because Julia does not allow you to assign variables in other modules, and I wasn't able to find a single Julia function for emptying an array. If somebody knows of one I will of course change it.

Note that this does not fix #89, which I really don't understand.

@rdeits

rdeits commented Mar 30, 2017

Copy link
Copy Markdown
Contributor

@ExpandingMan

Copy link
Copy Markdown
Author

Ah! That would make sense! Somehow I missed that. Changes incoming.

@ExpandingMan

Copy link
Copy Markdown
Author

I don't think the apple error has anything to do with my change.

It looks like this package fails no matter what on the nightlies. I'm guessing the best thing to do at this point is to get this package working on v0.6 before trying to merge any PR's. I'll start working with v0.6 as soon as they tag a real beta, and then I'll try getting this working.

@Keno Keno closed this Aug 18, 2017
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

Successfully merging this pull request may close these issues.

segfault during initialization of Julia object segfault when using any package that uses PyCall

3 participants