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

"Exeption in thread"-Error, when a directory contains a German Umlaut and is made from the commandline with mkdir #12

Open
jorens opened this issue Sep 6, 2012 · 1 comment

Comments

@jorens
Copy link

jorens commented Sep 6, 2012

OS X 10.7.4
python 2.7
macfsevents 0.2.8_0

When using macfsevents on OS X, I have the following problem: I get a an "Exeption in thread"-Error, when a directory contains a German Umlaut and is made from the commandline with mkdir.

Example:

  • I have an directory with the name "schräg"
  • when copying a file to it, macfsevents detects it and gets the following error:

Exception in thread Thread-1:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 551, in bootstrap_inner
self.run()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fsevents.py", line 44, in run
_fsevents.loop(self)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fsevents.py", line 127, in __call

snapshot = self.snapshots[path]
KeyError: '/Volumes/Mac_Daten/test/schr\xc3\xa4g'

Important hint:

  • the error only occurs, when the above-named directory "schräg" is made on the commandline with "mkdir 'schräg'"
  • when making the directory "schräg" with the OS X Finder, all runs well!!

So there must be a difference (for macfsevents) between making a directory with mkdir and Finder.

@soli
Copy link

soli commented Sep 15, 2012

The same error happens if a non-ASCII directory is created with os.mkdir… :(

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

No branches or pull requests

2 participants