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

On mac, py27, cdat8 and nightly fail when installed from cdat channels #27

Closed
danlipsa opened this issue Oct 4, 2018 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@danlipsa
Copy link

danlipsa commented Oct 4, 2018

On Mac, py27, both cdat8 and nightly installed using conda channels (not the yaml file) fail with:

(nightly) brasov:src danlipsa$ python t.py
Traceback (most recent call last):
File "t.py", line 1, in
import vcs, cdms2, cdat_info
File "/Users/danlipsa/projects/vcs/src/vcs/init.py", line 102, in
from .utils import * # noqa
File "/Users/danlipsa/projects/vcs/src/vcs/utils.py", line 17, in
import cdtime
ImportError: dlopen(/Users/danlipsa/anaconda2/envs/nightly/lib/python2.7/site-packages/cdtime.so, 2): Library not loaded: @rpath/libpng16.16.dylib
Referenced from: /Users/danlipsa/anaconda2/envs/nightly/lib/python2.7/site-packages/cdtime.so
Reason: Incompatible library version: cdtime.so requires version 52.0.0 or later, but libpng16.16.dylib provides version 51.0.0

Do you know how to fix this? (In the future, adding that pin_run_as_build might help, but its a pity you have to pin to a version to use it)

@danlipsa
Copy link
Author

danlipsa commented Oct 4, 2018

After recompiling and installing cdtime in the cdat8 environment I get:
(cdat8) brasov:src danlipsa$ python t.py
Traceback (most recent call last):
File "t.py", line 1, in
import vcs, cdms2, cdat_info
File "/Users/danlipsa/projects/vcs/src/vcs/init.py", line 102, in
from .utils import * # noqa
File "/Users/danlipsa/projects/vcs/src/vcs/utils.py", line 20, in
from . import boxfill
File "/Users/danlipsa/projects/vcs/src/vcs/boxfill.py", line 20, in
from . import VCS_validation_functions
File "/Users/danlipsa/projects/vcs/src/vcs/VCS_validation_functions.py", line 5, in
import genutil
File "/Users/danlipsa/anaconda2/envs/cdat8/lib/python2.7/site-packages/genutil/init.py", line 5, in
from .grower import grower # noqa
File "/Users/danlipsa/anaconda2/envs/cdat8/lib/python2.7/site-packages/genutil/grower.py", line 3, in
import cdms2 as cdms
File "/Users/danlipsa/anaconda2/envs/cdat8/lib/python2.7/site-packages/cdms2/init.py", line 26, in
from .axis import AbstractAxis, axisMatches, axisMatchAxis, axisMatchIndex # noqa
File "/Users/danlipsa/anaconda2/envs/cdat8/lib/python2.7/site-packages/cdms2/axis.py", line 23, in
standard_library.install_aliases()
File "/Users/danlipsa/anaconda2/envs/cdat8/lib/python2.7/site-packages/future/standard_library/init.py", line 483, in install_aliases
import test
File "/Users/danlipsa/projects/vcs/src/test.py", line 2, in
AttributeError: 'module' object has no attribute 'init'

@dnadeau4
Copy link
Contributor

dnadeau4 commented Oct 25, 2018

@danlipsa make sure you don't have a file called "test.py" in your directory. standard_library import test.

@danlipsa
Copy link
Author

danlipsa commented Oct 25, 2018

Denis, thanks, I think I passed this renaming the file and also using the install procedure on the website.

@doutriaux1 doutriaux1 added this to the 3.1 milestone Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants