No module named pathlib

Bug #1447476 reported by Eduard Biceri-Matei
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Critical
Unassigned
devstack
Invalid
Undecided
Unassigned

Bug Description

Trying to install devstack (both L and K)

Error during stack.sh
2015-04-23 07:21:55.646 | + cd /opt/stack/horizon
2015-04-23 07:21:55.647 | + ./run_tests.sh -N --compilemessages
2015-04-23 07:21:55.927 | WARNING:root:No local_settings file found.
2015-04-23 07:21:56.523 | Traceback (most recent call last):
2015-04-23 07:21:56.523 | File "/opt/stack/horizon/manage.py", line 23, in <module>
2015-04-23 07:21:56.523 | execute_from_command_line(sys.argv)
2015-04-23 07:21:56.523 | File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
2015-04-23 07:21:56.523 | utility.execute()
2015-04-23 07:21:56.523 | File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute
2015-04-23 07:21:56.523 | django.setup()
2015-04-23 07:21:56.523 | File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 21, in setup
2015-04-23 07:21:56.523 | apps.populate(settings.INSTALLED_APPS)
2015-04-23 07:21:56.523 | File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate
2015-04-23 07:21:56.523 | app_config = AppConfig.create(entry)
2015-04-23 07:21:56.523 | File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 87, in create
2015-04-23 07:21:56.523 | module = import_module(entry)
2015-04-23 07:21:56.523 | File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
2015-04-23 07:21:56.524 | __import__(name)
2015-04-23 07:21:56.524 | File "/usr/local/lib/python2.7/dist-packages/django_pyscss/__init__.py", line 1, in <module>
2015-04-23 07:21:56.524 | from .compiler import DjangoScssCompiler # NOQA
2015-04-23 07:21:56.524 | File "/usr/local/lib/python2.7/dist-packages/django_pyscss/compiler.py", line 4, in <module>
2015-04-23 07:21:56.524 | from pathlib import PurePath
2015-04-23 07:21:56.524 | ImportError: No module named pathlib
2015-04-23 07:21:56.548 | + exit_trap
2015-04-23 07:21:56.548 | + local r=1
2015-04-23 07:21:56.549 | ++ jobs -p
2015-04-23 07:21:56.550 | + jobs=
2015-04-23 07:21:56.550 | + [[ -n '' ]]
2015-04-23 07:21:56.550 | + kill_spinner
2015-04-23 07:21:56.550 | + '[' '!' -z '' ']'
2015-04-23 07:21:56.550 | + [[ 1 -ne 0 ]]
2015-04-23 07:21:56.550 | + echo 'Error on exit'
2015-04-23 07:21:56.550 | Error on exit
2015-04-23 07:21:56.550 | + [[ -z /opt/stack/logs ]]
2015-04-23 07:21:56.550 | + /opt/devstack/tools/worlddump.py -d /opt/stack/logs
2015-04-23 07:21:56.586 | + exit 1

Manually "pip install pathlib" and then retried:
+ cd /opt/stack/horizon
+ ./run_tests.sh -N --compilemessages
WARNING:root:No local_settings file found.
Traceback (most recent call last):
  File "/opt/stack/horizon/manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute
    django.setup()
  File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 21, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 87, in create
    module = import_module(entry)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/local/lib/python2.7/dist-packages/django_pyscss/__init__.py", line 1, in <module>
    from .compiler import DjangoScssCompiler # NOQA
  File "/usr/local/lib/python2.7/dist-packages/django_pyscss/compiler.py", line 11, in <module>
    from scss import Compiler, config
ImportError: cannot import name Compiler
+ exit_trap
+ local r=1
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 1 -ne 0 ]]
+ echo 'Error on exit'
Error on exit
+ [[ -z /opt/stack/logs ]]
+ /opt/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2015-04-23-073207.txt for details
+ exit 1

Revision history for this message
reachlin (reachlin) wrote :

I see this error too today on redhat7

Revision history for this message
Eduard Biceri-Matei (cubusbacau) wrote :

Seems to be caused by an old REQUIREMENTS option that was left in the local.conf. (REQUIREMENTS_BRANCH=refs/changes/60/171060/3)
Removed it and now it works.

It was added a while back when the install was broken by some mismatched packages.

So this ticket can be ignored.

Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

The same applies for running Horizon tests separate from the rest OpenStack.

Changed in horizon:
importance: Undecided → Critical
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :
Changed in devstack:
status: New → Invalid
Changed in horizon:
status: New → Fix Released
milestone: none → liberty-1
Revision history for this message
Anthony Chow (vcloudernbeer) wrote :

My local.conf does not have REQUIREMENTS_BRANCH and I still get this Python error while trying to install devstack on ubuntu 12.04

[[local|localrc]]
FLOATING_RANGE=192.168.10.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password

Revision history for this message
Matt Riedemann (mriedem) wrote :

Bug 1447433 is basically the same.

Revision history for this message
hongbo (hongbo-tianhongbo) wrote :

for python2.7, pathlib and other libs are not part of the standard library.

Thierry Carrez (ttx)
Changed in horizon:
milestone: liberty-1 → 8.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.