twitter-social-graph-networkx
twitter-social-graph-networkx copied to clipboard
ImportError: No module named Api
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
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?
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!
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.
Please find it here: http://pastebin.com/embed_js.php?i=xLVGyKAv
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 :-)
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?
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 [email protected] 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/ianozsvald/twitter-social-graph-networkx/issues/1#issuecomment-13897616.
Ian Ozsvald (A.I. researcher) [email protected]
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
Thanks a lot for your help and time! :)