Made all the required pre-requisite configuration and executed “Run.py” python script with python 2.7. We are getting the below error.
[root@esjirv20 e3]# python --version
Python 2.7.5
[root@esjirv20 e3]# ./Run.py -r confluence-users
Traceback (most recent call last):
File "./Run.py", line 21, in <module>
from provisioning.confluence.SetupHelper import SetupHelper
File "/opt/elastic-experiment-executor/e3/provisioning/confluence/SetupHelper.py", line 9, in <module>
from ConfluenceSetupWizard import BundleSelectionPage, ConfluenceInstance, ConfluenceSecuritySettingsPage, \
File "/opt/elastic-experiment-executor/e3/provisioning/confluence/ConfluenceSetupWizard.py", line 1, in <module>
from mechanize import ParseResponse, urlopen, urljoin
ImportError: cannot import name ParseResponse
Please help us to debug the same
It's because the methods of Mechanize have changed. I had version 0.4.2 and ParseResponse didn't exist, indeed.
Solution:
```
pip uninstall mechanize
pip install mechanize==0.2.5
```
Hey @Adrien Ragot _Requirement Yogi_ , thanks for jumping into this thread! Let us know if this tip has helped you @Tony . Looking forward to your findings.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello there Tony, thanks for coming by!
Could you clarify for us which of these pages have you visited during the preparation for testing:
Performance Testing Framework For Confluence
Bitbucket - Elastic Experiement Executor
Also are you trying to run one of the pre-defined experiments or have you created your own?
List of pre-defined experiments:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm mainly focused on Confluence Performance Framework.
Reference Link:Performance Testing Framework For Confluence
PHASE I Environmental Setup- Completed
PHASE II Pending tasks
Define experiments & Execute
Execute the scripts
Gather the results
Analysis the results
Reports
By Executing $ ./Orchestrate.py -e confluence-users
/bin/sh: /usr/local/bin/cloudtoken: No such file or directory
2018-11-23 23:13:57,909 - MainThread - ERROR - Unable to locate '/root/.config/cloudtoken/tokens.json' unable to load AWS credentials, trying to proceed without them.
Traceback (most recent call last):
File "./Orchestrate.py"
- Actions
In Python 2.7.5:
[root@esjirv20 e3]# python --version
Python 2.7.5
./Orchestrate.py -e confluence-users
Traceback (most recent call last):
File "./Orchestrate.py", line 13, in <module>
from Run import Run
File "/opt/elastic-experiment-executor/e3/Run.py", line 21, in <module>
from provisioning.confluence.SetupHelper import SetupHelper
File "/opt/elastic-experiment-executor/e3/provisioning/confluence/SetupHelper.py", line 9, in <module>
from ConfluenceSetupWizard import BundleSelectionPage, ConfluenceInstance, ConfluenceSecuritySettingsPage, \
File "/opt/elastic-experiment-executor/e3/provisioning/confluence/ConfluenceSetupWizard.py", line 1, in <module>
from mechanize import ParseResponse, urlopen, urljoin
ImportError: cannot import name ParseResponse
[root@esjirv20 e3]# ./Run.py -r confluence-users
Traceback (most recent call last):
File "./Run.py", line 21, in <module>
from provisioning.confluence.SetupHelper import SetupHelper
File "/opt/elastic-experiment-executor/e3/provisioning/confluence/SetupHelper.py", line 9, in <module>
from ConfluenceSetupWizard import BundleSelectionPage, ConfluenceInstance, ConfluenceSecuritySettingsPage, \
File "/opt/elastic-experiment-executor/e3/provisioning/confluence/ConfluenceSetupWizard.py", line 1, in <module>
from mechanize import ParseResponse, urlopen, urljoin
ImportError: cannot import name ParseResponse
In Python 3:
[root@hzisotv82 e3]# /usr/bin/python3 ./Orchestrate.py -e confluence-users
Traceback (most recent call last):
File "./Orchestrate.py", line 10, in <module>
from Analyze import run_rrd_analysis
File "/opt/elastic-experiment-executor/e3/Analyze.py", line 5, in <module>
from analysis.rrdtool.Analyze import graph_experiment
File "/opt/elastic-experiment-executor/e3/analysis/rrdtool/Analyze.py", line 198, in <module>
type=click.Choice(e3.get_runs()))
File "/opt/elastic-experiment-executor/e3/common/E3.py", line 55, in get_runs
run_dir = self.get_run_dir()
File "/opt/elastic-experiment-executor/e3/common/E3.py", line 78, in get_run_dir
return os.path.join(self.get_e3_home(), 'runs')
File "/opt/elastic-experiment-executor/e3/common/E3.py", line 39, in get_e3_home
e3_home = self._config.get('e3', {'home': None}).get('home')
AttributeError: 'NoneType' object has no attribute 'get'
Queries:
Regards,
Tony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.