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

ImportError: No module named Api #1

Open
emalphagamma opened this issue Feb 21, 2013 · 8 comments
Open

ImportError: No module named Api #1

emalphagamma opened this issue Feb 21, 2013 · 8 comments

Comments

@emalphagamma
Copy link

Hi Ian,

thanks for uploading this. I am trying to build it but get the 'no module error' and I have no idea how to correct this. Could you please help?

thank you,
mag

@ianozsvald
Copy link
Owner

Did you run "pip install -r requirements.txt" as noted in the README? Can you please include the full console log of what happens when you run pip and then run the code?

@emalphagamma
Copy link
Author

Thanks a lot for the quick reply. I run "pip install -r requirements.txt" and get errors for some of the requirements (the terminal's output is massive) Should I have built the 'python-twitter' wrapper first?
Sorry for the ignorance, I am a complete beginner!

@ianozsvald
Copy link
Owner

You need to install the requirements before you can run the code. Don't worry about the error report being large - run "pip install -r requirements.txt" at the command line again and copy everything (from your 'pip' right to the end) into a pastebin: http://pastebin.com/ and paste the link back here, I can then take a look.

@emalphagamma
Copy link
Author

Please find it here: http://pastebin.com/embed_js.php?i=xLVGyKAv

@ianozsvald
Copy link
Owner

There's a clue at the end of the report - "OSError: Error locating graphviz.". In fairness this isn't explained in my README...pygraphviz depends on GraphViz already being installed (GraphViz is a separate non-python application). Get it via: http://www.graphviz.org/Download_macos.php
After installing GraphViz you should be able to run pip correctly. If not, put another failure report into pastebin and we'll continue :-)

@emalphagamma
Copy link
Author

ah.. this doesnot work either i think :(
its probably because I run mountain lion, right?
here is the second attempt http://pastebin.com/BaiRYKWA
is there perhaps a workaround?

@ianozsvald
Copy link
Owner

I'm a linux user, I can't debug for the Mac I'm afraid. The error message
is suggesting that you must have the dev packages installed too, I'm not sure if
that's important (or how you do it). See if you can get graphviz running at
the command line e.g.
$ dot -V
dot - graphviz version 2.26.3 (20100126.1600)
as if you can't run these tools at the command line, then pygraphviz can't
either. If you can't do this then go to the graphviz support group and ask
for help. Good luck!

On 21 February 2013 16:22, emalphagamma notifications@github.com wrote:

ah.. this doesnot work either i think :(
its probably because I run mountain lion, right?
here is the second attempt http://pastebin.com/BaiRYKWA
is there perhaps a workaround?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-13897616.

Ian Ozsvald (A.I. researcher)
ian@IanOzsvald.com

http://IanOzsvald.com
http://MorConsulting.com/
http://Annotate.IO http://annotate.io
http://SocialTiesApp.com/
http://TheScreencastingHandbook.com
http://FivePoundApp.com/
http://twitter.com/IanOzsvald
http://ShowMeDo.com

@emalphagamma
Copy link
Author

Thanks a lot for your help and time! :)

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