Re: [Tutor] QT5 pyqt5 for python 2.7
I have what seems like two responses but there are no text at all in the body of the messages. Is there a way I am supposed to see these? Best, From: Tutor on behalf of Mark Lawrence Sent: Saturday, November 18, 2017 2:09:41 AM To: tutor@python.org Subject: Re: [Tutor] QT5 pyqt5 for python 2.7 On 18/11/17 01:51, adam ghering wrote: > Hello, > > I am trying to get up to speed on python; expand my skills etc. > > I work in a VFX environment where most all the tools continue to run with > python 2.7XX > > I have seen that pyqt5 supports python 2.7 according to its documentation but > it needs to be rebuilt to function. > > I have done some homework on the subject and tried to download, tweak and > install some things but nothing works. > > Can someone point me in the right direction? > > Also I see QT5 mentioned in addition to pyqt5 or like pyqt5 is just a binding > of QT5 to python? can someone explain. > > ideally i just need the holes filled in as I have searched and searched and > there seems to be no clear path to getting this working even though people > are using it and have rebuilt it already. > > appreciate any help up front > > Best, > Just search for "pyqt5 python 2.7 your-os" without the quotes, there's loads of hits for linux and its variants, mac and windows. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Try the list archive Re: QT5 pyqt5 for python 2.7
On 18/11/17 18:03, adam ghering wrote: I have what seems like two responses but there are no text at all in the body of the messages. Is there a way I am supposed to see these? You should see the body but youcan try the list archive via a browser... Alan g ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] QT5 pyqt5 for python 2.7
On 18/11/17 18:03, adam ghering wrote: I have what seems like two responses but there are no text at all in the body of the messages. Is there a way I am supposed to see these? Best, From: Tutor on behalf of Mark Lawrence Sent: Saturday, November 18, 2017 2:09:41 AM To: tutor@python.org Subject: Re: [Tutor] QT5 pyqt5 for python 2.7 On 18/11/17 01:51, adam ghering wrote: Hello, I am trying to get up to speed on python; expand my skills etc. I work in a VFX environment where most all the tools continue to run with python 2.7XX I have seen that pyqt5 supports python 2.7 according to its documentation but it needs to be rebuilt to function. I have done some homework on the subject and tried to download, tweak and install some things but nothing works. Can someone point me in the right direction? Also I see QT5 mentioned in addition to pyqt5 or like pyqt5 is just a binding of QT5 to python? can someone explain. ideally i just need the holes filled in as I have searched and searched and there seems to be no clear path to getting this working even though people are using it and have rebuilt it already. appreciate any help up front Best, Just search for "pyqt5 python 2.7 your-os" without the quotes, there's loads of hits for linux and its variants, mac and windows. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence One can only conclude that some subscribers are not aware of the preference for bottom posting on this list. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'
I have written a short Python 3 script to plot three curves (one plot) of data from a FORTRAN program. Initially the code worked and produced the plot which is attached. I have also attached the code and the input data, In all candor, I don't have the faintest idea as to whst the problem (or problens) might be and would greatly appreciate a pointer towards the solution. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net Stochastic and multivariate (614)312-7528 (c) Skype: smolnar1 0.15 1457.204006 998.233839-0.018612 0.30 1344.817934 931.699910-0.017571 0.45 1170.330414 827.700509-0.015915 0.60 951.240195 695.702122-0.013757 0.75 708.832611 547.341272-0.011238 0.90 465.526861 395.074189-0.008520 1.05 242.168335 250.776922-0.005770 1.2055.640011 124.478386-0.003147 1.35 -82.88923823.385404-0.000790 1.50 -168.863907 -48.686568 0.001192 1.65 -204.304928 -91.423531 0.002725 1.80 -196.892849 -107.676083 0.003774 1.95 -158.353900 -102.749215 0.004342 2.10 -102.425393 -83.440486 0.004465 2.25 -42.724395 -56.976574 0.004210 2.40 9.160768 -30.003148 0.003659 2.5545.090063-7.765044 0.002907 2.7061.128133 6.423416 0.002048 2.8557.57734711.367836 0.001171 3.0038.344275 7.846857 0.000349 3.15 9.797326-1.817135-0.000359 3.30 -20.657232 -14.377418-0.000917 3.45 -46.025084 -26.358616-0.001307 3.60 -60.958617 -34.712347-0.001528 3.75 -62.589086 -37.332393-0.001596 3.90 -50.849425 -33.359410-0.001536 4.05 -28.274206 -23.244463-0.001380 4.20 0.647490-8.581977-0.001162 4.3530.419924 8.240844-0.000915 4.5055.60181224.504898-0.000668 4.6571.78689037.644793-0.000444 4.8076.33744645.676179-0.000259 4.9568.75857947.497775-0.000122 5.1050.67117043.026846-0.36 5.2525.41446833.157608 0.01 5.40-2.62785219.562143-0.04 5.55 -28.841964 4.378077-0.39 5.70 -49.186470 -10.157324-0.95 5.85 -60.843330 -22.062653-0.000159 6.00 -62.613119 -29.900128-0.000219 6.15 -55.002707 -32.954002-0.000264 6.30 -40.011347 -31.279440-0.000284 6.45 -20.674231 -25.624738-0.000272 6.60-0.461617 -17.250484-0.000223 6.7517.349547-7.684285-0.000134 6.9030.217978 1.543060-0.07 7.0536.704572 9.135157 0.000153 7.2036.61156414.205163 0.000340 7.3530.88790416.366163 0.000542 7.5021.33750015.730856 0.000745 7.6510.20032712.830456 0.000931 7.80-0.305538 8.475307 0.001083 7.95-8.392428 3.587153 0.001184 8.10 -12.989800-0.965458 0.001218 8.25 -13.865349-4.501286 0.001173 8.40 -11.571637-6.611087 0.001043 8.55-7.243459-7.184785 0.000828 8.70-2.298165-6.384063 0.000537 8.85 1.893836-4.572551 0.000186 9.00 4.300063-2.221752-0.000202 9.15 4.422590 0.187190-0.000598 9.30 2.366936 2.247742-0.000969 9.45-1.222319 3.685155-0.001284 9.60-5.337564 4.380342-0.001511 9.75-8.852834 4.361341-0.001629 9.90 -10.782542 3.769297-0.001621 1
Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'
> On Nov 19, 2017, at 11:36 AM, Stephen P. Molnar > wrote: > > I have written a short Python 3 script to plot three curves (one plot) of > data from a FORTRAN program. Initially the code worked and produced the plot > which is attached. I have also attached the code and the input data, > The data made it through, neither the script nor the plot did. If the script really is short, perhaps you could just cut and paste it into a follow-up msg. Absent that, no one here can help you. Thanks, Bill > In all candor, I don't have the faintest idea as to whst the problem (or > problens) might be and would greatly appreciate a pointer towards the > solution. > > Thanks in advance. > > -- > Stephen P. Molnar, Ph.D. Life is a fuzzy set > www.molecular-modeling.netStochastic and multivariate > (614)312-7528 (c) > Skype: smolnar1 > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'
> On Nov 19, 2017, at 3:14 PM, Stephen P. Molnar wrote: > > > On 11/19/2017 03:10 PM, William Ray Wing wrote: >>> On Nov 19, 2017, at 11:36 AM, Stephen P. Molnar >>> wrote: >>> >>> I have written a short Python 3 script to plot three curves (one plot) of >>> data from a FORTRAN program. Initially the code worked and produced the >>> plot which is attached. I have also attached the code and the input data, >>> >> The data made it through, neither the script nor the plot did. If the >> script really is short, perhaps you could just cut and paste it into a >> follow-up msg. Absent that, no one here can help you. >> >> Thanks, >> Bill >> >>> In all candor, I don't have the faintest idea as to whst the problem (or >>> problens) might be and would greatly appreciate a pointer towards the >>> solution. >>> >>> Thanks in advance. >>> >>> -- >>> Stephen P. Molnar, Ph.D.Life is a fuzzy set >>> www.molecular-modeling.net Stochastic and multivariate >>> (614)312-7528 (c) >>> Skype: smolnar1 >>> >>> ___ >>> Tutor maillist - Tutor@python.org >>> To unsubscribe or change subscription options: >>> https://mail.python.org/mailman/listinfo/tutor >> > Unfortunately your mail reader/program has pasted it in as an RTF file and this makes it almost impossible to look at in a text editor or hand to the Python interpreter. What we see looks like the following (I’ve pasted in the first few lines). ——— Multiple_Plots_2_b.py\ \ Copyright (c) 2017 Stephen P. Molnar, Ph.D. \'a0All rights reserved.\ \ """\ import numpy as np\ from mpl_toolkits.axes_grid1 import host_subplot\ import mpl_toolkits.axisartist as AA\ import matplotlib.pyplot as plt\ \ data = []\ name = input("Enter Molecule ID: ")\ \ name_in = name+'_poutput'\ data = np.genfromtxt(name_in)\ \ s = data[:,0]\ FTm = data[:,1] \'a0\'a0\'a0\'a0#atomic number\ FTe = data[:,2] \'a0\'a0\'a0\'a0#atomic mass\ FTc = data[:,3] \'a0\'a0\'a0\'a0#atom electron density\ \ \ fig = plt.figure(figsize=(7.6,4))\ \ host = host_subplot(111, axes_class=AA.Axes)\ plt.subplots_adjust(right=0.75)\ \ par1 = host.twinx()\ par2 = host.twinx()\ \ offset = 60\ new_fixed_axis = par2.get_grid_helper().new_fixed_axis\ par2.axis["right"] = new_fixed_axis(loc="right", axes=par2,\ \'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0\'a0offset=(offset, 0))\ \ --- > Here it is: > > #!/usr/bin/env python3 > # -*- coding: utf-8 -*- > """ > Multiple_Plots_2_b.py > > Copyright (c) 2017 Stephen P. Molnar, Ph.D. All rights reserved. > > """ > import numpy as np > from mpl_toolkits.axes_grid1 import host_subplot > import mpl_toolkits.axisartist as AA > import matplotlib.pyplot as plt > > data = [] > name = input("Enter Molecule ID: ") > > name_in = name+'_poutput' > data = np.genfromtxt(name_in) > > s = data[:,0] > FTm = data[:,1] #atomic number > FTe = data[:,2] #atomic mass > FTc = data[:,3] #atom electron density > > > fig = plt.figure(figsize=(7.6,4)) > > host = host_subplot(111, axes_class=AA.Axes) > plt.subplots_adjust(right=0.75) > > par1 = host.twinx() > par2 = host.twinx() > > offset = 60 > new_fixed_axis = par2.get_grid_helper().new_fixed_axis > par2.axis["right"] = new_fixed_axis(loc="right", axes=par2, >offset=(offset, 0)) > > par2.axis["right"].toggle(all=True) > > host.set_xlim(0, 30) > """ > host.set_ylim(min(FTm), max(FTm)) > """ > > host.set_xlabel("Distance ($\AA$)") > host.set_ylabel("Atomic Number") > par1.set_ylabel("Atom Mass") > par2.set_ylabel("Atom Electron Density") > > p1, = host.plot(data[:,0], data[:,1])#, label="Atomic Number") > p2, = par1.plot(data[:,0], data[:,2])#, label="Atom Mass") > p3, = par2.plot(data[:,0], data[:,3])#, label="Atom Electron Density") > > """ > par1.set_ylim(min(FTe), max(FTe)) > par2.set_ylim(min(FTc),max(FTc)) > """ > > #host.legend() > > host.axis["left"].label.set_color(p1.get_color()) > par1.axis["right"].label.set_color(p2.get_color()) > par2.axis["right"].label.set_color(p3.get_color()) > > host.title.set_text('Molecule {0} - Molecular Transforms'.format(name)) > plt.draw() > plt.show() > > name_plt = name+'-fig1.png' > fig.savefig(name_plt,bbox_inches='tight') > > > -- > Stephen P. Molnar, Ph.D. Life is a fuzzy set > www.molecular-modeling.netStochastic and multivariate > (614)312-7528 (c) > Skype: smolnar1 > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'
On 11/19/2017 03:10 PM, William Ray Wing wrote: On Nov 19, 2017, at 11:36 AM, Stephen P. Molnar wrote: I have written a short Python 3 script to plot three curves (one plot) of data from a FORTRAN program. Initially the code worked and produced the plot which is attached. I have also attached the code and the input data, The data made it through, neither the script nor the plot did. If the script really is short, perhaps you could just cut and paste it into a follow-up msg. Absent that, no one here can help you. Thanks, Bill In all candor, I don't have the faintest idea as to whst the problem (or problens) might be and would greatly appreciate a pointer towards the solution. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net Stochastic and multivariate (614)312-7528 (c) Skype: smolnar1 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor Here it is: #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Multiple_Plots_2_b.py Copyright (c) 2017 Stephen P. Molnar, Ph.D. All rights reserved. """ import numpy as np from mpl_toolkits.axes_grid1 import host_subplot import mpl_toolkits.axisartist as AA import matplotlib.pyplot as plt data = [] name = input("Enter Molecule ID: ") name_in = name+'_poutput' data = np.genfromtxt(name_in) s = data[:,0] FTm = data[:,1] #atomic number FTe = data[:,2] #atomic mass FTc = data[:,3] #atom electron density fig = plt.figure(figsize=(7.6,4)) host = host_subplot(111, axes_class=AA.Axes) plt.subplots_adjust(right=0.75) par1 = host.twinx() par2 = host.twinx() offset = 60 new_fixed_axis = par2.get_grid_helper().new_fixed_axis par2.axis["right"] = new_fixed_axis(loc="right", axes=par2, offset=(offset, 0)) par2.axis["right"].toggle(all=True) host.set_xlim(0, 30) """ host.set_ylim(min(FTm), max(FTm)) """ host.set_xlabel("Distance ($\AA$)") host.set_ylabel("Atomic Number") par1.set_ylabel("Atom Mass") par2.set_ylabel("Atom Electron Density") p1, = host.plot(data[:,0], data[:,1])#, label="Atomic Number") p2, = par1.plot(data[:,0], data[:,2])#, label="Atom Mass") p3, = par2.plot(data[:,0], data[:,3])#, label="Atom Electron Density") """ par1.set_ylim(min(FTe), max(FTe)) par2.set_ylim(min(FTc),max(FTc)) """ #host.legend() host.axis["left"].label.set_color(p1.get_color()) par1.axis["right"].label.set_color(p2.get_color()) par2.axis["right"].label.set_color(p3.get_color()) host.title.set_text('Molecule {0} - Molecular Transforms'.format(name)) plt.draw() plt.show() name_plt = name+'-fig1.png' fig.savefig(name_plt,bbox_inches='tight') -- Stephen P. Molnar, Ph.D.Life is a fuzzy set www.molecular-modeling.net Stochastic and multivariate (614)312-7528 (c) Skype: smolnar1 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'
On 19/11/17 20:14, Stephen P. Molnar wrote: In all candor, I don't have the faintest idea as to whst the problem (or problens) might be and would greatly appreciate a pointer towards the solution. You really need to post the entire error message not just the summary line. Especially since you don't appear to access _draw_solid in your own code so we need to see where that arises. Here it is: #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Multiple_Plots_2_b.py Copyright (c) 2017 Stephen P. Molnar, Ph.D. All rights reserved. """ import numpy as np from mpl_toolkits.axes_grid1 import host_subplot import mpl_toolkits.axisartist as AA import matplotlib.pyplot as plt data = [] name = input("Enter Molecule ID: ") name_in = name+'_poutput' data = np.genfromtxt(name_in) s = data[:,0] FTm = data[:,1] #atomic number FTe = data[:,2] #atomic mass FTc = data[:,3] #atom electron density fig = plt.figure(figsize=(7.6,4)) host = host_subplot(111, axes_class=AA.Axes) plt.subplots_adjust(right=0.75) par1 = host.twinx() par2 = host.twinx() offset = 60 new_fixed_axis = par2.get_grid_helper().new_fixed_axis par2.axis["right"] = new_fixed_axis(loc="right", axes=par2, offset=(offset, 0)) par2.axis["right"].toggle(all=True) host.set_xlim(0, 30) """ host.set_ylim(min(FTm), max(FTm)) """ host.set_xlabel("Distance ($\AA$)") host.set_ylabel("Atomic Number") par1.set_ylabel("Atom Mass") par2.set_ylabel("Atom Electron Density") p1, = host.plot(data[:,0], data[:,1])#, label="Atomic Number") p2, = par1.plot(data[:,0], data[:,2])#, label="Atom Mass") p3, = par2.plot(data[:,0], data[:,3])#, label="Atom Electron Density") """ par1.set_ylim(min(FTe), max(FTe)) par2.set_ylim(min(FTc),max(FTc)) """ #host.legend() host.axis["left"].label.set_color(p1.get_color()) par1.axis["right"].label.set_color(p2.get_color()) par2.axis["right"].label.set_color(p3.get_color()) host.title.set_text('Molecule {0} - Molecular Transforms'.format(name)) plt.draw() plt.show() name_plt = name+'-fig1.png' fig.savefig(name_plt,bbox_inches='tight') ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'
On 11/19/2017 09:36 AM, Stephen P. Molnar wrote: > I have written a short Python 3 script to plot three curves (one plot) > of data from a FORTRAN program. Initially the code worked and produced > the plot which is attached. I have also attached the code and the input > data, > > In all candor, I don't have the faintest idea as to whst the problem (or > problens) might be and would greatly appreciate a pointer towards the > solution. >From here, it's hard to tell... you have an error that indicates misusing a class named BezierPath by referencing a method or attribute which does not exist. This usually is due to a version skew problem - some code expects a newer version of something than you have (or, if the developer has been really careless, something has gone away which is horrid API stability behavior). But your code doesn't seem to reference BezierPath at all... so it must be referenced by something you ARE calling. Have you tried an internet search on this? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'
On Sun, Nov 19, 2017 at 04:51:06PM -0500, William Ray Wing wrote: > Unfortunately your mail reader/program has pasted it in as an RTF file > and this makes it almost impossible to look at in a text editor or > hand to the Python interpreter. What we see looks like the following > (I’ve pasted in the first few lines). I don't think that's correct -- it looks like plain text to me. Perhaps it is your mail reader (not Stephen's) that has decided to convert it to a RTF file? Try the "View Source", if your mail reader provides such a thing. -- Steve ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] AttributeError: 'BezierPath' object has no attribute '_draw_solid'
On Sun, Nov 19, 2017 at 03:14:11PM -0500, Stephen P. Molnar wrote: [...] > >>I have written a short Python 3 script to plot three curves (one plot) of > >>data from a FORTRAN program. [...] Stephen, please remember that we are volunteers offering services for free, not paid consultants. If you want our help, you maximise the chances that we will do so by making things as easy as possible for us, rather than just dropping a big ball of mud in our laps and expecting us to sort it all out. If we were charging by the hour, and you had an unlimited budget, we'd be more than happy to do all the preparation for you. But since we aren't, you are relying on our good-will to get answers. If you make it hard for us, and your problem looks boring, then you are unlikely to get much, if any, help. Please help us to help you: - If you get an error, copy and paste the ENTIRE error message, starting with the "Traceback" line, not just the final line. - Provide a MINIMAL set of data that exposes the problem, the smaller the better. We shouldn't have to wade through hundreds of data points looking for the one which causes the problem. - Simplify your code to the MINIMUM required to demonstrate the problem. - Make sure that the code you send us actually works, in the sense that it will run and show the error you claim it shows. If we cannot run your code, we cannot debug it. - Ensure your code and data are ATTACHED to the email as separate files, not copy and pasted into the body. We should be able to save the files directly to our own computers without the risk of introducing formatting changes caused by going through an intermediate email format. It may help if you read this: http://sscce.org/ It is written for Java programmers, but the principles apply to everyone regardless of the language they are using. Thank you. -- Steve ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor