Issue with PIP detection during setup

Hi…

So I succeeded in getting setup_frappe.sh. But when I run sudo bash ... --setup-production, I get the following error:

setup_frappe.sh: line 5:syntax error near unexpected token 'newline'
setup_frappe.sh: line 5: '<!DOCTYPE html>'

I’ve turned on extglob, since I could only think of that as a problem. I’m using easy install, and am on Ubuntu 14.04 Desktop. Any help shall be much appreciated!

Thanks!

@mmzq check if you are using the correct link

@rmehta Can you please specify which link(s) I should be checking?

Thanks.

Add: I used the command wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh to download setup.

Add 2: I used the browser, and it displays
the script fine. But when I use wget, it downloads the HTML file as a
whole… Not sure how to proceed…Edit: Copied contents of the setup script into the existing setup_frappe.sh file, and it started executing.Thanks much!

Hi…

Proceeding further with the script, I get an error related to PIP. I verified it’'s presence via the terminal, but for some reason, the frappe script will not detect it. The error at this time is:

Installing for Ubuntu trusty amd64
In case you encounter an error, you can post on https://discuss.frappe.io

Adding ubuntu mariadb repo
Installing packages for Ubuntu. This might take time...
Installing wkhtmltopdf
mysql stop/waiting
mysql start/running, process 26159
Adding frappe user
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip in /usr/lib/python2.7/dist-packages
Downloading/unpacking pip
Cleaning up...
No distributions at all found for pip in /usr/lib/python2.7/dist-packages
Storing debug log for failure in /root/.pip/pip.log

Contents of pip.log (I also verified that the link below works on a browser)

------------------------------------------------------------
/usr/bin/pip2 run on Tue Dec 15 03:35:37 2015
Getting page https://pypi.python.org/simple/pip/
Could not fetch URL https://pypi.python.org/simple/pip/: timed out
Will skip URL https://pypi.python.org/simple/pip/ when looking for download links for pip in /usr/lib/python2.7/dist-packages
Getting page https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/: timed out
Will skip URL https://pypi.python.org/simple/ when looking for download links for pip in /usr/lib/python2.7/dist-packages
Cannot fetch index base URL https://pypi.python.org/simple/
URLs to search for versions for pip in /usr/lib/python2.7/dist-packages:
* https://pypi.python.org/simple/pip/
Getting page https://pypi.python.org/simple/pip/
Could not fetch URL https://pypi.python.org/simple/pip/: timed out
Will skip URL https://pypi.python.org/simple/pip/ when looking for download links for pip in /usr/lib/python2.7/dist-packages
Could not find any downloads that satisfy the requirement pip in /usr/lib/python2.7/dist-packages
Downloading/unpacking pip
Cleaning up...
  Removing temporary dir /tmp/pip_build_root...
No distributions at all found for pip in /usr/lib/python2.7/dist-packages
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1177, in prepare_files
    raise not_found
DistributionNotFound: No distributions at all found for pip in /usr/lib/python2.7/dist-packages

Any advice on how to proceed?

Thanks.