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 fails on Windows: Pip and setuptools fail to install #94

Closed
Lolmewn opened this issue Mar 12, 2015 · 4 comments
Closed

Installation fails on Windows: Pip and setuptools fail to install #94

Lolmewn opened this issue Mar 12, 2015 · 4 comments

Comments

@Lolmewn
Copy link

Lolmewn commented Mar 12, 2015

I tried installing Sevabot via the tutorial, which gave me the following output:

Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.

PS C:\Users\Administrator> cd .\Documents\SkypeBot
PS C:\Users\Administrator\Documents\SkypeBot> git clone git://github.com/opensourcehacker/sevabot.git
Cloning into 'sevabot'...
remote: Counting objects: 1649, done.
remote: Total 1649 (delta 0), reused 0 (delta 0), pack-reused 1649
Receiving objects: 100% (1649/1649), 1.49 MiB | 1.16 MiB/s, done.
Resolving deltas: 100% (771/771), done.
Checking connectivity... done.
PS C:\Users\Administrator\Documents\SkypeBot> cd sevabot
PS C:\Users\Administrator\Documents\SkypeBot\sevabot> powershell -NoProfile -ExecutionPolicy unrestricted -Command "add-
content -path virtualenv.py -value(new-object net.webclient).DownloadString('https://raw.github.com/pypa/virtualenv/mast
er/virtualenv.py')"
PS C:\Users\Administrator\Documents\SkypeBot\sevabot> python virtualenv.py venv
New python executable in venv\Scripts\python.exe
Cannot find a wheel for setuptools
Cannot find a wheel for pip
Installing setuptools, pip...
  Complete output from command C:\Users\Administrat...v\Scripts\python.exe -c "import sys, pip; sys...d\"] + sys.argv[1:
]))" setuptools pip:
  Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named pip
----------------------------------------
...Installing setuptools, pip...done.
Traceback (most recent call last):
  File "virtualenv.py", line 2352, in <module>
    main()
  File "virtualenv.py", line 825, in main
    symlink=options.symlink)
  File "virtualenv.py", line 993, in create_environment
    install_wheel(to_install, py_executable, search_dirs)
  File "virtualenv.py", line 961, in install_wheel
    'PIP_NO_INDEX': '1'
  File "virtualenv.py", line 903, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command C:\Users\Administrat...v\Scripts\python.exe -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptool
s pip failed with error code 1

I've tried to install Setuptools and pip seperately which seemed to go just fine - however, it seems sevabot doesn't use those.
Using Windows 2012 Server R2 64 bit, Python 2.7 32 bit (x86), and also did it in Powershell x86 just to be sure. Suggestions?

@miohtama
Copy link
Member

Try Windows virtualenv installation instructions from official source.
Maybe something has changed.
On Mar 12, 2015 6:26 AM, "Sybren Gjaltema" [email protected] wrote:

I tried installing Sevabot via the tutorial, which gave me the following
output:

Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.

PS C:\Users\Administrator> cd .\Documents\SkypeBot
PS C:\Users\Administrator\Documents\SkypeBot> git clone git://github.com/opensourcehacker/sevabot.git
Cloning into 'sevabot'...
remote: Counting objects: 1649, done.
remote: Total 1649 (delta 0), reused 0 (delta 0), pack-reused 1649
Receiving objects: 100% (1649/1649), 1.49 MiB | 1.16 MiB/s, done.
Resolving deltas: 100% (771/771), done.
Checking connectivity... done.
PS C:\Users\Administrator\Documents\SkypeBot> cd sevabot
PS C:\Users\Administrator\Documents\SkypeBot\sevabot> powershell -NoProfile -ExecutionPolicy unrestricted -Command "add-
content -path virtualenv.py -value(new-object net.webclient).DownloadString('https://raw.github.com/pypa/virtualenv/mast
er/virtualenv.py' https://raw.github.com/pypa/virtualenv/master/virtualenv.py')"
PS C:\Users\Administrator\Documents\SkypeBot\sevabot> python virtualenv.py venv
New python executable in venv\Scripts\python.exe
Cannot find a wheel for setuptools
Cannot find a wheel for pip
Installing setuptools, pip...
Complete output from command C:\Users\Administrat...v\Scripts\python.exe -c "import sys, pip; sys...d"] + sys.argv[1:
]))" setuptools pip:
Traceback (most recent call last):
File "", line 1, in

ImportError: No module named pip

...Installing setuptools, pip...done.
Traceback (most recent call last):
File "virtualenv.py", line 2352, in
main()
File "virtualenv.py", line 825, in main
symlink=options.symlink)
File "virtualenv.py", line 993, in create_environment
install_wheel(to_install, py_executable, search_dirs)
File "virtualenv.py", line 961, in install_wheel
'PIP_NO_INDEX': '1'
File "virtualenv.py", line 903, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command C:\Users\Administrat...v\Scripts\python.exe -c "import sys, pip; sys...d"] + sys.argv[1:]))" setuptool
s pip failed with error code 1

I've tried to install Setuptools and pip seperately which seemed to go
just fine - however, it seems sevabot doesn't use those.
Using Windows 2012 Server R2 64 bit, Python 2.7 32 bit (x86), and also did
it in Powershell x86 just to be sure. Suggestions?


Reply to this email directly or view it on GitHub
#94.

@Lolmewn
Copy link
Author

Lolmewn commented Mar 13, 2015

Tried the official installation instructions - exact same output. Guess the issue is not sevabot but venv. I contacted the dev of venv but he can't test much as he has no windows available (apparently). Idea's?

@hajekj
Copy link

hajekj commented Mar 27, 2015

I had the same issue, in the same environment, but the solution to work for me works like this:

  1. Perform the "Solution" step from here: ImportError: No module named setuptools (add details to docs) pypa/pip#1064
  2. As per http://sevabot-skype-bot.readthedocs.org/en/latest/windows.html
  • git clone git://github.com/opensourcehacker/sevabot.git
  • cd sevabot
  • powershell -NoProfile -ExecutionPolicy unrestricted -Command "add-content -path virtualenv.py -value(new-object net.webclient).DownloadString('https://raw.github.com/pypa/virtualenv/master/virtualenv.py')"
  • python virtualenv.py venv --no-setuptools
  • set-executionpolicy unrestricted
  • python setup.py develop
  • .\venv\Scripts\activate.ps1
  • Download ez_setup.py and run it in the same PowerShell window - download the file into the sevabot folder and then just run python ez_setup.py
  • Once finished, run python setup.py develop again and then continue in the setup guide

Then it should work. Hope it fixes the issue for you.

Also just FYI: when running the sevabot on Windows, you are likely to run into this issue: #58

@Lolmewn
Copy link
Author

Lolmewn commented Mar 27, 2015

Awesome, it's actually running now! Getting errors on !ping, but I guess that's discussed in #58.

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