I have some troubles in interpreting the documentation (http://iepy.readthedocs.io/en/latest/tutorial.html) commands of the Python IEPY package for Natural Language Processing. The first step to work with IEPY is to create an "instance" (as a non-programmer I have little idea what is it all about). They also provide the command to do it:
iepy --create <project_name>
My problem is that when I type the exact sentence into my command line, I get a "syntax error". I suppose that I do not follow some coding conventions and misinterpret what I should really type. Would be glad to hear what I do wrong.
Another source of the problem could be an improper installation of some of the additional libraries required for IEPY. After trying to install IEPY using
pip install iepy, I got a big fat error message after "collecting django-angular-0.7.8". The command line reports an "Exception", gives a reference to the line, where it happens and describes the source of an error (this is how I interpret the output at least). Which is:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xad in position
4: invalid start byte
Here is the screenshot (cannot use copy-paste in my command line)
Installation of IEPY: The Error Message While Installing IEPY
P.S. It looks that the documentation in general is Linux-users oriented while I am using Windows 8.1. Is it the source of my troubles?
Related
I'm currently modelling a dataset and I wanted to use both R and Python in its task. I tried to install rpy2 by pip, but after its instalation when I try to load the extention in a python 3 notebook in Jupyter I have the following error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe3 in position 184: invalid continuation byte
I think it mighty be an error doing the instalation although the prompt indicated the success in instalation. Could someone please help me?
I'm currently using VS Code with Python. No matter what I seem to do, when I type a command into terminal (even something simple like print("hello")), I get the following error: zsh: missing end of string
I've done some research online and can't find a good fix. I'm using Conda, but have also tried on the 'recommended' interpreter (Python 3.8.9 64-bit) and am having the same issue.
Any help would be much appreciated!
im trying to install tensorflow on my computer. I have windows 10. Im doing CPU only pip install. When i paste this (pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl) command into my command prompt i get error message that says "no perl script found in input". What is the problem? is it referring to Perl programming language or something else? how is perl related to any of this? Thanks!!!
what python version installed in your environment ?
if it's 3.6 you can simply replace the -cp35-cp35m- become -cp36-cp36m-
I hope it'll help
I just ran into the "No Perl script found in input" error myself, in a different situation (as is, not trying to use pip).
The original poster has supplied a comment that answers the question he asked; he had two "pip"s in his path and the wrong one was before the right one. He either had to change the order of his path or supply a full pathname.
This helped me solve my problem; I was using the command line lwp-download to download a file and suddenly got this error. Running lwp-download.bat solved my problem.
If you experience the "No Perl script found in input" error, try running "where" and then your command; in my example "where lwp-download". If you have more than one file in your path with that name, try to be specific. In my case, add the ".bat"
As I described on the headline, I'm trying to install flask in python. After finishing installing virtualenv, in creating a virtual environment, when I enter 'virturalenv venv', I got two errors !
1. UnicodeDecodeError
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc7 in position 5: ordinal not in range(128)
I searched during a lot of time to find the solution, and I got a bunch of various solutions from other questions. And most of them is about encoding types such as 'cpc949', 'mbcs' and so on.
So I tried to replace 'ascii' to them(cpc949, mbcs or...), and I got a terrible error. The encoding type was redirected! Although I modified the encoding type in 'site.py' file, when I committed 'virtualenv venv' again at cmd in windows, the error shows again. After that, I checked site.py file again, the encoding type was redirected. It's odd.....
Any suggestions, comments or idea :) ?
2. OSError
OSError: Command C:\myproject\venv\Scripts\python.exe -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 2
with this, I have no idea at all. Who anybody has idea ??
.
And here is the photos of the errors :
https://drive.google.com/open?id=0BzJpcZZu99ZnMl9nQTFnS3VaSWM&authuser=0
https://drive.google.com/open?id=0BzJpcZZu99ZnOVh5RUtnSklTbDA&authuser=0
(because of my less reputation score)
Please help sir. Very thanks. Sincerely
I deployed a project on webfaction with djanog. All went fine until recently, when all of a sudden I started to get this error: UnicodeEncodeError: 'ascii' codec can't encode characters in position 64-68: ordinal not in range(128)
The url is with Russian characters. But the matter is, when I restart Apache, there is no error any more. So it is kind of difficult for me to pin the error.
Read:
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/#if-you-get-a-unicodeencodeerror
Most likely you need to ensure that UTF-8 is set as the lang locale for the environment Apache runs under.
Otherwise you need to ensure you handle Unicode issues in your code yourself where appropriate.
This error comes because of filename or file contents cotains garbage collection or in another language (except english)..
So you can add unicode() for this. or check NLTK library of handling this situation.
I guess it has to do with webfaction or my incorrect dealing with Apache: actually, I had a restart Apache command in my crontab.
Found a similar question (dealing with Apache deliberately restarting), the webfaction guy suggested:
touch /path to /wsgi.py
instead of:
apache2/restart
after I replaced .../restart with the above line I have no more error messages.