-
Notifications
You must be signed in to change notification settings - Fork 18
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
venv activate script problems in POSIX #23
Comments
Hi, I'd just like to confirm that I can replicate this issue on Ubuntu 16.04 with MAP client version 0.13.2. The two steps you applied (making Has anyone ever gotten this to work correctly on Ubuntu 16.04? In general, I've had a lot of trouble to get the mapclient installed on my system (although a 10 year break from doing anything significant with Python hasn't helped). For reference, my installation includes a combination of system Python27 packages, with any dependencies I couldn't find installed via pip (which put everything in My MAPClient.ini file looks like the following (in case there is anything in the general client settings that could also be causing problems):
|
Okay, just confirming my suspicion that it was to do with the
Note that making the None of the above is really a fix though as opening up the same workflow tries to reinstall all the already installed plugins. However, reverting to the old code once you have all required plugins installed seems to allow the workflow to be opened correctly again. Unfortunately, running the workflow has resulted in some new errors related to XOpenGLRenderWindow upon execution of the workflow. This probably requires a new issue to be raised though (will have to be after the weekend at this stage). |
Thanks I'll take a look at this. |
OS: Ubuntu 16.04
Version: 0.13.0 Delta
On opening a workflow with uninstalled plugins, when
pluginmanager.installPackage
is called (line 222):activate_script = getActivateScript(self._virtualenv_dir)
returns
None
, causingIn
checks.getActivateScript
, I think the correct venv_path~/.config/MusculoSkeletal/MAPClient/venv/bin/activate
is passed but (line 176)
activate_script = which(os.path.join(venv_path, int_directory, 'activate' + suffix))
returns
None
because inutils.which
,_access_check
(line 66) returnsFalse
due toos.access(fn, mode)
evaluating to
False
formode
=1.~/.config/MusculoSkeletal/MAPClient/venv/bin/activate
did not have execute permissions. When execute permission is manually given,getActivateScript(self._virtualenv_dir)
returns the script path. However, then in pluginmanager line 223, the Popen call fails withAdding
#!/bin/bash
to the top of the activate script gets rid of this error but it doesn't seem the Popen call executes properly because immediately I getthe uri for the missing plugin was correctly pass to installPackage.
The text was updated successfully, but these errors were encountered: