Error configuring multiclamp 700B

52 views
Skip to first unread message

Antonin Blot

unread,
Sep 11, 2018, 9:25:41 AM9/11/18
to ACQ4
Hi,

I'm trying to install acq4 with a multiclamp 700B and I have a new error: `NameError: UNITS_VOLTS_PER_VOLT`.  As far as I can tell the wmlib object is created by MultiClampTelegraph.py without error and has all the basic properties (like PeekMessageA for instance) but none of the methods starting by MCTG or the units conversion factor. Since I add some pyparser issue at first, I tried to delete my MultiClampBroadcastMsg.hpp.cache and restart but that didn't solve the problem.

  I installed anaconda in 32 bits, so that shouldn't be the issue. Do I have to pay attention to the exact version of multiclamp commander that I have installed on the computer?

Thanks!


Full traceback:




NameError: UNITS_VOLTS_PER_VOLT
  File "C:\ProgramData\Anaconda2\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\ProgramData\Anaconda2\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Users\Master\software\acq4\acq4\__main__.py", line 57, in <module>
    man = Manager(argv=sys.argv[1:])
  File "acq4\Manager.py", line 151, in __init__
    self.readConfig(configFile)
  File "acq4\Manager.py", line 229, in readConfig
    self.configure(cfg)
  File "acq4\Manager.py", line 297, in configure
    printExc("Error configuring device %s:" % k)
  File "acq4\util\debug.py", line 42, in printExc
    acq4.Manager.logExc(msg=msg, msgType=msgType)
------- exception caught ---------->
  File "acq4\Manager.py", line 295, in configure
    self.loadDevice(driverName, conf, k)
  File "acq4\Manager.py", line 438, in loadDevice
    dev = devclass(self, conf, name)
  File "acq4\devices\MultiClamp\multiclamp.py", line 70, in __init__
    import acq4.drivers.MultiClamp as MultiClampDriver
  File "acq4\drivers\MultiClamp\__init__.py", line 1, in <module>
    from multiclamp import *
  File "acq4\drivers\MultiClamp\multiclamp.py", line 6, in <module>
    from MultiClampTelegraph import *
  File "acq4\drivers\MultiClamp\MultiClampTelegraph.py", line 289, in <module>
    wmlib.UNITS_VOLTS_PER_VOLT:       ('V', 1.0),
  File "acq4\util\clibrary\CLibrary.py", line 192, in __getattr__
    raise NameError(name)

Luke Campagnola

unread,
Sep 11, 2018, 10:03:09 AM9/11/18
to acq4
Hi Antonin, I just saw this error a couple of days ago myself. Will let you know when I have a solution.

--
You received this message because you are subscribed to the Google Groups "ACQ4" group.
To unsubscribe from this group and stop receiving emails from it, send an email to acq4+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/acq4/48ca2eea-c3fb-4a86-85f8-45502bde35b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luke Campagnola

unread,
Sep 14, 2018, 1:45:56 PM9/14/18
to acq4

This is now fixed in the most recent develop commit. If you are using a distant branch, it should be easy to cherry-pick this one:

https://github.com/acq4/acq4/commit/ba7cd340d9d0282640adb501d3788f8c0837e4c4


From: ac...@googlegroups.com <ac...@googlegroups.com> on behalf of Luke Campagnola <luke.ca...@gmail.com>
Sent: Tuesday, September 11, 2018 7:02:50 AM
To: acq4
Subject: Re: [acq4] Error configuring multiclamp 700B
 

Michael Graupner

unread,
Apr 7, 2022, 6:02:22 PM4/7/22
to ACQ4
Dear Luke, 

I was trying to access our new multipclamp 700B amplifier with ACQ4 this afternoon and got the same error as reported by Antonin  (Sep 11, 2018, 3:25:41 PM). The fix https://github.com/acq4/acq4/commit/ba7cd340d9d0282640adb501d3788f8c0837e4c4 didn't do the job for me. Or am I missing something in your instructions? 

Any chance I can fix that in the python2 version of ACQ4? I tested the current develop branch (using python 3) and the 700B is working with it. However, I don't have the time and resources to port our entire ACQ4 ecosystem to python3 right now. 

I would appreciate if you can get a quick hint. Thanks in advance. 

Cheers,
Michael 

Luke Campagnola

unread,
Apr 7, 2022, 6:30:16 PM4/7/22
to ac...@googlegroups.com
Hi Michael,

What if you just take the most current version of the multipatch device + driver code and backport it to python 2? I would guess this is relatively easy.


Luke

From: ac...@googlegroups.com <ac...@googlegroups.com> on behalf of Michael Graupner <graupner...@gmail.com>
Sent: Thursday, April 7, 2022 15:02
To: ACQ4 <ac...@googlegroups.com>

Subject: Re: [acq4] Error configuring multiclamp 700B
 
CAUTION: This email originated from outside the Allen Institute. Please do not click links or open attachments unless you've validated the sender and know the content is safe.

Michael Graupner

unread,
Apr 8, 2022, 1:57:04 AM4/8/22
to ac...@googlegroups.com
Hi Luke, 

Thank you for your prompt reply. I will try this today. 

Cheers,
Michael 

Michael Graupner

unread,
Apr 8, 2022, 6:05:32 AM4/8/22
to ac...@googlegroups.com
Hi Luke, 

I just ported the current multipatch device+driver code, backported it into our current python2 environment and still get the same error : 


=== Configuring device 'MultiClamp700B' ===
Parsing C header files (no valid cache found). This could take several minutes...
Parsing C header files (no valid cache found). This could take several minutes...
[11:58:59]  Error configuring device MultiClamp700B:

    |==============================>>
    |    File "C:\Users\2pinvivo\.conda\envs\acq4\lib\runpy.py", line 174, in _run_module_as_main

    |      "__main__", fname, loader, pkg_name)
    |    File "C:\Users\2pinvivo\.conda\envs\acq4\lib\runpy.py", line 72, in _run_code
    |      exec code in run_globals
    |    File "C:\Users\2pinvivo\experiments\acq4\acq4\__main__.py", line 48, in <module>

    |      man = Manager(argv=sys.argv[1:])
    |    File "acq4\Manager.py", line 145, in __init__
    |      self.readConfig(configFile)
    |    File "acq4\Manager.py", line 231, in readConfig
    |      self.configure(cfg)
    |    File "acq4\Manager.py", line 258, in configure

    |      printExc("Error configuring device %s:" % k)
    |    File "acq4\util\debug.py", line 38, in printExc
    |      pgdebug.printExc(msg, indent, prefix)
    |    ---- exception caught ---->
    |    File "acq4\Manager.py", line 256, in configure
    |      self.loadDevice(driverName, conf, k)
    |    File "acq4\Manager.py", line 388, in loadDevice

    |      dev = devclass(self, conf, name)
    |    File "acq4\devices\MultiClamp\multiclamp.py", line 84, in __init__
    |      import acq4.drivers.MultiClamp as MultiClampDriver
    |    File "acq4\drivers\MultiClamp\__init__.py", line 2, in <module>
    |      from .multiclamp import *
    |    File "acq4\drivers\MultiClamp\multiclamp.py", line 11, in <module>
    |      from acq4.drivers.MultiClamp.MultiClampTelegraph import wmlib, MultiClampTelegraph
    |    File "acq4\drivers\MultiClamp\MultiClampTelegraph.py", line 286, in <module>

    |      wmlib.UNITS_VOLTS_PER_VOLT:       ('V', 1.0),
    |    File "acq4\util\clibrary\CLibrary.py", line 192, in __getattr__
    |      raise NameError(name)
    |  NameError: UNITS_VOLTS_PER_VOLT
    |==============================<<


Any ideas? 

Thanks in advance.

Best,
Michael

Reply all
Reply to author
Forward
0 new messages