Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#3172 closed defect (fixed)

Space Navigator does not start on Mac

Reported by: acheron24@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Input/Output Version:
Keywords: Cc: Eric Pettersen
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-18.7.0-x86_64-i386-64bit
ChimeraX Version: 0.93 (2020-04-03)
Description
I have a 3dconnexion space navigator. Current drivers are version 1.1.4.
When the commnad "device snav on" is issue the following error is reported:
Could not start space navigator. cannot import name '_spacenavigator' from 'chimerax.spacenavigator' (/Applications/ChimeraX-0.93.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/spacenavigator/__init__.py)

Thanks, keep up the good work.

Log:
Startup Messages  
---  
warning | 'clip' is a prefix of an existing command 'clipper'  
  
UCSF ChimeraX version: 0.93 (2020-04-03)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> device snav true

Could not start space navigator.  
  
cannot import name '_spacenavigator' from 'chimerax.spacenavigator'
(/Applications/ChimeraX-0.93.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/spacenavigator/__init__.py)  




OpenGL version: 4.1 INTEL-12.10.17
OpenGL renderer: Intel Iris Pro OpenGL Engine
OpenGL vendor: Intel Inc.

Change History (10)

comment:1 by Tom Goddard, 5 years ago

Cc: Eric Pettersen added
Component: UnassignedInput/Output
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionSpace Navigator does not start on Mac

The problem is that the Space Navigator library is not installed on our Mac ChimeraX build machine essex.cgl.ucsf.edu. I am not able to log into that machine, possibly I don't have an account on it.

Eric I think essex is your development machine. Could you install the Space Navigator driver (called "3DxWare 10 for macOS") on essex?

https://www.3dconnexion.com/service/drivers.html

Once that is installed then the _spacenavigator module will get compiled and the device may then work in the daily build.

I tested Space Navigator on Windows 10 in ChimeraX and Chimera, both working. I was unable to get macOS 10.15.4 (Catalina) to even recognize device -- it will only treat it as a mouse, the Space Navigator control panel says no device connected. This is on a 2019 MacBook Pro with only USBC ports and my Space Navigator is old USBA, so the problem could be the USBA to USBC adapter I am using. The reporter is using macOS 10.14 -- let's see if it works there.

comment:2 by Tom Goddard, 5 years ago

I got space navigator to work on my Mac laptop (10.15.4). It required uninstalling and reinstalling the space navigator driver. So I suspect once Eric puts the driver on the build machine the daily builds will work with Space Navigator.

comment:3 by Eric Pettersen, 5 years ago

Well, it's a little tricky since the installer is a .pkg and I'm working remotely. Following the guidelines from this page: https://apple.stackexchange.com/questions/72226/installing-pkg-with-terminal/72227 I ran the 'installer' command, which seemed to work:

essex:/Users/pett/rm<3> sudo installer -pkg Install\ 3Dconnexion\ software.pkg -target /
Password:
installer: Package name is 3Dconnexion Software
installer: Installing at base path /
installer: The install was successful.
installer: The install requires restarting now.

The question is, do you think I _really_ need to restart? I clearly would if I were _using_ a Space Navigator, but if I'm just linking against the library...

in reply to:  4 ; comment:4 by goddard@…, 5 years ago

I do not think a restart is needed.  I believe it wants to restart because it installs a kernel module.  ChimeraX compilation does not need that -- it only needs the headers and library in /Library/Frameworks/3dconnexion.

in reply to:  5 ; comment:5 by acheron24@…, 5 years ago

I don't know. But I don't mind testing the build without reboot.


On Mon, May 11, 2020 at 12:49 PM ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
wrote:


in reply to:  6 ; comment:6 by goddard@…, 5 years ago

The Mac ChimeraX build failed last night (Apple notarization issue) so the space navigator support won't be ready to try until tomorrow's build.

in reply to:  7 ; comment:7 by acheron24@…, 5 years ago

That sounds great.


On Tue, May 12, 2020 at 4:36 PM ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
wrote:


in reply to:  8 ; comment:8 by goddard@…, 5 years ago

Mac build failed again last night with Apple notarization problems.  Look for build dated newer than May 11 on downloads page before testing space navigator.

comment:9 by Tom Goddard, 5 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Tested today's mac build and space navigator worked.

in reply to:  10 ; comment:10 by acheron24@…, 5 years ago

I can confirm, great work.

Thank you very much.


On Thu, May 14, 2020 at 12:30 PM ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
wrote:


Note: See TracTickets for help on using tickets.