question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError: No closing quotation

See original GitHub issue

System Info

  • Operating System: uname -a: 4.15.0-39-generic
  • Python Version: python --version: Python 2.7.15rc1
  • Version of catkin_tools: catkin --version OR Git revision
catkin_tools 0.4.4 (C) 2014-2018 Open Source Robotics Foundation
catkin_tools is released under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
---
Using Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
  • ROS Distro: echo $ROS_DISTRO: melodic
  • Shell: zsh 5.4.2 (x86_64-ubuntu-linux-gnu) but the bug appears also in bash

Build / Run Issue

  • Works with catkin_make
  • Works with catkin_make_isolated --merge
  • Works with catkin build
  • Works with catkin build -p1
  • I did not read this
  • Does not work with catkin config

Expected Behavior

  • catkin config should show the configuration

Actual Behavior

  • catkin config should show the configuration, I have (here shortened)
WARNING: Could not parse env string: `export CLUTTER_IM_MODULE=xim
...
export COMP_WORDBREAKS=$' \t\n"\'><;|&(:'
...
`
Traceback (most recent call last):
  File "/usr/bin/catkin", line 9, in <module>
    load_entry_point('catkin-tools==0.4.4', 'console_scripts', 'catkin')()
  File "/usr/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py", line 267, in main
    catkin_main(sysargs)
  File "/usr/lib/python2.7/dist-packages/catkin_tools/commands/catkin.py", line 262, in catkin_main
    sys.exit(args.main(args) or 0)
  File "/usr/lib/python2.7/dist-packages/catkin_tools/verbs/catkin_build/cli.py", line 290, in main
    ctx = Context.load(opts.workspace, opts.profile, opts, append=True)
  File "/usr/lib/python2.7/dist-packages/catkin_tools/context.py", line 175, in load
    ctx.load_env()
  File "/usr/lib/python2.7/dist-packages/catkin_tools/context.py", line 324, in load_env
    sticky_env = get_resultspace_environment(self.devel_space_abs, quiet=True)
  File "/usr/lib/python2.7/dist-packages/catkin_tools/resultspace.py", line 160, in get_resultspace_environment
    for k, v in parse_env_str(lines).items()
  File "/usr/lib/python2.7/dist-packages/catkin_tools/common.py", line 688, in parse_env_str
    split_envs = [e.split('=', 1) for e in cmd_split(environ_str)]
  File "/usr/lib/python2.7/shlex.py", line 279, in split
    return list(lex)
  File "/usr/lib/python2.7/shlex.py", line 269, in next
    token = self.get_token()
  File "/usr/lib/python2.7/shlex.py", line 96, in get_token
    raw = self.read_token()
  File "/usr/lib/python2.7/shlex.py", line 172, in read_token
    raise ValueError, "No closing quotation"
ValueError: No closing quotation

Steps to Reproduce the Issue

cd my_ros_workspace
export COMP_WORDBREAKS=$' \t\n"\'><;|&(:'
catkin config

Bash command unset COMP_WORDBREAKS solves the issue.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
galoucommented, Nov 29, 2018

Am I the only one to have this issue? Could this be a shlex issue?

0reactions
galoucommented, Jul 27, 2021

I’m confirming that #686 solves the issue.

Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: No closing quotation - Stack Overflow
I have the following code which returns the public ...
Read more >
ValueError: No closing quotation #2852 - pypa/pipenv - GitHub
Issue description. ValueError: No closing quotation. Expected result. To run pipenv shell. Actual result. -> % pipenv --python 3.7
Read more >
ValueError: No closing quotation - Google Groups
raise ValueError, "No closing quotation". ValueError: No closing quotation. Getting the above error while executing the playbook. Ansible version is: 1.9.4.
Read more >
Issue 13543: shlex with string ending in space gives "ValueError
Issue 13543: shlex with string ending in space gives "ValueError: No closing quotation" - Python tracker. This issue tracker has been migrated ...
Read more >
Plz correct my config if wrong (about ValueError: No closing ...
THX I C&P and had two pythons(3.8 3.7) so I deleted 3.7. The error ended up changing a little bit. C:\Users\xxxx>youtube-dl https://www.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found