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

OpenCv module auto-completion not working #109

Closed
lelouch619 opened this issue Jan 28, 2013 · 2 comments
Closed

OpenCv module auto-completion not working #109

lelouch619 opened this issue Jan 28, 2013 · 2 comments

Comments

@lelouch619
Copy link

Hi,
Firstly thanks for providing such a great tutorial .I am a newbie to Emacs and just followed your steps and installation worked fine.The speed bar,rope,auto-completion everything works like a charm.I have started coding normal programs ,lately i installed opencv and python bindings for it.The program works fine but the auto-complete is not working for opencv packages.

begin src

import cv2.cv as cv
cv.LoadImage()#LoadImage is not prompting
import math
math.sqrt# sqrt is prompting and working fine

End src

Am i missing anything for additionally installed packages than default ones.

@gabrielelanaro
Copy link
Owner

Hi! I find that ropemacs does not work really well with module completion, and I'll work to integrate another library (jedi) that seems to work great. Anyway to fix your problem, you can try that:

go in your project directory, there should be a directory called .ropeproject.
edit the file config.py in that directory at the section:

 # Builtin and c-extension modules that are allowed to be imported
 # and inspected by rope.
 prefs['extension_modules'] = []

And edit like this:
prefs['extension_modules'] = [ 'cv2', 'cv2.cv' ]

Or add any other module that you may want, beware that if the module is huge (like say, pyopengl or pyqt) you may have some performance hit.

@lelouch619
Copy link
Author

Thank you so much,your solution worked.

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