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

Installation of advisor with command "pip3 install advisor" failed #41

Open
duni123 opened this issue Aug 23, 2019 · 4 comments
Open

Installation of advisor with command "pip3 install advisor" failed #41

duni123 opened this issue Aug 23, 2019 · 4 comments

Comments

@duni123
Copy link

duni123 commented Aug 23, 2019

Installation of advisor with command "pip3 install advisor" failed, but with command "pip2 install advisor" succeeded. Whether the advisor is currently only compatible with python2 and not python3.

@duni123
Copy link
Author

duni123 commented Aug 23, 2019

ERROR: Exception:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 188, in main
status = self.run(options, args)
File "/usr/local/python3/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 407, in run
use_user_site=options.use_user_site,
File "/usr/local/python3/lib/python3.6/site-packages/pip/_internal/req/init.py", line 58, in install_given_reqs
**kwargs
File "/usr/local/python3/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 928, in install
use_user_site=use_user_site, pycompile=pycompile,
File "/usr/local/python3/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 461, in move_wheel_files
warn_script_location=warn_script_location,
File "/usr/local/python3/lib/python3.6/site-packages/pip/_internal/wheel.py", line 434, in move_wheel_files
assert info_dir, "%s .dist-info directory not found" % req
AssertionError: advisor .dist-info directory not found

@wzmxd
Copy link

wzmxd commented Aug 29, 2019

Finally find out the reason that there were 2 wheel files after the bulding finished. I suggest you can try this @duni123 ,

  1. Go PyPi to download the lastest version and untar it
  2. Type cd command in terminal, change your current directory where the untarred files located
  3. Type python setup.py install then hit ENTER

then you shall find it appear in package list.

@wzmxd
Copy link

wzmxd commented Aug 29, 2019

Also found a syntax mistake in advisor_client/commandline/admin_command.py line 110, which is

except subprocess.CalledProcessError, e

and should be

except subprocess.CalledProcessError as e

@jiaojiaoguan
Copy link

Finally find out the reason that there were 2 wheel files after the bulding finished. I suggest you can try this @duni123 ,

  1. Go PyPi to download the lastest version and untar it
  2. Type cd command in terminal, change your current directory where the untarred files located
  3. Type python setup.py install then hit ENTER

then you shall find it appear in package list.

when I typed python setup.py, it appeared some error. "python setup.py install" is ok

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

No branches or pull requests

3 participants