Skip to content

lms-book sync does not work in Netlify #1

@lisurui6

Description

@lisurui6
9:44:13 PM: Processing dependencies for lms-book==0.0.0
9:44:13 PM: Finished processing dependencies for lms-book==0.0.0
9:44:13 PM: /usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'use_scm_version'
9:44:13 PM:   warnings.warn(msg)
9:44:14 PM: INFO:lms-book: Running command: /opt/buildhome/python3.7/bin/lms-book sync
9:44:14 PM: INFO:lms-book: Pulling from remote...
9:44:14 PM: Traceback (most recent call last):
9:44:14 PM:   File "/opt/buildhome/python3.7/bin/lms-book", line 33, in <module>
9:44:14 PM:     sys.exit(load_entry_point('lms-book', 'console_scripts', 'lms-book')())
9:44:14 PM:   File "/opt/build/repo/lib/lms_book/cli.py", line 7, in main
9:44:14 PM:     parse_commands(sys.argv)
9:44:14 PM:   File "/opt/build/repo/lib/lms_book/cli.py", line 34, in parse_commands
9:44:14 PM:     parse_command(command, argv[2:])
9:44:14 PM:   File "/opt/build/repo/lib/lms_book/cli.py", line 23, in parse_command
9:44:14 PM:     sync()
9:44:14 PM:   File "/opt/build/repo/lib/lms_book/__init__.py", line 149, in sync
9:44:14 PM:     repo.remotes.origin.pull()
9:44:14 PM:   File "/opt/buildhome/python3.7/lib/python3.7/site-packages/git/util.py", line 882, in __getattr__
9:44:14 PM:     return list.__getattribute__(self, attr)
9:44:14 PM: AttributeError: 'IterableList' object has no attribute 'origin'
9:44:14 PM: ​
9:44:14 PM: ────────────────────────────────────────────────────────────────
9:44:14 PM:   "build.command" failed                                        
9:44:14 PM: ────────────────────────────────────────────────────────────────
9:44:14 PM: ​
9:44:14 PM:   Error message
9:44:14 PM:   Command failed with exit code 1: pip install -r requirements.txt && python setup.py develop && lms-book sync && jupyter-book build .
9:44:14 PM: ​
9:44:14 PM:   Error location
9:44:14 PM:   In Build command from Netlify app:
9:44:14 PM:   pip install -r requirements.txt && python setup.py develop && lms-book sync && jupyter-book build .
9:44:14 PM: ​
9:44:14 PM:   Resolved config
9:44:14 PM:   build:
9:44:14 PM:     command: pip install -r requirements.txt && python setup.py develop && lms-book sync && jupyter-book build .
9:44:14 PM:     commandOrigin: ui
9:44:14 PM:     publish: /opt/build/repo/_build/html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions