RE: Steemit post Bot like @wang for introduceyourself

You are viewing a single comment's thread from:

Steemit post Bot like @wang for introduceyourself

in hacking •  9 years ago 

not working .. have install xero's steem lib....

Traceback (most recent call last):
File "./post_test.py", line 2, in
from steemapi.steemnoderpc import SteemNodeRPC
ImportError: No module named steemapi.steemnoderpc
ubuntu@ubuntu:~/steem/extract$

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  9 years ago (edited)

You need to use "python3".
Have you installed the library for pip3?

Try

  1. apt-get install python3-pip
  2. pip3 install --upgrade pip
  3. pip3 install steem

I'm using Windows and had the same problem. For some reason PYTHONPATH didn't have the default directory for all my python packages listed.

At the top of your "post_test.py" file put:

import sys
print(sys.path)

That will tell you what PYTHONPATH is searching through for imports. Use ."append" to add the location of your steemapi folder. For me that was:

import sys
sys.path.append("C:\Python34\Lib\site-packages")
print(sys.path)