Project

Profile

Help

Issue #300

no word about django and flake8 in docs for dev setup

Added by igulina@redhat.com over 6 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Pulp 2
Sprint:
Quarter:

Description

There is no word about (1)django and (2)flake8 dependencies in docs [1]

(1) no django error:
There was an internal server error while trying to access the Pulp application.
One possible cause is that the database needs to be migrated to the latest
version. If this is the case, run pulp-manage-db and restart the services. More
information may be found in Apache's log.

and traceback in httpd logs:
mod_wsgi (pid=13152): Target WSGI script '/srv/pulp/webservices.wsgi' cannot be loaded as Python module.
mod_wsgi (pid=13152): Exception occurred processing WSGI script '/srv/pulp/webservices.wsgi'.
Traceback (most recent call last):
File "/srv/pulp/webservices.wsgi", line 16, in <module>
from pulp.server.webservices.application import wsgi_application
File "/home/fedora/pulp/server/pulp/server/webservices/application.py", line 39, in <module>
from pulp.server.webservices.middleware.exception import ExceptionHandlerMiddleware
File "/home/fedora/pulp/server/pulp/server/webservices/middleware/exception.py", line 20, in <module>
from django.http import HttpResponse, HttpResponseServerError
ImportError: No module named django.http

(2) no flake8:

./run-tests.py

Running flake8
Traceback (most recent call last):
File "./run-tests.py", line 69, in <module>
flake8_paths=paths_to_check)
File "/home/fedora/pulp/devel/pulp/devel/test_runner.py", line 78, in run_tests
flake8_exit_code = subprocess.call(flake8_command)
File "/usr/lib64/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib64/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

[1] http://pulp.readthedocs.org/en/latest/dev-guide/contributing/dev_setup.html#dependencies

Screenshot from 2015-06-17 14_41_49.jpg (253 KB) Screenshot from 2015-06-17 14_41_49.jpg docs bad formating igulina@redhat.com, 06/17/2015 02:45 PM
Screenshot from 2015-07-09 18_31_34.png (149 KB) Screenshot from 2015-07-09 18_31_34.png igulina@redhat.com, 07/09/2015 06:32 PM
250
250

History

#1 Updated by ipanova@redhat.com over 6 years ago

  • Triaged changed from No to Yes
  • Severity set to Low

#2 Updated by amacdona@redhat.com over 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to amacdona@redhat.com

#3 Updated by amacdona@redhat.com over 6 years ago

  • Status changed from ASSIGNED to POST

I can confirm that Django is a requirement for more than just devs. The lack of Django was a bug which has been fixed:

https://github.com/pulp/pulp/blob/master/pulp.spec#L329

Flake8 is a new dep for developers, so I have added it to the docs and the dev-setup script.

https://github.com/pulp/pulp/pull/1688

#4 Updated by amacdona@redhat.com over 6 years ago

  • Status changed from POST to MODIFIED

#5 Updated by bmbouter over 6 years ago

  • Category deleted (1)
  • Tags Documentation added

Documentation is now a Tag not a Category.

#6 Updated by bmbouter over 6 years ago

  • Severity changed from Low to 1. Low

#7 Updated by dkliban@redhat.com over 6 years ago

  • Platform Release set to 2.7.0

#8 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from MODIFIED to 5

#9 Updated by igulina@redhat.com over 6 years ago

250

Please correct docs. See a pic attached.

#10 Updated by amacdona@redhat.com over 6 years ago

The sphinx syntax error that caused this issue has been fixed in other changes and works in 2.7-testing and forward.

This has been realigned to 2.7-testing, and those docs are not built anywhere so to verify, you will have to build the docs locally.

#11 Updated by amacdona@redhat.com over 6 years ago

  • Status changed from ASSIGNED to 5

#12 Updated by igulina@redhat.com over 6 years ago

250

Does it also implies to this sphinx syntax error?

#13 Updated by amacdona@redhat.com over 6 years ago

Yes, that was fixed by a different PR. You will have to build the docs to verify.

#14 Updated by igulina@redhat.com over 6 years ago

  • Status changed from 5 to 6

#15 Updated by amacdona@redhat.com almost 6 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#17 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF