Hi,
I'm experiencing the same problem. However, the solution of uninstalling and reinstalling the older version of pip creates new errors when installing other packages such as numpy and pandas - the app runs fine locally so there shouldn't be syntax errors in the code. Any ideas what could be causing this?
This is the Shiny log I get when implementing the above solution: i.e.:
virtualenv_create(envname = "python_environment", python= "python3")
virtualenv_remove(envname = "python_environment", packages = "pip")
virtualenv_install("python_environment", packages = c('pip==19.0.3', 'langdetect', 'pandas','numpy','googletrans', 'xlrd'), ignore_installed = TRUE)
use_virtualenv("python_environment", required = TRUE)```
**The Shiny log displays the following: **
**Uninstalling pip-20.2b1:**
**Successfully uninstalled pip-20.2b1**
**Using virtual environment 'python_environment' ...**
**Collecting pip==19.0.3**
**Downloading https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl (1.4MB)**
**Collecting pandas**
**Downloading https://files.pythonhosted.org/packages/53/87/6438c197fc70ca6b3056cfb60b3dfedca25bedb631bce1f72d6a10502d15/pandas-1.0.4.tar.gz (5.0MB)**
**Complete output from command python setup.py egg_info:**
**Traceback (most recent call last):**
**f"numpy >= {min_numpy_ver}",**
** ^**
**You are using pip version 8.1.1, however version 20.1.1 is available.**
**You should consider upgrading via the 'pip install --upgrade pip' command.**
**SyntaxError: invalid syntax**
** ----------------------------------------**
**Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-udl4526_/pandas/**
**Warning: Error in : Error installing package(s): 'pip==19.0.3', 'langdetect', 'pandas', 'numpy', 'googletrans', 'xlrd'**
**File "<string>", line 1, in <module>**
**File "/tmp/pip-build-udl4526_/pandas/setup.py", line 42**
**63: pip_install**
**61: server [/srv/connect/apps/xx/app.R#125]**
**62: virtualenv_install**
**64: stop**
**Error : Error installing package(s): 'pip==19.0.3', 'langdetect', 'pandas', 'numpy', 'googletrans', 'xlrd'**
Thanks !