Skip to content

Couldn't set up local environment #987

Closed
@Mariatta

Description

@Mariatta

Hello,

I followed instructions to set up python dot org locally as described in this page:
https://pythondotorg.readthedocs.io/install.html

Since I was not familiar with Vagrant, I skipped that part and went with the instructions under Manual Setup heading. (Perhaps I should not have done that?)

These were my steps:

git clone git://github.com/python/pythondotorg.git
cd pythondotorg
python3.4 -m venv venv
source venv/bin/activate
python3.4 pip install -r dev-requirements.txt

At this point I saw an error related to uWSGI.

Here is a snippet of the error:

Requirement already satisfied (use --upgrade to upgrade): oauthlib>=0.6.2 in /usr/local/lib/python3.4/site-packages (from requests-oauthlib>=0.3.0->django-allauth==0.22.0->-r requirements.txt (line 40))

Installing collected packages: uWSGI

Running setup.py install for uWSGI ... error

Complete output from command /usr/local/opt/python3/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/private/var/folders/8t/szq9prv16rn3dvdjcd_q6cym0000gs/T/pip-build-0hp0c9ai/uWSGI/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/8t/szq9prv16rn3dvdjcd_q6cym0000gs/T/pip-fjrw0gqx-record/install-record.txt --single-version-externally-managed --compile:

running install

using profile: buildconf/default.ini

... some really long message or stack trace of some sort... and then:

*** uWSGI compiling server core ***

[thread 1][clang] core/utils.o

[thread 2][clang] core/protocol.o

[thread 0][clang] core/socket.o

[thread 3][clang] core/logging.o

[thread 1][clang] core/master.o

[thread 2][clang] core/master_utils.o

core/socket.c:713:28: error: use of undeclared identifier 'SOL_TCP'

                if (setsockopt(serverfd, SOL_TCP, TCP_FASTOPEN, (const void *) &uwsgi.tcp_fast_open, sizeof(int)) < 0) {

                                         ^

1 error generated.

Command "/usr/local/opt/python3/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/private/var/folders/8t/szq9prv16rn3dvdjcd_q6cym0000gs/T/pip-build-0hp0c9ai/uWSGI/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/8t/szq9prv16rn3dvdjcd_q6cym0000gs/T/pip-fjrw0gqx-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/8t/szq9prv16rn3dvdjcd_q6cym0000gs/T/pip-build-0hp0c9ai/uWSGI/

I'm using Macbook OS X El Capitan 10.11.6

It was suggested by @berkerpeksag that I comment out uWSGI from requirements.txt file.
After this, the installation was successful, and I was able to continue with the rest to get my local env running locally.

I'm creating this ticket as per suggestion of @MarkMangoba 😃

I'm really interested to help contributing to this project. If there is anything that I can do about this, be it testing, or updating documentation, please just let me know 👋

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions