sudo python file_name.pyįorever indebted to stackoverflow and the dev community. Print("Group id of the file:", os.stat(base_path).st_gid) Starting it for the first time will also give us a value for the -salt parameter, that we will have to use later on, so better note this somewhere. Once the installation is completed successfully, we are able to run the server via syncplay-server. Print("\nOwner id of the file:", os.stat(base_path).st_uid) sudo chown -R syncplay sudo make install. Os.chown(base_path, user, group) # change directory permissions Print("Present owner and group of the specified path") Open up SyncPlay and youll be greeted with a configuration menu, just fill in whatever you want and choose a server address like this and then click store configuration and run SyncPlay SyncPlay VLC (or MPC-HC) will open at this point. Group = os.stat(base_path).st_gid # for getting details of the current group owner of the dir User = os.stat(base_path).st_uid # for getting details of the current user owner of the dir The solution that worked out for me here when I was using python 3 os package for performing operations on a directory where I didn't have sufficient permissions and access to got resolved by running the python file with sudo (root) i.e.: sudo python python_file_name.pyĪny other utility that you might also plan on using to chmod or chown that directory would also only work when you run it with sudo. As in my case would be ( mnist = input_data.read_data_sets("C:/Python/Python35/Lib/site-packages/tensorflow/examples/tutorials/mnist/MNIST_data", one_hot=True) ) Lastly, if you are following the tutorials, your call function would be ( mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) ) Ĭhange the "MNIST_data/" parameter to your folder location.Change the "\" to "/" as "\" is used for escape characters, to access the folder locations.( C:\Python\Python35\Lib\site-packages\tensorflow\examples\tutorials\mnist\MNIST_data )) Store configuration and run Syncplay Saves the configuration to the relevant Syncplay INI file and runs Syncplay with this settings. Runs Syncplay with chosen configuration options but does not save them to the Syncplay INI file. Copy the address of the folder (it probably will be Run Syncplay Appears if Show more settings is checked.Directly copy paste the files into the folder.Then make a folder names MNIST_data (or your choice in your working directory/ site packages folder in the tensorflow\examples folder).gz files of the MNIST data set from the link ( ) There is a conflict in the permissions of the temporary files and I myself couldn't work out a way to change the permissions, but was able to work around the problem. Probably you are facing problem when a download request is made by the maybe_download function call in base.py file.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |