Skip to content
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

Conflict with python-json-rpc #13

Open
zver opened this issue Feb 23, 2010 · 10 comments
Open

Conflict with python-json-rpc #13

zver opened this issue Feb 23, 2010 · 10 comments
Labels

Comments

@zver
Copy link

zver commented Feb 23, 2010

Hello,
django-jsonrpc conflict with python-json-rpc (http://json-rpc.org/wiki/python-json-rpc) by module name. May be rename your module to django_jsonrpc ?

@zver
Copy link
Author

zver commented Mar 5, 2010

simple way for it:

find . -name *.py -print0|xargs -0 sed -i -e 's/from jsonrpc/from django_jsonrpc/'
sed -i -e 's/from jsonrpc/from django_jsonrpc/' README.mdown
sed -i -e "s/packages=['jsonrpc']/packages=['django_jsonrpc']/" setup.py
sed -i -e "s/package_data={'jsonrpc'/package_data={'django_jsonrpc'/" setup.py
mv jsonrpc django_jsonrpc

@miclovich
Copy link

What are you trying to do? The explanation is not clear.

@zver
Copy link
Author

zver commented Mar 15, 2010

may be.. my english is badly, sorry :(
django-jsonrpc can't be install with python-json-rpc on same PC. Because both projects install python-modules in same path by python setup.py install.
Both projects contain "packages=['jsonrpc']" in setup.py. Do you understand me?

Above command sequence allow rename to django_jsonrpc in all current code without modify by hands.

@miclovich
Copy link

I understand you... but what is the exact sequence of your sed searches?
sed -i -e /some/path/to/django_jsonrpc
sed -i -e /some/path/to/package

^^^^
it is the above sequence of commands that isn't clear.

@zver
Copy link
Author

zver commented Mar 16, 2010

sed -i -e 's/from jsonrpc/from django_jsonrpc/' README.mdown
this command is argument of xargs (line above). Github splited some lines in my comment.
You may see clear view of it at http://pastebin.ca/1842046

@miclovich
Copy link

I saw it... however... I don't think that solved a thing for me.... I am getting this error after
running install
Checking .pth file support in /usr/local/lib/python2.6/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.6/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing requirements to django_json_rpc.egg-info/requires.txt
writing django_json_rpc.egg-info/PKG-INFO
writing top-level names to django_json_rpc.egg-info/top_level.txt
writing dependency_links to django_json_rpc.egg-info/dependency_links.txt
error: package directory 'jsonrpc' does not exist

or more clearly:
http://dpaste.com/172457/

@zver
Copy link
Author

zver commented Mar 16, 2010

oh, i missed two slashes in sed expression. final version: http://dpaste.com/172463/

Hmm, may be Github again modify my comment. Test slashes: ['jsonrpc']

@zver
Copy link
Author

zver commented Mar 16, 2010

Github remove slashes in comments :(

@miclovich
Copy link

okay.. have you tried hosting a django app that uses django_json_rpc on a live server such as Apache/mod_wsgi? I have tried to set up my service... it says that it does not support GET requests... but it supports HTTP GET only on my localhost.
Any ideas or reasons? Does it have to issues with python-jsonrpc and django_json_rpc?

@zver
Copy link
Author

zver commented Mar 27, 2010

I not use django over wsgi in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants