Closed mariokam closed 8 years ago
Can you try to run the code under a normal user and not the root user.
yes. Now the error is different:
mario@mario-VirtualBox:~/python-scripts$ python example.py
/usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/mario/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
[u'Na']
mario@mario-VirtualBox:~/python-scripts$
This is a warning and not an error and you need to remove write permissions for others something like
chmod -R 775 directory path
On Tue, Mar 8, 2016, 7:48 AM JohnDoe notifications@github.com wrote:
yes. Now the error is different:
mario@mario-VirtualBox:~/python-scripts$ python example.py /usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/mario/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable). warnings.warn(msg, UserWarning) [u'Na'] mario@mario-VirtualBox:~/python-scripts$
— Reply to this email directly or view it on GitHub https://github.com/aboSamoor/polyglot/issues/45#issuecomment-193831862.
ok, now it works well. Thanks! Now is just a question of putting it into some web framework like Flask and do some string processing in Python, nice!
I am not able to install new models, for example czech language to test the morphology analysis:
my code is:
commented lines are working well.