MitchellChu / torndsession

Torndsession is a tornado web framework session extension.
MIT License
62 stars 35 forks source link

I have some problem about loading this project!! #1

Closed hcwoly513 closed 9 years ago

hcwoly513 commented 9 years ago
  1. I import torndsession.session.

I got a not module name 'driver'.

I solve the problem, I change session.py 'from driver import SessionDriverFactory' to 'from torndsession.driver import SessionDriverFactory'.

Can you change module or Tell me better solution!!

egbaquela commented 9 years ago

I have the same problem. torndsession is written fron python 2.7, you need to fix the import statements and the print statements.

MitchellChu commented 9 years ago

Thanks egbaquela. Torndsession is base on Python 2.7. In python 3.x, you need do the follow:

  1. change the import statements to absolute import. see Imports: Multi-Line and Absolute/Relative
  2. fix print statements.
MitchellChu commented 9 years ago

Fixed in new version(1.1.3), thank you for your feedback.