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

pycricket_storagehandler does not get installed #1

Closed
kunalg opened this issue Mar 22, 2016 · 6 comments
Closed

pycricket_storagehandler does not get installed #1

kunalg opened this issue Mar 22, 2016 · 6 comments

Comments

@kunalg
Copy link

kunalg commented Mar 22, 2016

pycricket.py imports pycricket_storagehandler, but setup.py does not install pycricket_storagehandler.py

That line in setup.py should read as:

py_modules=['pycricket', 'pycricket_storagehandler'],
@Rajeev69
Copy link
Contributor

Can you try with the following code,

import pycricket
handler = pycricket.RcaStorageHandler()
start = pycricket.RcaApp("Your_AccessKey",
"Your_ScreteKey",
"Your_APP_ID",
handler
)

@kunalg
Copy link
Author

kunalg commented Mar 23, 2016

The import itself fails:

(pycricket)kunal@hydrogen:~/work/my_work/python/pycricket$ python
Python 2.7.3 (default, Jun 22 2015, 19:33:41) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycricket
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/kunal/work/my_work/python/pycricket/local/lib/python2.7/site-packages/pycricket.py", line 26, in <module>
    from pycricket_storagehandler import *
ImportError: No module named pycricket_storagehandler
>>> 

@kunalg
Copy link
Author

kunalg commented Mar 23, 2016

I installed pycricket using pip from github:

(pycricket)kunal@hydrogen:~/work/my_work/python/pycricket$ pip install git+https://github.com/roanuz/py-cricket#egg=pycricket

Cannot install with simple pip install py-cricket since it's not available on pypi.

@Rajeev69
Copy link
Contributor

Yes, there is mistake in setup.py file. I will make sure, its fixed soon. Could you please tell me what error you are getting when you try to install 'pip install py-cricket'

@kunalg
Copy link
Author

kunalg commented Mar 23, 2016

whoops, it seems to be working now. Just tried pip install py-cricket in a new virtenv - seems to work perfect - including pycricket_storagehandler.

For some reason it didn't work last night :(

@Rajeev69
Copy link
Contributor

Nice 👍

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

No branches or pull requests

3 participants