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

python start not working --user required #11414

Closed
kernelpanic77 opened this issue Dec 16, 2020 · 3 comments
Closed

python start not working --user required #11414

kernelpanic77 opened this issue Dec 16, 2020 · 3 comments

Comments

@kernelpanic77
Copy link
Contributor

Describe the bug
python -m scripts.start gives an error when trying to setup development evironment.

To Reproduce
Steps to reproduce the behavior:

  1. After running bash scripts/install_prerequisites.sh
  2. Run python -m scripts.start to install all python modules
  3. See error

Observed behavior
Error on running
Checking if enum34 is installed. Checking if pip is installed on the local machine DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/enum/README' Consider using the --user` option or check the permissions.

Refer to https://github.com/oppia/oppia/wiki/Troubleshooting
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/ishanware77/Desktop/opensource/oppia/scripts/start.py", line 33, in
install_third_party_libs.main()
File "scripts/install_third_party_libs.py", line 238, in main
ensure_system_python_libraries_are_installed(package, version)
File "scripts/install_third_party_libs.py", line 202, in ensure_system_python_libraries_are_installed
install_backend_python_libs.pip_install_to_system(package, version)
File "scripts/install_backend_python_libs.py", line 416, in pip_install_to_system
'install', '%s==%s' % (package, version)])
File "scripts/install_backend_python_libs.py", line 393, in _run_pip_command
raise Exception('Error installing package')
Exception: Error installing package`

Screenshots
Screenshot from 2020-12-16 20-17-40

Desktop (please complete the following information; delete this section if the issue does not arise on desktop):

  • OS: Ubuntu 18.04

Additional context
I had set up my development environment 6 months back, it worked fine then.
However, when I try to set it up again it didn't work. I have followed all steps in the installation guide for Linux. I think the python start scripts can be rewritten.

@anandwana001
Copy link
Contributor

anandwana001 commented Apr 19, 2021

@U8NWXD I am facing a similar issue. Didn't find anything similar on the troubleshooting page.

Refer to https://github.com/oppia/oppia/wiki/Troubleshooting
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/akshaynandwana/Desktop/oppia-web/oppia/scripts/start.py", line 35, in <module>
    install_third_party_libs.main()
  File "scripts/install_third_party_libs.py", line 235, in main
    ensure_pip_library_is_installed(package, version, path)
  File "scripts/install_third_party_libs.py", line 189, in ensure_pip_library_is_installed
    '%s==%s' % (package, version), exact_lib_path)
  File "scripts/install_backend_python_libs.py", line 520, in pip_install
    ] + additional_pip_args)
  File "scripts/install_backend_python_libs.py", line 473, in _run_pip_command
    raise Exception('Error installing package')
Exception: Error installing package
python --version
Python 2.7.16
pip2 --version  
pip 20.3.4 from /Library/Python/2.7/lib/python/site-packages/pip (python 2.7)

Screenshot 2021-04-19 at 15 37 33

@anandwana001
Copy link
Contributor

I had updated my xcode and things worked out correctly.

@oppiabot
Copy link

oppiabot bot commented May 24, 2021

Hi @oppia/core-maintainers, this issue is not assigned to any project. Can you please update the same? Thanks!

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

No branches or pull requests

3 participants