I'm pretty new with PyQt, but I just upgraded to the version 5 expecting that I could use the Qt3D (that is available with Qt5), but when I've tried to import the module it always says "Unresolved reference to Qt3d". So I've searched in the PyQt documentation and there is no reference of the Qt3D module, because of that I want to know:
is it possible to use Qt3D with PyQt5?
if so, how can I do it?
if not, wich other libraries can I use to make a 3D visualization of a 3D model imported another program like Blender.
(I tought about vPython, but I couldn't figure it out how to import from another file)
Update:
As ekhumoro pointed out, there is in fact support for it. See
https://www.riverbankcomputing.com/software/pyqt3d/intro
Doesn't seem to be the case, at least not yet.
On 23 Mar 2016, at 11:47 pm, Miguel Alejandro Fernandez wrote:
in the next version 5.6 include support for 3D libraries?
It won't be in PyQt v5.6. It might be in PyQt v5.6.1 if the documentation has improved.
Phil
From https://riverbankcomputing.com/pipermail/pyqt/2016-March/037147.html
You could try using VTK
Related
I´d like to compile an dll in ironpython AND add some information on the file-version. In former versions (e.g. 2.7.7) there has been the theoretical possibility to do this by
ipy.exe pyc.py test.py /out:test /file_version:1.1.1.1 /target:dll
In newer versions I can´t see the feature (/file_version) anymore (also not in ipyc.exe, which is shipped with ironpython). Does someone know the way?
I found the feature. At least in the versions 2.7.11 and 3.4.0alpha I found the feature in ipyc.exe
ipyc.exe /out:dummy.dll /copyright:dummycopyright /fileversion:1.1 /productname:dummy /productversion:1.1 <skripts>
Unfortunalely, it is not documented in
ipyc.exe /h
I was looking there for the feature, that´s why I raised the question.
Well, I prefer hidden features to hidden bugs. ;)
I'm trying to use vincent package to visualize my data (in pandas) in jupyter notebook, but have trouble in initial attempt ,here is the code I use (copied from the http://wrobstory.github.io/2013/10/mapping-data-python.html):
import vincent
import pandas
world_topo=r'world-countries.topo.json'
geo_data = [{'name': 'countries',
'url': world_topo,
'feature': 'world-countries'}]
vis = vincent.Map(geo_data=geo_data, scale=200)
vis.to_json('vega.json')
vis.display()
After I ran the code, nothing was displayed. I checked the type of the vis:
vincent.charts.Map
I'm not sure how to proceed here, I appreciate any input on this problem.
Not sure at which point of implementation of this you are.
Assuming you just used pip to install vincent and tried the code in PY IDLE , you might be missing 2 important steps:
AFIK vincent only generates jsons to be presented using Vega via Jupyter notebook.
To render with Vega You will need to install:
1) Jupyter and dependencies
2) Vega and dependencies
I was able to do so using these instructions.
Once jupiter launched, a window opens in the browser, I had to choose 'Python3' under 'new', and put code in the prompt on that page.
Alternately you can use this online Vega renderer. Please also see Vega docs
Note that it seems that vincent is not the latest technology for that purpose, their page points to Altair
Also, I noticed that the json that is generated in 'vega.json' from the code you posted, using the original data, does not render anywhere. That's also an issue, probably happens because it uses outdated format, but I am not sure.
I have limited experience with this technology but I was able to get graphs to render, specifically this, and it is also how it looked for me.
I know that this post is old but I found your error and I thought I would answer here to help future users of vincent as it has worked beautifully for me. I am working with the anaconda version of vincent and jupyter notebook.
First, you have to initialize vincent in your notebook
import vincent
vincent.core.initialize_notebook()
and your next problem is that your URL isn't actually pointing anywhere. For the world map topography you need:
world_topo="https://raw.githubusercontent.com/wrobstory/vincent_map_data/master/world-countries.topo.json"
A decent map printed out for me with those two exceptions.
I am porting an old (circa year 2000) IBM VAST 4.5 application to VA Smalltalk.
I managed to import the app from the VAST repository to my new VA Smalltalk repository with no error messages. But when I try to load the application this error occurs:
Error: 365 Cannot complete the load because CwItem can only be
defined by one of ('CwControls V 4.5a' 'CwWindowsControls V 8.6.0
[269]').
I understand that CwControls changed to CwWindowsControls but my Smalltalk knowledge is very rusty: I have no idea how to solve this.
Someone in the VA Smalltalk group mentioned a similar situation but his answer is a bit cryptic to me:
"CwControls app name is changed in new version as CwWindowsControls. When I create a empty app named CwControls, I can load apps uses controls in this app."
I know that I can create an empty app called CwControls but then my application will not compile as the methods normally provided by the original CwControls will not be present.
How can I solve this problem?
Thank you very much!!
It looks to me like CwWindowsControls already defines CwItem. When you load CwItem from the other project it is defined by CwControls though. I'm not familiar with VA but you might be able to resolve the issue by first deleting CwItem where it's defined by CwWindowsControls, then loading the other project and finally (possibly) refactor CwItem to be defined by CwWindowsControls.
I found a way to solve my problem.
My application needed another application called CwControls. But CwControls had changed its name to CwWindowsControls.
So, inspired by the answer by #MikeLeske, I just created an empty app called CwControls. That way VA Smalltalk let me continue the load.
Another error appeared then:
"Error: 365 Cannot complete the load because AbtCwPanel can only be defined by one of ('AbtRunWinCwControlsApp V 4.5' 'AbtWinRunViewsSubApp V 8.6.0 [269]')."
But the answer was similar: I just created an empty app called AbtRunWinCwControlsApp.
Now I have my 13 year old application loaded into my image. Time to work!!!
Thanks.
I had a similar problem, but with SstHttpSupport which became SstHttpCommunications and such.
I fixed this by "Managing" the application and removing the requirement for SstHttpSupport.
I then successfully ported the application into VAST 8.6.
Knowing that I no longer had SstHttpSupport, I add SstHttpCommunications as the new requirement in 8.6.
Hope this helps
I have been an IDL programmer for sometime now and looking to transition to Python. I find that MPFIT's IDL version exists in Python. However, I am looking for MPFITFUN version in Python (http://www.physics.wisc.edu/~craigm/idl/down/mpfitfun.pro) or something similar.
Basically, I am looking for a Python function that takes a user-defined function and uses like Levenberg-Marquardt least-squared fit (like MPFIT).
Thanks,
There are fitting functions built into SciPy but I do not know of any which account for uncertainties in data as MPFITFUN does.
I have found Sherpa to be an excellent modeling and fitting package for Python which accounts for uncertainties and replaces MPFITFUN: http://cxc.harvard.edu/contrib/sherpa/
Since Sherpa is produced by astronomers it has a lot of built in astrophysical models, but you can build your own function to fit with Sherpa's Levenberg-Marquardt, Nelder-Mead or Monte Carlo algorithms. I used the template from the pysherpa blog:
http://pysherpa.blogspot.com/2010/06/user-defined-sherpa-model-types-using.html
mpfit.py is available from https://code.google.com/p/astrolibpy/ and an older version hosted at http://cars.uchicago.edu/software/python/mpfit.html.
A good alternative is lmfit: https://pypi.python.org/pypi/lmfit/, https://github.com/lmfit/lmfit-py, http://lmfit.github.io//lmfit-py/
I accidentally found that there also exists the MPFITEXPR in Python. Here's the link to the code. You can also download it via Astrolibpy project.
Link:
https://code.google.com/p/astrolibpy/source/browse/mpfit/mpfitexpr.py?r=3545675a0662392e3e09c88beaf275c9e7881cf6
I'm using Emgu.CV which is a C# wrapper for the OpenCV libraries.
I changed the Emgu.CV source to invoke from the latest OpenCV library cv110.dll instead of cv100.dll and now I get this error (where ????? is cv110.dll). I have placed the cv110.dll file in all the same locations as the cv100.dll file however this does not help.
On a broader scale, what is the folder search order when looking for dlls, and are there anyone other reasons for this error.
It seems there is a subtle difference between those two assemblies. Without code its hard to tell, but I suggest you to take a look to this blog, specially this post: http://blogs.msdn.com/suzcook/archive/2003/05/29/57120.aspx and http://blogs.msdn.com/suzcook/archive/2003/08/11/57236.aspx
Suzanne Cooks worked in the fusion/CLR loader, and her blogs has tons of tips and advices for this kind of issues.
Good Luck!
You need VCRT(Visual C run time) 8.0 SP1, available from the following link:
http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en
See this post on Emgu CV discussion forum for more information:
http://www.emgu.com/forum/viewtopic.php?f=7&t=88