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

help with instalation, zmq and python related... #68

razcore-art opened this issue Jun 27, 2015 · 2 comments

help with instalation, zmq and python related... #68

razcore-art opened this issue Jun 27, 2015 · 2 comments


Copy link

@razcore-art razcore-art commented Jun 27, 2015

Please help me... I have tried everything, including:

  • running with PYTHON=python apm...
  • setting apm config set python /path/to/python

and still desn't work. I'm not entirely sure how this is connected to python cause it's the first time I'm using it and in the build (from apm) I don't get any reference to python. The package installs in atom but when I open it it says incompatible packages: zmq@2.11.1 - Error message: cannot open shared object file: No such file or directory.

Now I go in $HOME/.atom/packages/Hydrogen/node_modules/zmq/build/Release and do:

razvan@laptop:~/.atom/packages/Hydrogen/node_modules/zmq/build/Release$ ldd zmq.node =>  (0x00007ffcea79b000) => /home/razvan/.local/lib/ (0x00007fcdbb9be000) => /usr/lib/x86_64-linux-gnu/ (0x00007fcdbb6af000) => /lib/x86_64-linux-gnu/ (0x00007fcdbb498000) => /lib/x86_64-linux-gnu/ (0x00007fcdbb0ce000) => /lib/x86_64-linux-gnu/ (0x00007fcdbaec6000) => /lib/x86_64-linux-gnu/ (0x00007fcdbaca7000) => /lib/x86_64-linux-gnu/ (0x00007fcdba99f000)
    /lib64/ (0x00007fcdbbe41000

But if I try and run the executable I just get a Segmentation fault (core dump) error. Now I do:

razvan@laptop:~/.atom/packages/Hydrogen/node_modules/zmq/build/Release$ gdb ./zmq.node 
Failed to import the site module
Traceback (most recent call last):
  File "/usr/lib/python3.4/", line 586, in <module>
  File "/usr/lib/python3.4/", line 572, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/lib/python3.4/", line 287, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/lib/python3.4/", line 263, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/lib/python3.4/", line 253, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/lib/python3.4/", line 597, in get_config_var
    return get_config_vars().get(name)
  File "/usr/lib/python3.4/", line 540, in get_config_vars
  File "/usr/lib/python3.4/", line 412, in _init_posix
    from _sysconfigdata import build_time_vars
  File "/usr/lib/python3.4/", line 6, in <module>
    from _sysconfigdata_m import *
ImportError: No module named '_sysconfigdata_m'

And get this strange error about python3.4, but I can run... python3 -m site with no problem:

razvan@laptop:~/.atom/packages/Hydrogen/node_modules/zmq/build/Release$ python3 -m site
sys.path = [
USER_BASE: '/home/razvan/.local' (exists)
USER_SITE: '/home/razvan/.local/lib/python3.4/site-packages' (exists)

Further notes:
I run on latest Ubuntu and have installed python 2 & 3 locally with the help of linuxbrew. Also node is installed with brew and afterwards node-gyp with the local npm command, but if I'm not mistaking apm uses it's own node-gyp installation.. I uploaded the install log from apm install --verbose hydrogen here.

Any help is greatly appreciated!


This comment has been minimized.

Copy link

@razcore-art razcore-art commented Jun 27, 2015

Well... sorry for my stupidity, it was my fault it seems. Atom complained that I had zmq linked against (provided by brew) which isn't compatible with the current atom build... so I installed libzmq system-wide from ubuntu repositories (libzmq3) which has a version about which atom doesn't complain...

Sorry for any inconvenience. I will follow your project very closely! Thanks.


This comment has been minimized.

Copy link

@willwhitney willwhitney commented Jun 27, 2015

Huh, glad you figured this out. Your work will probably help someone else in the future!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.