-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install synapser due to problems with MarkupSafe #286
Comments
Hi @yocra3 Can you try the following from the command line (double equal signs not the dash as above).
The MarkupSafe installation as part of the synapser installation is into a Python interpreter that is embedded into the PythonEmbedInR library rather than your system Python interpreter, so installing it on the system Python interpreter will not affect the synapser installation, but it's possible your system Python will encounter the same underlying in which case we may get a more useful error message. |
This command is also failing:
|
Could you try running the following commands in the R console where you tried to install synapser and paste the output here?
|
@jkiang13 Here you have:
|
Hmm, the PythonEmbedInR library that synapser uses installs an embedded version of python for use with this library. However that output indicates that in your case the library is loading some Python packages from your own python lib directory rather than the one with the embedded interpreter. This error seems to be a known issue with some versions of MarkupSafe and setuptools, but this ins't normally encountered because the setuptools in the embedded interpreter is compatible. Your sessionInfo() doesn't show any reticulate usage, that can cause issues with the version of Python that is bound to. Are you a reticulate user? Also can you try the following in your R console and show the output?
On an Ubuntu installation I would expect after loading PythonEmbedInR that there would be entries like the below, but I think in your case it will show otherwise.
|
Hi, Here you have the output of the commands:
Is that what you were expecting? On the other hand, I do not know what a reticulate user is. How can I check it? |
Hmm, those are as expected. I do not think your issue is related to reticulate. Rather it seems you have installed a version of setuptools in your user site packages directory (/home/genetica/.local/lib/python3.6/site-packages) that is taking priority over the typical setuptools version in the PYTHONPATH that includes the embedded python version that synapser normally uses. There is an incompatibility between that version of setuptools and the version of Markupsafe that is installed for use with synapser. I don't think we typically see this because users don't have a version of setuptools installed in their user site directory. I have made a branch of synapser that upgrades the Markupsafe. Can you try installing this version as follows:
|
HI @jkiang13, That worked and I could install synapser. I close the issue. Thank you very much for your support. |
Okay great @yocra3 This change will be included in the next release of synapser. Note that if you reinstall the current production build in the meantime it will not yet include this change. |
Operating system
Ubuntu 18.04.5 LTS
Description of the problem
There is an error when installing
MarkupSafe
:The problem is due to that synapser is trying to install an old version of MarkupSafe. When trying to install it in command line, directly with pip, I can install
MarkupSafe 1.1
:But not
MarkupSafe 1.0
:Expected behavior
Install synapser.
Actual behavior
Synapser fails to install.
Output of
sessionInfo()
The text was updated successfully, but these errors were encountered: