You are viewing a single comment's thread from:

RE: Steemit post Bot like @wang for introduceyourself

in #hacking8 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$

Sort:  

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)

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 64038.60
ETH 3148.89
USDT 1.00
SBD 3.97