Skip to content
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

SyntaxError encountered upon import #114

Closed
isaacWpark opened this issue Oct 18, 2022 · 2 comments
Closed

SyntaxError encountered upon import #114

isaacWpark opened this issue Oct 18, 2022 · 2 comments
Labels
bug Something isn't working stale wontfix This will not be worked on

Comments

@isaacWpark
Copy link

What happened?

after installing the most recent version of xwrf using pip, it failed to import.

Minimal Complete Verifiable Example

import xwrf

Relevant log output

Traceback (most recent call last):

  File "C:\Users\isaac\anaconda3\envs\pydaymet\lib\site-packages\IPython\core\interactiveshell.py", line 3457, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "C:\Users\isaac\AppData\Local\Temp/ipykernel_31480/3638888779.py", line 1, in <module>
    import xwrf

  File "C:\Users\isaac\anaconda3\envs\pydaymet\lib\site-packages\xwrf\__init__.py", line 8, in <module>
    from .accessors import WRFDataArrayAccessor, WRFDatasetAccessor

  File "C:\Users\isaac\anaconda3\envs\pydaymet\lib\site-packages\xwrf\accessors.py", line 177
    if this_staggered_dims := set(var_data.dims).intersection(staggered_dims):
                            ^
SyntaxError: invalid syntax

Environment

unable to import

Anything else we need to know?

No response

@isaacWpark isaacWpark added the bug Something isn't working label Oct 18, 2022
@jthielen
Copy link
Collaborator

Is there a chance that you are using a version of Python older than 3.8? The := operator was added in Python 3.8, which is the minimum version supported by xwrf (and much of the present Scientific Python stack).

@jthielen jthielen changed the title [Bug]: SyntaxError encountered upon import Oct 18, 2022
@lpilz lpilz added the waiting for response Waiting for response of user label Oct 19, 2022
@lpilz lpilz added wontfix This will not be worked on stale and removed waiting for response Waiting for response of user labels Dec 5, 2022
@lpilz
Copy link
Collaborator

lpilz commented Dec 5, 2022

Closing this issue due to inactivity and the probable cause being a wontfix.

@lpilz lpilz closed this as completed Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants