Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError running moban locally on pypi-mobans #283

Open
jayvdb opened this issue Jul 8, 2019 · 1 comment
Open

TypeError running moban locally on pypi-mobans #283

jayvdb opened this issue Jul 8, 2019 · 1 comment
Labels

Comments

@jayvdb
Copy link
Member

jayvdb commented Jul 8, 2019

$ git checkout https://github.com/moremoban/pypi-mobans/
$ cd pypi-mobans
$ git checkout 255752d4
$ python3.7 -m moban -m mobanfile
Cloning sphinx...
Cloning into 'sphinx'...
remote: Enumerating objects: 95043, done.
remote: Total 95043 (delta 0), reused 0 (delta 0), pack-reused 95043
Receiving objects: 100% (95043/95043), 36.28 MiB | 744.00 KiB/s, done.
Resolving deltas: 100% (72370/72370), done.
Traceback (most recent call last):
  File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.7/site-packages/moban/__main__.py", line 4, in <module>
    main()
  File "/usr/lib/python3.7/site-packages/moban/main.py", line 36, in main
    count = handle_moban_file(moban_file, options)
  File "/usr/lib/python3.7/site-packages/moban/main.py", line 142, in handle_moban_file
    mobanfile.handle_moban_file_v1(moban_file_configurations, options)
  File "/usr/lib/python3.7/site-packages/moban/mobanfile.py", line 79, in handle_moban_file_v1
    number_of_templated_files = handle_targets(merged_options, targets)
  File "/usr/lib/python3.7/site-packages/moban/mobanfile.py", line 115, in handle_targets
    for file_list in list_of_templating_parameters:
  File "/usr/lib/python3.7/site-packages/moban/utils.py", line 101, in expand_directories
    true_template_file = os.path.join(a_template_dir, template_file)
  File "/usr/lib64/python3.7/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib64/python3.7/genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'CommentedSeq'
jayvdb added a commit to jayvdb/pypi-mobans that referenced this issue Jul 8, 2019
jayvdb added a commit to jayvdb/pypi-mobans that referenced this issue Jul 8, 2019
jayvdb added a commit to jayvdb/pypi-mobans that referenced this issue Jul 9, 2019
jayvdb added a commit to jayvdb/pypi-mobans that referenced this issue Jul 9, 2019
@jayvdb
Copy link
Member Author

jayvdb commented Jul 18, 2019

I was likely running an old version of mobans - probably the openSUSE official version which is 0.3.8 iirc. If that is the case, something about the new syntax breaks badly on the old version, which means there was a 'breaking' change, and the moban yaml version should have been incremented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant