cannot make cache directory on Windows 10
SYNPY-1030
Remove unsafe copy functions from client
SYNPY-999
appending to table can exceed Synapse's csv file size limit
SYNPY-995
syn.store always update annotations
SYNPY-829
Files failing to upload using syncToSynapse
SYNPY-770
sync to Synapse sets different annotation data types for same column of annotations
SYNPY-768
improve download speeds to be comparable to AWS
SYNPY-682
AttributeError: 'Synapse' object has no attribute 'logger'
SYNPY-1035
Python version requirement checking should not explicitly expect a list of versions
SYNPY-1034
If versionComment is left blank, previous version comment populates
SYNPY-1033
File version increments with 400 client error
SYNPY-1031
Make upload speeds comparable to those of the AWS S3 CLI
SYNPY-1029
Copy function should copy things when users are part of a Team that has DOWNLOAD access
SYNPY-1027
Some synapse commands return generators, but the state of these generators can be altered
SYNPY-1025
remove reference to deprecated 'status' field from Evaluation
SYNPY-1024
Receiving "AttributeError: Can only use .str accessor with string values!" when trying to push updated table to Synapse
SYNPY-1023
Allow saving file directly to cache with CLI
SYNPY-1022
412 error when attempting shared provenance
SYNPY-1017
Error in when using newer version of pandas
SYNPY-1016
review contributed download improvements/methods
SYNPY-1015
Stop using deprecated v1 of Annotations and EntityBundle
SYNPY-1014
recursive "store" in Command Line Client for bulk upload
SYNPY-1011
revise the synapseutils module
SYNPY-1007
Inconsistent and possibly missing provenance
SYNPY-1004
Move and copy should behave analogously to Unix mv and cp
SYNPY-1000
download speed, unnecessary REST calls
SYNPY-998
Typos in Views documentation
SYNPY-997
Expose selected (internal) functionality from Python client in Py and R clients.
SYNPY-996
synapseutils changeFileMetadata missing syn parameter docstring
SYNPY-992
Insufficient Travis Builds
SYNPY-988
Status of uploadSynapseManagedFileHandle
SYNPY-986
Document how to work with Wikis
SYNPY-985
Document how to work with Provenance in the client
SYNPY-984
Extend Upload File article to include other topics in working with Files
SYNPY-983
Document how to work with evaluation queue
SYNPY-982
Document how to download data and how to access the the downloaded data
SYNPY-981
Document how to set S3 Bucket as Upload Location
SYNPY-980
Add documentation for participating in a challenge
SYNPY-979
creating folder from command line prompts warning - suggested method gives error
SYNPY-978
add readme to release notes folder indicating it is deprecated
SYNPY-977
Storing schema is rejected despite no changes being made since last fetch
SYNPY-975
make python client quieter
SYNPY-973
Use keyword-only arguments for core package and newer method/class definitions (where applicable).
SYNPY-971
Column object can be created with no arguments
SYNPY-970
Add support parsing content-disposition HTTP header containing non-ASCII characters
SYNPY-969
Replace @memoize annotation in python client with @functools.lru_cache
SYNPY-967
developing the core package separated from the synapseclient package
SYNPY-966
Annotation misconception
SYNPY-965
can't update user profile
SYNPY-964
remove 'password' as an option in default synapse config file
SYNPY-962
issue 1 of 304

cannot make cache directory on Windows 10

Description

User reported using Windows 10, synapseclient-1.9.3 on Python 3.5 (installed for the R client, synapser).

https://www.synapse.org/#!Synapse:syn5637528/discussion/threadId=6334

Loading the package fails due to the Synapse cache directory not being able to be created. My suspicion is that this line (https://github.com/Sage-Bionetworks/synapsePythonClient/blob/master/synapseclient/cache.py#L30) is not safe for Windows, as tildes are reserved for other uses (https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN#short-vs-long-names). Instead, we should use `os.path.expanduser` to get the current users home directory (https://docs.python.org/3.5/library/os.path.html).

Environment

Windows 10, synapseclient-1.9.3 on Python 3.5 (installed for the R client, synapser)

Status

Assignee

Bruce Hoff

Reporter

Kenneth Daily

Labels

None

Validator

Bruce Hoff

Development Area

None

Release Version History

None

Affects versions

Priority

Critical
Configure