-
Notifications
You must be signed in to change notification settings - Fork 410
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
ImportError on windows #185
Comments
I remove the relative import. For example, The error can be solved. But I have no ideal how to get the correct output python file |
Thanks for the reply. Still can’t get this to work. Do you have a current version that works with Python 3?
From: berlinpolin ***@***.***>
Sent: Wednesday, August 3, 2022 1:00 AM
To: victorlei/smop ***@***.***>
Cc: calmymail ***@***.***>; Author ***@***.***>
Subject: Re: [victorlei/smop] ImportError on windows (Issue #185)
I remove the relative import.
For example,
from . import options -> import options
or
from . node import extend,exceptions -> from node import extend,exceptions
The error can be solved. But I have no ideal how to get the correct output python file
—
Reply to this email directly, view it on GitHub <#185 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHJ6P2JDW6EBEWAHJ4YCVDTVXIDHNANCNFSM54QEVA2Q> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AHJ6P2M73Z7EDHWTZ6CCBPLVXIDHNA5CNFSM54QEVA22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI66DVLY.gif> Message ID: ***@***.*** ***@***.***> >
|
I use python 3.9.13. Which version do you use? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I successfully installed smop. But when I run with command in poweshell:
smop> python main.py -h
I get the error:
Traceback (most recent call last):
File "G:\Teaching-CAL\Codes-Teaching\000 CFD\GITHUB\smop\smop\main.py", line 15, in
from . import options
ImportError: attempted relative import with no known parent package
Suggestions?
The text was updated successfully, but these errors were encountered: