"paster color" не работает в ckan 2.8.3, несмотря на то, что он указан как доступный - PullRequest
0 голосов
/ 07 октября 2019

Я новичок в ckan. Я использую версию ckan 2.8.3 (стабильная версия), установленную на Ubuntu16.04LTS из исходного кода. В настоящее время у меня установлены плагины ckanext-scheming, datastore, datapusher.

Я хотел добавить новую цветовую схему, поэтому я выполнил следующие команды

. /usr/lib/ckan/default/bin/activate

cd /usr/lib/ckan/default/src/ckan

paster color "#0066aa"

Ниже приведена ошибка, которую я получил.

Traceback (most recent call last):
  File "/usr/lib/ckan/default/bin/paster", line 10, in <module>
    sys.exit(run())
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 102, in run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 141, in invoke
    exit_code = runner.run(args)
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 236, in run
    result = self.command()
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/ckan/lib/cli.py", line 1734, in command
    path = os.path.join(path, '..', public, 'base', 'less', 'custom.less')
  File "/usr/lib/ckan/default/lib/python2.7/posixpath.py", line 68, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

Я не совсем уверен, в чем проблема, когда я запускаю paster Команда для color отображается правильно

Usage: /usr/lib/ckan/default/bin/paster COMMAND
Usage: paster [paster_options] COMMAND [command_options]
Options:
  --version         show program's version number and exit
  --plugin=PLUGINS  Add a plugin to the list of commands (plugins are Egg
                    specs; will also require() the Egg)
  -h, --help        Show this help message
Commands:
  create            Create the file layout for a Python distribution
  help              Display help
  make-config       Install a package and create a fresh config file/directory
  points            Show information about entry points
  post              Run a request for the described application
  request           Run a request for the described application
  serve             Serve the described application
  setup-app         Setup an application, given a config file
ckan:
  check-po-files    Check po files for common mistakes
  color             Create or remove a color scheme.
  config-tool       Tool for editing options in a CKAN config file
  create-test-data  Create test data in the database.
  datapusher        Perform commands in the datapusher
  dataset           Manage datasets
  datastore         Perform commands to set up the datastore
  db                Perform various tasks on the database.
  front-end-build   Creates and minifies css and JavaScript files
  jobs              Manage background jobs
  less              Compile all root less documents into their CSS counterparts
  minify            Create minified versions of the given Javascript and CSS files.
  notify            Send out modification notifications.
  plugin-info       Provide info on installed plugins.
  profile           Code speed profiler

Я также пытался запустить сpaster --plugin=ckan color "#0066aa" и получил ту же ошибку. Я попытался вызвать некоторые другие команды (например, jobs / profile / etc. Хотя я на самом деле их не запускал), и казалось, что ckan может найти его без проблем.

Любая помощь приветствуется. Спасибо.

...