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.

Migration to 2.0 - InvalidCharsInPath: contains invalid characters

See original GitHub issue

I am trying to move from 1.0 to 2.0 on my Windows 10 laptop. However, I cannot simulate or run any rules.

The error message reads : InvalidCharsInPath: path 'C:\Users\%USERPFOILE%\AppData\Local\organize\organize\config.yaml' contains invalid characters

Errors are occurring at :

Python\Python310\lib\site-packages\organize\cli.py:86 in β”‚ β”‚ run_local

86 β”‚ β”‚ config = open_fs(config_dir).readtext(config_name)

\Python\Python310\lib\site-packages\fs\base.py:691 in β”‚β”‚ readtext β”‚

691 β”‚ β”‚ β”‚ self.open( β”‚ β”‚ 692 β”‚ β”‚ β”‚ β”‚ path, mode=β€œrt”, encoding=encoding, errors=errors, newline=newline β”‚ β”‚ 693 β”‚ β”‚ β”‚ ) β”‚ β”‚ 694 β”‚ β”‚ ) as read_file:

Python\Python310\lib\site-packages\fs\osfs.py:640 in open

β”‚ > 640 β”‚ β”‚ _path = self.validatepath(path)

Python\Python310\lib\site-packages\fs\osfs.py:687 in β”‚ β”‚ validatepath β”‚ β”‚ > 687 β”‚ β”‚ return super(OSFS, self).validatepath(path)

β”‚ > 1577 β”‚ β”‚ β”‚ β”‚ raise errors.InvalidCharsInPath(path)

How can I resolve this ? I’m I missing some dependencies ?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tfeldmanncommented, Feb 14, 2022

You are still running an old version. Use organize --version to check, it should be v2.1.2

1reaction
razielfayadcommented, Feb 13, 2022

Update is released. Please update and try again!

problem solved, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

use \b without deleting a character in python 3 - Stack Overflow
InvalidCharsInPath : path 'F:\wagtail bakery\wagtail-bakery-master\examples\site\example\.uild' contains invalid characters.
Read more >
Replace invalid characters when migrating to SharePoint
Remove unsupported characters from folder or file names during Migration to SharePoint / Office 365 / OneDrive. Use configurable list of invalid characters....
Read more >
The message contains invalid characters. - Apple Developer
I'm trying to post a legitimate question but I keep getting this error that says "The message contains invalid characters." I tried "rephrasing"...
Read more >
Path contains invalid characters error Β· Issue #1 - GitHub
I am using the argv[2] to read the current path of the script and use that as a download path. It seems that...
Read more >
fs.errors β€” PyFilesystem 2.4.16 documentation
[docs]class InvalidCharsInPath(InvalidPath): """Path contains characters that are invalid on this filesystem.""" default_message = "path '{path}' contains ...
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