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

Python 2 & 3 conflict #5

Closed
bsaldivaremc2 opened this issue Dec 25, 2016 · 4 comments
Closed

Python 2 & 3 conflict #5

bsaldivaremc2 opened this issue Dec 25, 2016 · 4 comments

Comments

@bsaldivaremc2
Copy link

Best regards.
My system runs in python3.5 normally. I see that words2map runs on python2 (seeing the print statements of the code). While running the ./install.sh I can see that the dependencies are being installed with py35 in the words2map/bin/ environment. How to set up the virtual environment create by words2map with python2?

@legel
Copy link
Owner

legel commented Dec 25, 2016

Hello, you can replace this line in install.sh:
conda create --name words2map --yes cython scikit-learn gensim seaborn
with
conda create --name words2map --yes python=2.7 cython scikit-learn gensim seaborn
...and this should help.

@bsaldivaremc2
Copy link
Author

Great! After the change it installed normally.
Nonetheless, while executing
python words2map.py
y get:
Segmentation fault (core dumped)

@legel
Copy link
Owner

legel commented Dec 26, 2016

Interesting. How much RAM do you have available? Minimum is at least 500 MB to load the word vectors. Assuming this popped up during the loading process? I've seen this when I tried to run on a EC2 nano instance, e.g., and solution was to go bigger with the RAM if you're working in the cloud...

@bsaldivaremc2
Copy link
Author

I was using a laptop, 4 GiB RAM with ubuntu, with 1.5 GiB free. Error present.
Then I tried with an Ubuntu with 8GiB RAM, command line only, before starting the program 1GiB used. The program started, reaching in average 4 GiB.

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

2 participants