Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beginner question #24847

Closed
ghost opened this issue Aug 2, 2020 · 6 comments
Closed

Beginner question #24847

ghost opened this issue Aug 2, 2020 · 6 comments
Labels
help Requests for support

Comments

@ghost
Copy link

ghost commented Aug 2, 2020

How do i run perform_actions? I keep getting ImportError

@ghost ghost closed this as completed Aug 2, 2020
@ghost ghost reopened this Aug 2, 2020
@stephenmcgruer
Copy link
Contributor

@PlayerMPark - what command exactly are you trying to run, and from what directory? Also, please make sure you have followed the setup steps in https://web-platform-tests.org/running-tests/index.html

From your mention of tests.perform_actions.support.refine, that implies you are trying to run a webdriver test (it's the only place I can see that mentioned). These appear to work for me - to pick a random example:

$ ./wpt run --channel=dev chrome webdriver/tests/perform_actions/pointer_origin.py
Running 1 tests in web-platform-tests

Ran 1 tests finished in 6.9 seconds.
  • 1 ran as expected. 0 tests skipped.

@ghost
Copy link
Author

ghost commented Aug 3, 2020

@PlayerMPark - what command exactly are you trying to run, and from what directory? Also, please make sure you have followed the setup steps in https://web-platform-tests.org/running-tests/index.html

From your mention of tests.perform_actions.support.refine, that implies you are trying to run a webdriver test (it's the only place I can see that mentioned). These appear to work for me - to pick a random example:

$ ./wpt run --channel=dev chrome webdriver/tests/perform_actions/pointer_origin.py
Running 1 tests in web-platform-tests

Ran 1 tests finished in 6.9 seconds.
  • 1 ran as expected. 0 tests skipped.

`

{"error": {"message": "No module named perform_actions.support.mouse\nTraceback (most recent call last):\n File "C:\Users\Moises\Desktop\wpt-master\wpt-master\tools\wptserve\wptserve\server.py", line 277, in finish_handling\n handler(request, response)\n File "C:\Users\Moises\Desktop\wpt-master\wpt-master\tools\wptserve\wptserve\handlers.py", line 313, in call\n self._set_path_and_load_file(request, response, func)\n File "C:\Users\Moises\Desktop\wpt-master\wpt-master\tools\wptserve\wptserve\handlers.py", line 293, in _set_path_and_load_file\n exec(compile(f.read(), path, 'exec'), environ, environ)\n File "C:\Users\Moises\Desktop\wpt-master\wpt-master\webdriver/tests/perform_actions/pointer_origin.py", line 5, in \n from tests.perform_actions.support.mouse import get_inview_center, get_viewport_rect\nImportError: No module named perform_actions.support.mouse\n", "code": 500}}

is what gets to me

@stephenmcgruer
Copy link
Contributor

You still have not provided us with the command you are running or the steps you are taking to get that error. I'm afraid without that information we will not be able to help.

@ghost
Copy link
Author

ghost commented Aug 3, 2020

You still have not provided us with the command you are running or the steps you are taking to get that error. I'm afraid without that information we will not be able to help.

I did the instructions from here. I believe that python wpt serve worked fine because it gave me

DEBUG:web-platform-tests:Going to use port 55695 to check subdomains
DEBUG:web-platform-tests:Going to use port 55956 for stash
DEBUG:web-platform-tests:Using ports: defaultdict(<type 'list'>, {'h2': [9000],
'http': [8000, 55694], 'wss': [55693], 'ws': [55692], 'https': [8443, 8444]})

and when i tried to run this script python ./wpt run --channel=dev chrome webdriver/tests/perform_actions/pointer_origin.py it gave me the option to install webdriver which i accepted but then it shut down

@ghost
Copy link
Author

ghost commented Aug 3, 2020

You still have not provided us with the command you are running or the steps you are taking to get that error. I'm afraid without that information we will not be able to help.

Basically it cant do absolute imports

@ghost ghost closed this as completed Aug 4, 2020
@stephenmcgruer stephenmcgruer added the help Requests for support label Aug 4, 2020
@stephenmcgruer
Copy link
Contributor

Thank you for giving more complete reproduction steps. I am not sure why you closed this, but I see you opened #24864 so I am going to consider that new issue your current question.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Requests for support
Projects
None yet
Development

No branches or pull requests

1 participant