synapsePythonClient icon indicating copy to clipboard operation
synapsePythonClient copied to clipboard

2.4.0 release doesn't generate easy_path file

Open najoshi opened this issue 4 years ago • 6 comments

Installing on ubuntu from source, doesn't generate the easy_path file. Then errors out when trying to find the synapseclient package.

najoshi avatar Jul 20 '21 22:07 najoshi

Hi @najoshi ,

Could you provide more information / stack trace?

thomasyu888 avatar Jul 20 '21 22:07 thomasyu888

Traceback (most recent call last): File "/software/synapseclient/2.4.0/lssc0-linux/bin/synapse", line 33, in sys.exit(load_entry_point('synapseclient==2.4.0', 'console_scripts', 'synapse')()) File "/software/synapseclient/2.4.0/lssc0-linux/bin/synapse", line 22, in importlib_load_entry_point for entry_point in distribution(dist_name).entry_points File "/software/anaconda3/4.9.2/lssc0-linux/lib/python3.9/importlib/metadata.py", line 524, in distribution return Distribution.from_name(distribution_name) File "/software/anaconda3/4.9.2/lssc0-linux/lib/python3.9/importlib/metadata.py", line 187, in from_name raise PackageNotFoundError(name) importlib.metadata.PackageNotFoundError: synapseclient

najoshi avatar Jul 20 '21 22:07 najoshi

Once I added the easy-install.pth file, it worked just fine.

najoshi avatar Jul 20 '21 22:07 najoshi

or maybe it was the site.py file that I copied over from an older version

najoshi avatar Jul 20 '21 22:07 najoshi

Are you running pip install synapseclient

thomasyu888 avatar Jul 20 '21 22:07 thomasyu888

python setup.py install --prefix=<install dir>

najoshi avatar Jul 20 '21 22:07 najoshi

Closing this as this was tackled in later versions of the client.

thomasyu888 avatar Apr 11 '23 07:04 thomasyu888