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

cannot import SeleniumFormFiller #6

Closed
bavodaniels opened this issue Dec 11, 2018 · 1 comment
Closed

cannot import SeleniumFormFiller #6

bavodaniels opened this issue Dec 11, 2018 · 1 comment
Assignees
Labels

Comments

@bavodaniels
Copy link

Steps to Reproduce the Problem

  1. git clone the repository
  2. install with given command "python3 setup.py install --force"
  3. run pygce -h which gives following output

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/pygce", line 11, in
load_entry_point('pygce==2.0.6', 'console_scripts', 'pygce')()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 487, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 2728, in load_entry_point
return ep.load()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 2346, in load
return self.resolve()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 2352, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pygce-2.0.6-py3.7.egg/pygce/cli.py", line 9, in
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pygce-2.0.6-py3.7.egg/pygce/models/bot.py", line 10, in
ImportError: cannot import name 'SeleniumFormFiller' from 'hal.internet.selenium' (/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/hal/internet/selenium/init.py)

Solution on my machine

change one line in bot.py
from:
from hal.internet.selenium import SeleniumFormFiller
to:
from hal.internet.selenium.forms import SeleniumFormFiller

not sure if this is a quirk on my machine of more "widespread" as im not that familiar with python yet

@sirfoga
Copy link
Owner

sirfoga commented Dec 12, 2018

thanks @bavodaniels , it's due to the recent upgrade of the pyhal library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants