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

failing local build #678

Open
bovard opened this issue Sep 10, 2015 · 9 comments
Open

failing local build #678

bovard opened this issue Sep 10, 2015 · 9 comments

Comments

@bovard
Copy link

bovard commented Sep 10, 2015

When I run:

cd source
./app_setup.sh

it runs for a good long while and then I get the following error:

npm http GET https://registry.npmjs.org/is-property
npm http 200 https://registry.npmjs.org/is-property

> [email protected] install /anaconda/envs/memex/lib/node_modules/log.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished

> [email protected] install /anaconda/envs/memex/lib/node_modules/log.io/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished
/anaconda/envs/memex/bin/log.io-server -> /anaconda/envs/memex/lib/node_modules/log.io/bin/log.io-server
/anaconda/envs/memex/bin/log.io-harvester -> /anaconda/envs/memex/lib/node_modules/log.io/bin/log.io-harvester

> [email protected] postinstall /anaconda/envs/memex/lib/node_modules/log.io
> cake ensure:configuration

Creating ~/.log.io/ for configuration files.
If this fails, run npm using a specific user: npm install -g log.io --user 'ubuntu'
[email protected] /anaconda/envs/memex/lib/node_modules/log.io
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "//anaconda/envs/memex/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "//anaconda/envs/memex/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    settings.INSTALLED_APPS
  File "//anaconda/envs/memex/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in __getattr__
    self._setup(name)
  File "//anaconda/envs/memex/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "//anaconda/envs/memex/lib/python2.7/site-packages/django/conf/__init__.py", line 94, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "//anaconda/envs/memex/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/Users/.../memex-explorer/source/memex/__init__.py", line 3, in <module>
    from .celery import app as celery_app
  File "/Users/.../memex-explorer/source/memex/celery.py", line 6, in <module>
    from celery import Celery
  File "//anaconda/envs/memex/lib/python2.7/site-packages/celery/__init__.py", line 130, in <module>
    from celery import five
  File "//anaconda/envs/memex/lib/python2.7/site-packages/celery/five.py", line 51, in <module>
    from kombu.five import monotonic
  File "//anaconda/envs/memex/lib/python2.7/site-packages/kombu/five.py", line 52, in <module>
    libSystem = ctypes.CDLL('libSystem.dylib')
  File "//anaconda/envs/memex/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(libSystem.dylib, 6): image not found
~/Code/me/memex-explorer/deploy ~/Code/me/memex-explorer/source
~/Code/me/memex-explorer/source
discarding //anaconda/envs/memex/bin from PATH
source$

Looking through commands in app_setup.sh this looks like it is happening in the python manage.py migrate step:

source$ source activate memex
discarding //anaconda/bin from PATH
prepending //anaconda/envs/memex/bin to PATH
(memex)source$ python manage.py migrate
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "//anaconda/envs/memex/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "//anaconda/envs/memex/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    settings.INSTALLED_APPS
  File "//anaconda/envs/memex/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in __getattr__
    self._setup(name)
  File "//anaconda/envs/memex/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "//anaconda/envs/memex/lib/python2.7/site-packages/django/conf/__init__.py", line 94, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "//anaconda/envs/memex/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/Users/.../memex-explorer/source/memex/__init__.py", line 3, in <module>
    from .celery import app as celery_app
  File "/Users/.../memex-explorer/source/memex/celery.py", line 6, in <module>
    from celery import Celery
  File "//anaconda/envs/memex/lib/python2.7/site-packages/celery/__init__.py", line 130, in <module>
    from celery import five
  File "//anaconda/envs/memex/lib/python2.7/site-packages/celery/five.py", line 51, in <module>
    from kombu.five import monotonic
  File "//anaconda/envs/memex/lib/python2.7/site-packages/kombu/five.py", line 52, in <module>
    libSystem = ctypes.CDLL('libSystem.dylib')
  File "//anaconda/envs/memex/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(libSystem.dylib, 6): image not found
(memex)source$
Traceback (most recent call last):
@ahmadia
Copy link
Contributor

ahmadia commented Sep 11, 2015

@bovard - sorry for the delay in responding to this. It looks like there's a problem with your Anaconda install.

OSError: dlopen(libSystem.dylib, 6): image not found

9 times out of 10 these are caused when you have DYLD_LIBRARY_PATH, LD_LIBRARY_PATH, or DYLD_FALLBACK_LIBRARY_PATH defined in your environment. You can check what's in your environment by typing printenv at your shell.

Also, I usually recommend that people install Anaconda into its default location in their home directory to avoid permissions issues.

Let me know if this helps.

@bovard
Copy link
Author

bovard commented Sep 15, 2015

@ahmadia thanks, I'll take a look later this week

@ahmadia
Copy link
Contributor

ahmadia commented Oct 4, 2015

@bovard - Any progress on this?

@bovard
Copy link
Author

bovard commented Oct 11, 2015

@ahmadia it works! just needed to do export DYLD_FALLBACK_LIBRARY_PATH=/usr/lib

@ahmadia
Copy link
Contributor

ahmadia commented Oct 11, 2015

export DYLD_FALLBACK_LIBRARY_PATH=/usr/lib

Was it set to something else before? Setting DYLD_FALLBACK_LIBRARY_PATH=/usr/lib is going to cause problems for any user-installed tools (Homebrew, MacPorts, conda) in the future.

@bovard
Copy link
Author

bovard commented Oct 12, 2015

Looks like it was set to:

DYLD_FALLBACK_LIBRARY_PATH: :/Users/me/anaconda/lib:/Users/me/anaconda/lib

@bovard
Copy link
Author

bovard commented Oct 12, 2015

Looks like the crawl functionality doesn't work, displays JAVA_HOME is set to... and usage but doesn't do any crawling.

@ahmadia
Copy link
Contributor

ahmadia commented Oct 13, 2015

Yeah, try unsetting it completely.

@ahmadia
Copy link
Contributor

ahmadia commented Oct 13, 2015

Sorry, missed that last message from you. memex-explorer is a web application, did you start it up using supervisor and then point your browser to localhost?

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