moose icon indicating copy to clipboard operation
moose copied to clipboard

AttributeError: module 'rdesigneur' has no attribute 'rdesigneur'

Open ishanseth18 opened this issue 4 years ago • 8 comments

Hello,

Another student is getting this error in her code. We do not know why. The same code is running perfectly fine on my computer. Do you have any suggestions? This error is coming up for all rdesigneur examples.

ishanseth18 avatar Jun 01 '21 22:06 ishanseth18

Hi all,

Could you please expand moose version and how it was installed.

On Wed, Jun 2, 2021 at 3:31 AM ishanseth18 @.***> wrote:

Hello,

Another student is getting this error in her code. We do not know why. The same code is running perfectly fine on my computer. Do you have any suggestions? This error is coming up for all rdesigneur examples.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BhallaLab/moose/issues/273, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYWDQ76WXMKQEEXO6KRHKTTQVKEXANCNFSM455PMYCA .

hrani avatar Jun 02 '21 12:06 hrani

I am also getting the same error while attempting to run the example, ex3.1_squid_vclamp.py.

Name: pymoose
Version: 3.1.5
Summary: Python scripting interface of MOOSE Simulator (https://moose.ncbs.res.in)
Home-page: http://moose.ncbs.res.in
Author: MOOSERes
Author-email: [email protected]
License: UNKNOWN
Requires: numpy

PS: Installation method used pip install pymoose.

lungsi avatar Sep 08 '21 10:09 lungsi

But could you let us know what is the error?

On Wed, 8 Sep 2021 at 3:30 PM, lungsi @.***> wrote:

I am also getting the same error while attempting to run the example, ex3.1_squid_vclamp.py https://moose.readthedocs.io/en/latest/user/py/rdesigneur/rdes.html#hh-squid-model-with-voltage-clamp .

Name: pymoose Version: 3.1.5 Summary: Python scripting interface of MOOSE Simulator (https://moose.ncbs.res.in) Home-page: http://moose.ncbs.res.in Author: MOOSERes Author-email: @.*** License: UNKNOWN Requires: numpy

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BhallaLab/moose/issues/273#issuecomment-915097959, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYWDQ7CHE3LEY5SIH6BOGTUA4X3ZANCNFSM455PMYCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

hrani avatar Sep 08 '21 18:09 hrani

Following import rdesigneur as rd doing this

rdes = rd.rdesigneur(
    chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']],
    chanDistrib = [
        ['Na', 'soma', 'Gbar', '1200' ],
        ['K', 'soma', 'Gbar', '360' ]],
    stimList = [['soma', '1', '.', 'vclamp', '-0.065 + (t>0.1 && t<0.2) * 0.02' ]],
    plotList = [
        ['soma', '1', '.', 'Vm', 'Membrane potential'],
        ['soma', '1', 'vclamp', 'current', 'Soma holding current']
    ]
)

returns

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-b01d0fc1038d> in <module>
----> 1 rdes = rd.rdesigneur(
      2     chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']],
      3     chanDistrib = [
      4         ['Na', 'soma', 'Gbar', '1200' ],
      5         ['K', 'soma', 'Gbar', '360' ]],

AttributeError: module 'rdesigneur' has no attribute 'rdesigneur'

lungsi avatar Sep 09 '21 07:09 lungsi

I could reproduce the same error when moose installed via pip, with moose version 3.1.5 Will get back on this soon

On Thu, Sep 9, 2021 at 12:51 PM lungsi @.***> wrote:

Doing this

rdes = rd( chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']], chanDistrib = [ ['Na', 'soma', 'Gbar', '1200' ], ['K', 'soma', 'Gbar', '360' ]], stimList = [['soma', '1', '.', 'vclamp', '-0.065 + (t>0.1 && t<0.2) * 0.02' ]], plotList = [ ['soma', '1', '.', 'Vm', 'Membrane potential'], ['soma', '1', 'vclamp', 'current', 'Soma holding current'] ] )

returns


TypeError Traceback (most recent call last) in ----> 1 rdes = rd( 2 chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']], 3 chanDistrib = [ 4 ['Na', 'soma', 'Gbar', '1200' ], 5 ['K', 'soma', 'Gbar', '360' ]],

TypeError: 'module' object is not callable

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BhallaLab/moose/issues/273#issuecomment-915830851, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYWDQ3FJE5EIZOE5OSZYHLUBBN7ZANCNFSM455PMYCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

hrani avatar Sep 13 '21 13:09 hrani

The rdesignuer tutorials are improved over the time, run these files getting latest version of pymoose upgrade pre-release version of pymoose using pip install pymoose --pre --upgrade (which would be 3.2.1dev) and run the examples

On Mon, Sep 13, 2021 at 6:34 PM Harsha Rani @.***> wrote:

I could reproduce the same error when moose installed via pip, with moose version 3.1.5 Will get back on this soon

On Thu, Sep 9, 2021 at 12:51 PM lungsi @.***> wrote:

Doing this

rdes = rd( chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']], chanDistrib = [ ['Na', 'soma', 'Gbar', '1200' ], ['K', 'soma', 'Gbar', '360' ]], stimList = [['soma', '1', '.', 'vclamp', '-0.065 + (t>0.1 && t<0.2) * 0.02' ]], plotList = [ ['soma', '1', '.', 'Vm', 'Membrane potential'], ['soma', '1', 'vclamp', 'current', 'Soma holding current'] ] )

returns


TypeError Traceback (most recent call last) in ----> 1 rdes = rd( 2 chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']], 3 chanDistrib = [ 4 ['Na', 'soma', 'Gbar', '1200' ], 5 ['K', 'soma', 'Gbar', '360' ]],

TypeError: 'module' object is not callable

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BhallaLab/moose/issues/273#issuecomment-915830851, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYWDQ3FJE5EIZOE5OSZYHLUBBN7ZANCNFSM455PMYCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

hrani avatar Sep 14 '21 09:09 hrani

Thanks @hrani this worked (have not checked with other examples).

lungsi avatar Sep 17 '21 07:09 lungsi

Sure, let us know if any issue comes up with other examples

Moose team

On Fri, Sep 17, 2021 at 1:09 PM lungsi @.***> wrote:

Thanks @hrani https://github.com/hrani this worked (have not checked with other examples).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BhallaLab/moose/issues/273#issuecomment-921578447, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYWDQ6NGPXGWL7FZDXNAWLUCLWCZANCNFSM455PMYCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

hrani avatar Sep 17 '21 12:09 hrani