set pyrouge_set_rouge_path error [duplicate] - python

This question already has answers here:
pyrouge: 'pyrouge_set_rouge_path' is not recognized as an internal or external command
(2 answers)
Closed 5 years ago.
I have Windows 7 and use Python 3.4
I'm trying to work with ROUGE installing pyrouge from pypi.
I followed the installation steps on the site https://pypi.python.org/pypi/pyrouge/0.1.2
But the command:
pyrouge_set_rouge_path /absolute/path/to/ROUGE-1.5.5/directory
doesn't execute.
I try in the command prompt:
pyrouge_set_rouge_path C:\rouge
and the error:
'pyrouge_set_rouge_path' is not recognized as an internal or external command, operable program or batch file.
I would greatly appreciate if you can help me with something.
Thanks

I asked the same question for Python 2.7 in stackoverflow, and received the following answer:
set pyrouge_set_rouge_path=C:\rouge
This worked for me.

Related

Installing python on sublime text [duplicate]

This question already has answers here:
Set up Python 3 build system with Sublime Text 3
(10 answers)
Closed 11 months ago.
Need help installing python on the sublime text on a windows laptop. I am new to this and spent hours online looking but nothing worked.
I tried
tools>build system>new build system and entered
"cmd":["python3","-u","$file"],
but it does not work, it shows this message
C:\Users\john\AppData\Local\Programs\Python\Python310\python.exe: can't find '__main__' module in ''
[Finished in 12.3s]
Try to go to Tools > Build System and select Python. That should work.
You can just do CTRL + B to run the file.

Pyinstaller cannot import pynput module [duplicate]

This question already has answers here:
Getting error when using pynput with pyinstaller
(2 answers)
Closed 8 months ago.
Hey ive tried coding a script in which i use pynput to detect keybinds being pressed. It works fine itself but sadly once i try to use pyinstaller to make it into an exe file the following error pops up once i try to run it.
I have tried looking up the problem but have not found any working solutions.
I have also read through pyinstaller's documentation but I didn't find anything.
#use this pip install pynput==1.6.8

ImportError: No module named site [PYTHON] -- Error message appeared after working with Python for a while [duplicate]

This question already has answers here:
"ImportError: No module named site" on Windows
(17 answers)
Closed 2 years ago.
Currently when I run a Python code (in Sublime Text 3) or try to run python in the cmd, I always get this:
C:\Users\Leopo\Flask App>python
ImportError: No module named site
In my user variables under the environment variables in PATH it is written: C:\Users\Leopo\AppData\Local\Programs\Python\Python38-32\Scripts\ and C:\Users\Leopo\AppData\Local\Programs\Python\Python38-32\
And in the system variables under PATH it is written:
%PYTHON_HOME%
with PYTHON_HOME : C:\Users\Leopo\App Data\Local\Programms\Python38
I already repaired and reinstalled Python 3.8.3.
Is there maybe a problem regarding the environment settings?
Thanks for the help!
This problem has occurred to almost everyone
In my case, my system needed a restart to fix the problem

Library subprocess throws Windows Error "not a valid Win32 application" [duplicate]

This question already has answers here:
Using subprocess to run Python script on Windows
(8 answers)
Closed 8 years ago.
Hence I was writing this py program.
import subprocess
string="ihateminority.py"
process=subprocess.Popen(string,stdin=subprocess.PIPE,stdout=subprocess.PIPE)
res=process.communicate("3 5")
print res[0]
And I got this Window Error.
Obviously, the error came from the library, not me. Is there anyway to fix this, or just simply avoid id. (I cant use external library)
That's because "ihateminority.py" is not a valid Win32 application. You should call "python.exe" and pass it "ihateminority.py" as an argument.

GPG.exe return error code 2 [duplicate]

This question already has answers here:
GPG Error Code 2
(4 answers)
Closed 8 years ago.
gpg.exe return a error code 2 for a particular machine. The code is working fine in other machines. Is this gpg.exe is machine dependent or do we need any separate settings for this in the machine?
my command is like this
gpg.exe --batch --output "I:\dataload\W2\QA2\PPP\S451.pgp" --recipient "***.*****#****.**.com" --encrypt "I:\dataload\W2\QA2\PPP\S451"
Look at dependencies and make sure python and all relevant packages are installed on that machine. Your machine can't find a specified file so check to see that all dependencies are met. Maybe post a little more about the error.

Categories