ajdavis / motor-blog

Blog based on Tornado, MongoDB, and Motor. To be used with MarsEdit.
148 stars 40 forks source link

no module named xmlrpclib #45

Closed yutiansut closed 6 years ago

yutiansut commented 6 years ago
λ  python server.py --debug --config=motor_blog.conf --ensure-indexes
Traceback (most recent call last):
  File "server.py", line 16, in <module>
    from motor_blog import indexes, cache, application
  File "E:\blogsys\motor-blog\motor_blog\application.py", line 9, in <module>
    from motor_blog.api.handlers import APIHandler, RSDHandler
  File "E:\blogsys\motor-blog\motor_blog\api\__init__.py", line 4, in <module>
    import xmlrpclib
ModuleNotFoundError: No module named 'xmlrpclib'

and tring to use pip install but error

E:\blogsys\motor-blog [master ≡ +0 ~3 -0 !]
λ  pip install xmlrpclib
Collecting xmlrpclib
  Could not find a version that satisfies the requirement xmlrpclib (from versions: )
No matching distribution found for xmlrpclib
yutiansut commented 6 years ago

fixed for python3 has changed api

see xmlrpclib

so change the code from

import xmlrpclib

to

import xmlrpc.client as xmlrpclib
ajdavis commented 6 years ago

Do you want to submit a pull request that handles this problem?

yutiansut commented 6 years ago

@ajdavis maybe i need sometime to fix py2-py3 has lots of thing to fix~

yutiansut commented 6 years ago

@ajdavis my environment is py3.6 while i finish i'll make a pr to U ^-^

ajdavis commented 6 years ago

I’m no longer maintaining this. If you decide to make it pure Python 3 and drop Python 2, go for it.

On Sat, Feb 17, 2018 at 11:29 AM Vincent yu notifications@github.com wrote:

@ajdavis https://github.com/ajdavis my environment is py3.6 while i finish i'll make a pr to U ^-^

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ajdavis/motor-blog/issues/45#issuecomment-366452682, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFIhQDdN4A8QLEPKlGNMdIWFnfP_FwSks5tVv5ZgaJpZM4SJLb0 .

yutiansut commented 6 years ago

all right thx~