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

Publish a compatible anaconda environment file #1

Open
cmencar opened this issue Sep 18, 2019 · 3 comments
Open

Publish a compatible anaconda environment file #1

cmencar opened this issue Sep 18, 2019 · 3 comments

Comments

@cmencar
Copy link

cmencar commented Sep 18, 2019

I generated a fresh new anaconda environment including matplotlib 3.1.1 and pyqt 5.9.2
updated_environment.yml.txt
but when I try to execute
ipython RollDieDynamic.py 6000 1
i receive the message
QApplication: invalid style override passed, ignoring it.
(Notice that no problems arise when I execute python RollDieDynamic.py 6000 1, i.e. the python interpreter directly.

In order to correctly execute the command
ipython RollDieDynamic.py 6000 1
I need to set up a new environment with matplotlib 2.2.2 and pyqt 5.6
working_environment.yml.txt

It is advisable that a working environment is published along the code, so as to guarantee that all the examples will work without any problems.

@pdeitel
Copy link
Owner

pdeitel commented Sep 18, 2019

Hi Corado,

This is a known issue that was recently introduced between Matplotlib/IPython. For the moment, you can run the code with

ipython -i RollDieDynamic.py 6000 1

This will put IPython into interactive mode and run the script, then you can exit IPython interactive mode after you close the app's window.

I will go back through the book and check all the versions we used and create a .yml file along with instructions on how to use it to set up a new environment.

Best,
Paul

@pdeitel
Copy link
Owner

pdeitel commented Sep 18, 2019

Corado, Would you post the text of your .yml file here too? The links in your post above are not working. Thanks! Paul

@cmencar
Copy link
Author

cmencar commented Sep 18, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants