-
Notifications
You must be signed in to change notification settings - Fork 90
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
run-python fails #586
Comments
Very strange, these are lines 12 and 13 of import cocoex as ex
from cocoex import Suite One general reason I can figure is that You might test this by changing line 115 of if os.environ.get('PYTHON') is not None: to if False and os.environ.get('PYTHON') is not None: and see whether this works (and/or print |
This is what I get in IPython:
Any ideas? |
Sorry, import cocoex
dir(cocoex)
cocoex.<TAB> FTR, I see ['Observer',
'Suite',
'__builtins__',
'__cached__',
'__doc__',
'__file__',
'__loader__',
'__name__',
'__package__',
'__path__',
'__spec__',
'exceptions',
'interface',
'known_suite_names',
'log_level',
'utilities'] on |
Another comment: I believe you import an old version, namely some v0.0... (so a very old version) not sure though. I also don't exactly understand why you get this warning... Re: version number, I see >>> cocoex.__file__
'/Users/hansen/.local/lib/python3.4/site-packages/cocoex-0.7b0-py3.4-macosx-10.5-x86_64.egg/cocoex/__init__.py' So I guess your problem is that you don't see the most recently installed module, or that it hasn't been installed. |
I checked and you are right, I do have an ancient version ( However, shouldn't version update be kind of automatic? |
Some more information. It turned out that I had four versions of cocoex installed:
When I afterwards call
If I try to uninstall cocoex now, I can't, because pip says I don't have one, while in IPython I again get the old one: In [1]: import cocoex
In [2]: cocoex.
cocoex.Benchmark cocoex.benchmarks cocoex.utilities
cocoex.Problem cocoex.exceptions
In [2]: cocoex.__file__
Out[2]: 'C:\\...\\AppData\\Roaming\\Python\\Python27\\site-packages\\cocoex-0.0_5605_g24beb26-py2.7-win-amd64.egg\\cocoex\\__init__.pyc' |
Out of interest, can you show the result of >>> import os
>>> print(os.environ.get('PYTHON')) in IPython? If the resulting value Only if it works, I suggest to remove all old installed package(s) by hand: just delete all |
The result is |
Manually removing all previously installed versions of The definite cause of the problem remains unclear. A possible reason might have been that the module has been installed previously without the
prints some useful information. On a Mac, removing the installation(s) found under
has worked in some cases. |
On Windows, the
python do.py run-python
command produces the following error:The text was updated successfully, but these errors were encountered: