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

Does it support Python3 ? #457

Open
tab-1 opened this issue Feb 20, 2019 · 6 comments
Open

Does it support Python3 ? #457

tab-1 opened this issue Feb 20, 2019 · 6 comments

Comments

@tab-1
Copy link

tab-1 commented Feb 20, 2019

Does it support Python3? Why can't I find the sample wordcount after using pip3 installation?
streamparse install error info:
Installing collected packages: MarkupSafe, jinja2, texttable, cython, simplejson, six, ruamel.yaml, pycparser, cffi, asn1crypto, cryptography, pynacl, pyasn1, bcrypt, paramiko, fabric3, pystorm, certifi, idna, chardet, urllib3, requests, ply, thriftpy, streamparse
Segmentation fault (core dumped)

@tab-1
Copy link
Author

tab-1 commented Feb 20, 2019

No such file: quickstart

@dan-blanchard
Copy link
Member

It is almost exclusively used with Python 3 at this point. I was planning on removing support for Python 2 the next time we do a major release.

As for your issue, the segmentation fault makes it look like a problem with one of the other packages that streamparse relies on that use C extensions. Streamparse itself does not use any, so I don’t know what would cause that.

@tab-1
Copy link
Author

tab-1 commented Feb 21, 2019

thanks,I used pip3 to install successfully, but I don't know how to add the streamparse path to the environment variable. I run sparse quickstart wordcount and the error is as follows:

Command 'sparse' not found, but can be installed with:
Sudo apt install sparse

Can you tell me how to configure streamparse?

@tab-1
Copy link
Author

tab-1 commented Feb 22, 2019

I am in the virtual environment of python3, the installation through the source code is successful,
Python setup.py develop
Does streamparse have to be installed in a virtual environment? Running in a production cluster also requires creating a virtual environment to run?

@amilgrom
Copy link

@dan-blanchard Could this be caused by the fact that thriftpy is still in the requirements? thriftpy only officially supports up to python 3.5. thriftpy2 is the drop in place successor with support for 2.7 and 3.4-7+ (https://pypi.org/project/thriftpy2/)

I actually found this thread because I have some software that needs to migrate to 3.7 and we're seemingly blocked by streamparse's reliance on thriftypy. And idea when we might see support for 3.7? Would be happy to contribute the changes to jump from thriftpy to thriftpy2 to help speed things along

@dan-blanchard
Copy link
Member

dan-blanchard commented May 15, 2020 via email

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