-
Notifications
You must be signed in to change notification settings - Fork 67
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
How to setup the development environment in Pycharm on windows? (ImportError: cannot import name 'open' from 'builtins' (unknown location)) #32
Comments
1 can be run from CMD prompt:
2 When called in such a way, this issue arises: To fix that, you can rename |
Are you solved this problem? |
The easiest way to set it up for running is to install the project with
pip, preferably in a virtual environment (e.g. conda), in which case an
entry point will be available called 'multical'. This can be done in the
root directory for example with `pip install -e .`
…On Mon, Apr 17, 2023 at 6:57 PM yetniek ***@***.***> wrote:
Are you solved this problem?
I fixed the file name multical.py (and same setting with you), i got a
same issue.
—
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAITRZM6GTLNUUA25ZRINYTXBTSUXANCNFSM5ZXZAELQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
In Anaconda, I created a virtual environment with Python 3.7, I used pycharm. |
I think it is because I have a directory called 'io' and pycharm is running
the file in the same directory which means that the standard python 'io'
module is being masked. The module should probably be renamed something so
that it does not conflict, however to run it it should not be run from
inside the source tree which is probably what pycharm is doing. If you can
make the working directory some other place that would probably fix it.
…On Mon, Apr 17, 2023 at 8:16 PM yetniek ***@***.***> wrote:
In Anaconda, I created a virtual environment with Python 3.7, I used
pycharm.
I installed the package with pip install multical.
But the error keeps popping up.
Do you happen to know how?
—
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAITRZK4JHPG23BG7I3CXWLXBT35PANCNFSM5ZXZAELQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
ok i'll try. |
In windows,
In pycharm,
I configured the project to run in anaconda env with python 3.7:
Error log:
The text was updated successfully, but these errors were encountered: