Comments (11)
We can do a 2023.1.1
release of sire once we work out what the clash is... (it will also give me a chance to include the other fixes I've been doing - I want to get to a point where all the SireUnitTests tests pass on all platforms)
from biosimspace.
Right, fixed it. The issue was this line:
# Create the view.
view = _py3Dmol.view(
linked=False, width=width, height=height, viewergrid=viewergrid
)
Here both height
or width
could be a float (since this is worked out in the function) but it is expected to be an int
. Annoying that no error is raised, or that py3Dmol
can't convert to an int
for you. This definitely used to work, so I can only assume that they've changed something behind the scenes.
from biosimspace.
Very curious - I'll look to debug too. I added an exporter for sire objects to nglview in 2023.X, but I don't think that BSS would use that route?
from biosimspace.
I confirm I see this too on safari, MacOS M1. I suspect it is universal. m0._sire_object.view()
still works, showing that nglview is rendering.
from biosimspace.
Thanks for confirming. I only mentioned the possibility of a rebuild for Sire since a lot of things seem to be tied to ipywidgets
, so if that is the culprit then quite a few dependencies might change it we adjust the version. I'll see if the problem goes away with different versions of py3Dmol
on Monday.
from biosimspace.
Yes - there is definitely a package clash somewhere. In a vanilla mambaforge environment where I only install jupyterlab and py3dmol it works.
In the openbiosim environment with sire and BioSimSpace installed it doesn't...
from biosimspace.
Okay, so the issue is py3Dmol
itself. It works with the latest version (2.0.0), but not with the version installed via BioSimSpace (1.8.1). The new version works with the pinned version of ipywidgets
from our environment (7.7.2) and also with the latest version (8.0.4). Version 2.0.0 of py3Dmol
is only 15 days old, so I would assume that sire
would have been built against it (unless the dependency resolution doesn't allow it). For packages built prior to this, I think the pinning rules used by conda during the build wouldn't allow us to resolve against 2.0.0, i.e. it is a new major version.
I'll try re-building Sire locally to see what version we end up with. If it works, then a simple rebuild might fix things. I'll also check nglview
, as it would be good to remove the ipywidgets
pin if it is no longer necessary.
from biosimspace.
Hmm, the latest Sire build did use py3Dmol
2.0.0, so it might just be my local development environment that's out of date. I'll refresh it and see.
from biosimspace.
Nope, that's not it. It still doesn't work downloading the latest conda package, which does pull in py3Dmol
2.0.0.
from biosimspace.
I've unpinned ipywidgets
locally and I still see the same issue. Interestingly, just drawing a simple sphere works. (Just re-using your example.)
The function is pretty simple and is just using standard py3Dmol
function calls. I'll see if I can strip parts out in order to get it to work.
Just to note that we do still need to pin ipywidgets
, since an nglview
update hasn't been released yet. (I think they've fixed it locally, but not updated the conda package yet.) Without this pin we'd get the following error:
File ~/.conda/envs/sire-dev/lib/python3.9/site-packages/nglview/color.py:54, in _ColormakerRegistry._ipython_display_(self, **kwargs)
52 if self._ready:
53 return
---> 54 super()._ipython_display_(**kwargs)
AttributeError: 'super' object has no attribute '_ipython_display_'
from biosimspace.
That's a good fix (and quite a rabbit-hole debug!)
from biosimspace.
Related Issues (20)
- Strategy for migration to OpenBioSim GitHub organisation HOT 1
- Storage quota exceeded on the Anaconda cloud HOT 1
- HILLS file not updating during restarting simulation HOT 4
- Is it possible to add ions to an already solvated system, without adding any more water molecules? HOT 4
- Problem when converting Gro/Top to Rst7 HOT 12
- Making HMR work with dummies HOT 11
- Make _removeDummies() recognise dummy bonds HOT 10
- Would it be possible to include HiMap as an alternative to LoMap in the generateNetwork method? HOT 2
- Unable to import BioSimSpace after mamba installation HOT 12
- `_toRegularMolecule` failing with `convert_amber_dummies=True` HOT 15
- Absolute Binding Free Energy Calculations with GROMACS HOT 7
- Pickling a parametrised molecule from an SDF file with GAFF2 HOT 4
- Are atomtypes meant to be updated when using repartitionHydrogenMass? HOT 16
- [BUG] OSError "It looks like you failed to include a topology file." when reading SDF which doesn't contain redundant bond order information HOT 10
- [BUG] Cannot import BioSimSpace after installation of biosimspace 2023.1.2 using mamba HOT 3
- AnalysisError: SOMD free-energy analysis failed! HOT 5
- [BUG] HOT 10
- Reporting a vulnerability
- [BUG] Water molecule coordinates are setting to (0,0,0) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biosimspace.