-
-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pin six.py within silk to avoid version incompatibility. #70
Comments
Hmm, what version of six do you have installed? Six is used for py2/py3 compatibility. |
Django 1.8 has \site-packages\django\utils\six.py version 1.9.0 |
Silk won't use Django's version of six but rather whatever is available within your environment. You can see in Can you run I suspect I will probably need to copy what Django does and include six.py within the project e.g. silk.utils.six. |
Found another (old) copy of six.py in "requests" module and updated it to Django's copy. Now it starts OK, but crashes after server request. Log says- IntegrityError at / |
Ok, you're now experiencing #66 which is fixed in master but not released yet. I'll pin six.py before making a release but for now you can run:
To use silk master which should fix that |
It's still there, the same error. I also tried to delete silk tables and recreate them with syncdb but it this won't work. Do you know how to create them without syncdb? |
Ahhh figured it out, here is the field declaration:
However the initial migrations were never updated with |
Okay six is now pinned within master so should be no more six compat issues like this. |
Just installed silk, but after this Django won't start.
File "C:\Python27\lib\site-packages\silk\urls.py", line 6, in from silk.views.request_detail import RequestView
File "C:\Python27\lib\site-packages\silk\views\request_detail.py", line 8, in from silk.code_generation.curl import curl_cmd
File "C:\Python27\lib\site-packages\silk\code_generation\curl.py", line 5, in from six.moves.urllib.parse import urlencode
ImportError: No module named urllib.parse
What is the six module?
The text was updated successfully, but these errors were encountered: