[Python #7][Troubleshooting #2] 用 python 导入 Steem 库时报错解决方法

in cn •  19 days ago  (edited)

steem库安装成功, 在IDLE尝试了一下,没料到又来个磨难,无法导入库。
看日志有几个文件报错,呼叫了咱谷歌兄看看有没有办法。

谷歌兄说nt.py文件里的导入方式不对,说 python 3.x 开始导入方式有所改动。
把里面的方式改下即可。

AS-IS:

import winrandom

TO-BE:

from . import winrandom

改完可以正常导入steem库了。
image.png

也可以正常创建对象,调用了我自己账号信息也正常通过。
image.png

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:  

!thumbup
恭喜你!您的这篇文章入选 @justyy 今日 (2019-11-01) 榜单 【优秀的文章】, 回复本条评论24小时内领赏,点赞本评论将支持 @dailychina 并增加将来您的奖赏。
@justyy 是CN区的见证人,请支持他,给他投票,或者设置justyy为见证人代理。感谢!@justyy的主要贡献:https://steemyy.com

Congratulations! This post has been selected by @justyy as today's (2019-11-01) 【Good Posts】, Steem On! Reply to this message in 24 hours to get rewards. Upvote this comment to support the @dailychina and increase your future rewards! ^_^

SteemIt 工具、API接口、机器人和教程
SteemIt Tools, Bots, APIs and Tutorial



If you believe what I am doing, please consider a spare vote voting me here, thank you very much indeed.

@justyy - the author of https://SteemYY.com and I have been a Steem Witness for more than a year now.

谢谢

Posted using Partiko Android

$trdo

Congratulations @theshaki, you are successfuly trended the post that shared by @june0620!
@june0620 will receive 0.34581938 TRDO & @theshaki will get 0.23054625 TRDO curation in 3 Days from Post Created Date!

"Call TRDO, Your Comment Worth Something!"

To view or trade TRDO go to steem-engine.com
Join TRDO Discord Channel or Join TRDO Web Site

Thank you so much for participating in the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!

@tipu curate 3

Posted using Partiko Android

Upvoted 👌 (Mana: 0/3)

自己叫了也挺好 偶尔可以呼叫下的
你应该5分钟左右呼叫最佳或艾特我来给你呼叫下嘛😁😜
!shop

Posted using Partiko Android

是啊,第一次给自己呼叫很失败。
发完贴、午睡了下,忘了 哈哈

Posted using Partiko Android

下次有经验了😄

Posted using Partiko Android

你好鸭,june0620!
@annepink赠送1枚SHOP币给你!

目前你总共有: 166枚SHOP币

查看或者交易 SHOP币 请到 steem-engine.com.

无聊吗?跟我猜拳吧! **石头,剪刀,布~**

那两个属于普通标签最好放在前五位位子 后面放就有可能看不到的
scot的所有标签可以放后面

Posted using Partiko Android

好的 听你的😄

Posted using Partiko Android

我也是听村长教的😜

Posted using Partiko Android

Congratulations @june0620! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 3000 as payout for your posts. Your next target is to reach a total payout of 4000

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Congratulations @june0620, your post successfully recieved 0.34581938 TRDO from below listed TRENDO callers:

@theshaki earned : 0.23054625 TRDO curation


To view or trade TRDO go to steem-engine.com
Join TRDO Discord Channel or Join TRDO Web Site