mutpy
mutpy copied to clipboard
from mutpy import commandline ImportError: No module named mutpy
upgrade to last version mutpy Successfully installed Jinja2-2.10 MarkupSafe-1.0 PyYAML-3.13 mutpy-0.5.1
when use this command: mut.py --target calculator --unit-test test_calculator -m get this error:
(venv) D:\python project\lasttest>mut.py --target calculator --unit-test test_calculator -m Traceback (most recent call last): File "D:\python project\lasttest\venv\Scripts\mut.py", line 4, in from mutpy import commandline ImportError: No module named mutpyt
Hi, thanks for reporting. I could not reproduce this problem on Linux. I need to set up a Windows environment for that. While I do that could you tell me your Python version?
Was there any resolution to this issue; because I'm getting the same problem?
@greykes Can you give me more information? OS, Python version MutPy version.
Hi Phihos, I'm using Windows 10 64 bit. Python is python 3.8. No matter what I do I can't get it to work. I've tried setting paths and nothing. This is the error I'm getting:
C:\mutpyTest>mut.py --target calculator --unit-test test_calculator -m
Traceback (most recent call last):
File "C:\mutpy-master\bin\mut.py", line 4, in
@phihos Hi, is there any resolution to the issue I reported above. I still haven't gotten a resolution to the issue and the system still persists to today. Can you please help with this issue?
Good Morning, i had the same Problem, because of using conda.
The problem is, that the mut.py starts with a different python.exe than you use to start the mut.py.
Solution: Open the file mut.py form the error message. in your case "D:\python project\lasttest\venv\Scripts\mut.py"
At the first line in this file you can find the python.exe wich is executed. In my example "c:\program files\anaconda3\python.exe"
Now open this python.exe and enter import mutpy. This should throw the same error.
Now you have 2 Solutions:
- Intsall here the module again
- Change the path to the same python.exe you are using to run the mut.py