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

a2j_control fails because dbus is not in the python path #6916

Closed
svenkeidel opened this issue Mar 21, 2015 · 5 comments
Closed

a2j_control fails because dbus is not in the python path #6916

svenkeidel opened this issue Mar 21, 2015 · 5 comments

Comments

@svenkeidel
Copy link
Contributor

a2j_control is an executable of the a2jmidid project. The exact error message is

Traceback (most recent call last):
  File "/home/sven/.nix-profile/bin/a2j_control", line 11, in <module>
    import dbus
ImportError: No module named dbus

I suggest changing stdenv.mkDerivation to buildPythonPackage and add pythonDBus to the pythonPath. @cillianderoiste can you please comment on my suggestion?

Best,
Sven

@cillianderoiste
Copy link
Member

@svenkeidel I don't think you can use buildPythonPackage for this one since it actually uses waf for building and installing (rather than the setup.py). How about just wrapping a2j_control with the relevant python modules?

@svenkeidel
Copy link
Contributor Author

Whatever works.

@svenkeidel
Copy link
Contributor Author

Have a look at the nix package for jack, they use wrapProgram:

wrapProgram $out/bin/jack_control --set PYTHONPATH $PYTHONPATH

@cillianderoiste
Copy link
Member

Exactly, can you test that out and open a PR?

@svenkeidel
Copy link
Contributor Author

Thanks for the discussion, the PR is #6931,

Best,
Sven

cillianderoiste added a commit that referenced this issue Mar 22, 2015
a2jmidid: wrap python path for a2j_control, fixes #6916
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