-
Notifications
You must be signed in to change notification settings - Fork 37
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
Installation in Python3? #3
Comments
Greetings, thanks for bringing this up. I've looked into it, and contacted the pattern authors, and indeed the main distribution of Pattern (which is used for web searching and web scraping) was never fully integrated with support for Python 3. There is an interesting thread you may have seen that presumably led to a working Python 3 distribution, right here. However, their Travis CI page on its health warns that it doesn't build at least on Python 3.3... I've since added a comment to ask them about that, but also I just quickly tested it on Python 3.4, by creating a conda virtual environment with python 3.4 (using
However, unfortunately, upon testing, their relevant text parsing functions do not seem to work... In their test folder I ran
For your sake, and the Python community, I do hope that this can be resolved. But at this time I would advise to watch that issue, and see if you can't engineer a workaround... What I know is that the conda environment that words2map creates can definitely be set to work with Python 2.7 (with all of its baggage that probably led you away from it in the first place). To ensure this, you can just edit the line in
to be
...and words2map will definitely work for you in that virtual environment. |
Thanks for your reply, I will try using it in a Python 2.7 virtual environment then. |
Hello,
I am not able to install words2map in Python 3. I get the following error when installing the Python dependencies:
Collecting pattern Using cached pattern-2.6.zip Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-6zmtbvtx/pattern/setup.py", line 40 print n ^ SyntaxError: Missing parentheses in call to 'print'
As far as I know, it is due to the fact that pattern is not supported in Python 3. Is it right? Anything I can do?
The text was updated successfully, but these errors were encountered: