Closed apiszcz closed 8 years ago
How did you install it? http://docs.pyfilesystem.org/en/latest/getting_started.html
placed the fs folder in a 'lib' folder sys.path.append('lib') from fs.osfs import OSFS
On Wed, Apr 27, 2016 at 10:45 AM, Andrew Scheller notifications@github.com wrote:
How did you install it? http://docs.pyfilesystem.org/en/latest/getting_started.html
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/PyFilesystem/pyfilesystem/issues/248#issuecomment-215106752
That won't work - the installation (whether pip
or setup.py
) needs to run 2to3 in order to convert the code to be Python3-compatible.
Thank you for creating the fs, that is the piece of information needed, all set.
lib\python\python
import sys sys.path.append('lib') from fs.osfs import OSFS home_fs = OSFS('~/') dir(home_fs) ['_OSFSWatchMixinget_watch_thread', '_OSFSWatchMixin__shutdown_watch_thread', '_OSFSWatchMixinwatch_lock', '_OSFSWatchMixin__watch_thread', 'class', 'del', 'delattr', 'dict', 'dir', 'doc', 'enter', 'eq', 'exit', 'format', 'ge', 'getattribute', 'getstate', 'gt', 'hash', 'init', 'iter', 'le', 'lt', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'setstate', 'sizeof', 'str', 'subclasshook', 'unicode', 'weakref', '_decode_path', '_find_watchers', '_listdir_helper', '_lock', '_meta', '_re_invalid_chars', '_setcontents', '_shutil_copyfile', '_shutil_movefile', '_stat', '_watchers', 'add_watcher', 'browse', 'cache_hint', 'cachehint', 'close', 'closed', 'copy', 'copydir', 'createfile', 'del_watcher', 'delxattr', 'desc', 'dir_mode', 'encoding', 'exists', 'getcontents', 'getinfo', 'getinfokeys', 'getmeta', 'getmmap', 'getpathurl', 'getsize', 'getsyspath', 'getxattr', 'hasmeta', 'haspathurl', 'hassyspath', 'ilistdir', 'ilistdirinfo', 'isdir', 'isdirempty', 'isfile', 'isvalidpath', 'listdir', 'listdirinfo', 'listxattrs', 'makedir', 'makeopendir', 'move', 'movedir', 'notify_watchers', 'open', 'opendir', 'printtree', 'remove', 'removedir', 'rename', 'root_path', 'safeopen', 'setcontents', 'setcontents_async', 'settimes', 'setxattr', 'thread_synchronize', 'tree', 'unsyspath', 'use_long_paths', 'validatepath', 'walk', 'walkdirs', 'walkfiles']
On Wed, Apr 27, 2016 at 8:10 PM, Andrew Scheller notifications@github.com wrote:
That won't work - the installation (whether pip or setup.py needs to run 2to3 in order to convert the code to be Python3-compatible.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/PyFilesystem/pyfilesystem/issues/248#issuecomment-215269812
Glad you managed to get it working :)