os.link() giving me OSError: [Errno 1] Operation not permitted
Bug #1484843 reported by
psychok7
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pylockfile |
Expired
|
Undecided
|
Unassigned |
Bug Description
in the aquire() function in the os.link() it's giving me OSError: [Errno 1] Operation not permitted
i changed it to shutil.copy2 just for testing and it worked so for some reason os.link() its not doing what is supposed to do.
I am sure i am in the right directory because i can see the temporary unique file being generated, it just not able to os.link() and i have no clue why (permissions should be right).
I am using lockfile==0.10.2 and python==2.7.6 and Ubuntu 14.04 LTS
Ok i think i finally got to the bottom of this. So i am using Vagrant 1.7.4 but there appears to be a bug with the symlink creation as reported here mitchellh/ vagrant# 713
If i do os.link() outside my vagrant it works