-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Just Cause does not install on Python 3.6.9 #21
Comments
Hi @Tanmay-Kulkarni101, thanks for reporting. This is a bug on our side. It seems like this import was only introduced in Python 3.7. Could you try on Python 3.7? @MaximilianFranz, could you make the import only if Python is greater or equal than 3.7? |
This is indeed because of the import sys
if sys.version_info >= (3, 7):
from __future__ import annotations |
Adding a Python 3.7.6 | packaged by conda-forge | (default, Dec 26 2019, 23:46:52)
[Clang 9.0.0 (tags/RELEASE_900/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> if sys.version_info >= (3,7):
... from __future__ import annotations
...
File "<stdin>", line 2
SyntaxError: from __future__ imports must occur at the beginning of the file Thus, we can either require Python 3.7 for JustCause or remove the import, as far as I can see. Here they have the same issue and resolve it by removing the future import. Then, all annotations (also type-hints) referring to the Thanks for reporting, this seems to be a real issue. |
I will try to run it with Python3,7 in that case. Thanks for your help. |
For now, we comment out the use of annotations from the __future__ module and use the "old" way with string notation for type annotations refering to the 'self' class.
For now, we comment out the use of annotations from the __future__ module and use the "old" way with string notation for type annotations refering to the 'self' class.
This still isn't fixed and is also a bug in the version 0.3.1 release for Python 3.6 since |
Thanks @MaximilianFranz, just tested it and importing |
I tried installing just cause on Python 3.6.9. I have already installed R and it seemed to have installed correctly with pip3. However, on execution, I got the following log:
Can anyone help me out?
The text was updated successfully, but these errors were encountered: