New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cython classmethod_utility_code used in VisTrails vtDVD3D #1056

Closed
painter1 opened this Issue Feb 20, 2015 · 8 comments

Comments

Projects
None yet
5 participants
@painter1
Contributor

painter1 commented Feb 20, 2015

The old Cython had a module classmethod_utility_code referenced by VisTrails vtDVD3D/InteractiveConfiguration.py. The new Cython doesn't have it (at least, not in the same place) but the module is still imported by InteractiveConfiguration.py. It seems not to be needed, but I don't know because this code is unfamiliar to me.

This issue causes an ImportError exception when you build a new UV-CDAT and try to run the GUI.

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented Feb 20, 2015

@painter1 can you post the error here please.

@doutriaux1 doutriaux1 added this to the 2.2 milestone Feb 20, 2015

@painter1

This comment has been minimized.

Contributor

painter1 commented Feb 20, 2015

painter1@caradoc:[uvcmetrics]:[63615]> uvcdat --output=""
WARNING: UVCDAT setup already sourced for this install location.
WARNING: You shouldn't source setup_runtime anymore.
['Adelon', 'Arabic', 'AvantGarde', 'Chinese', 'Clarendon', 'Courier', 'Greek', 'Hebrew', 'Helvetica', 'Maths1', 'Maths2', 'Maths3', 'Maths4', 'Russian', 'Times', 'default']
Uncaught exception on initialization: ImportError: cannot import name classmethod_utility_code
Traceback (most recent call last):
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/uvcdat.py", line 89, in
v = gui.application.start_application()
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/application.py", line 703, in start_application
x = VistrailsApplication.init(optionsDict)
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/application.py", line 160, in init
self.createWindows()
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/application.py", line 554, in createWindows
self.uvcdatWindow = UVCDATMainWindow()
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/uvcdat/mainwindow.py", line 74, in init
self.createDockWindows()
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/uvcdat/mainwindow.py", line 140, in createDockWindows
self.varProp = VariableProperties(self)
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/uvcdat/variable.py", line 116, in init
self.createOpenDAPTab()
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/uvcdat/variable.py", line 293, in createOpenDAPTab
from packages.vtDV3D.RemoteDataBrowser import RemoteDataBrowser
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/packages/vtDV3D/init.py", line 68, in
from packages.vtDV3D.CDMS_DatasetReaders import *
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/packages/vtDV3D/CDMS_DatasetReaders.py", line 11, in
from packages.vtDV3D.InteractiveConfiguration import *
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/packages/vtDV3D/InteractiveConfiguration.py", line 23, in
from Cython.Compiler.Symtab import classmethod_utility_code
ImportError: cannot import name classmethod_utility_code

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented Feb 20, 2015

@vvpalav if you can figure out this one quickly it would be awesome, if you think it's going to take too long, let's just revert to the older Cython.

@painter1

This comment has been minimized.

Contributor

painter1 commented Feb 20, 2015

I think you just can delete the offending import line. I just hope that someone who knows what the code is about can do it.

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented Feb 20, 2015

@painter1 yes that's why I assigned @vvpalav he can tell us rapidly I'm sure.

@ThomasMaxwell

This comment has been minimized.

Contributor

ThomasMaxwell commented Feb 20, 2015

I don't know where this line of code came from, but when I ran into this error I deleted the offending line and it did not seem to cause any problems with DV3D.

-- Tom

From: Jeffrey Painter <notifications@github.commailto:notifications@github.com>
Reply-To: UV-CDAT/uvcdat <reply@reply.github.commailto:reply@reply.github.com>
Date: Friday, February 20, 2015 2:11 PM
To: UV-CDAT/uvcdat <uvcdat@noreply.github.commailto:uvcdat@noreply.github.com>
Subject: Re: [uvcdat] Cython classmethod_utility_code used in VisTrails vtDVD3D (#1056)

painter1@caradoc:[uvcmetrics]:[63615]> uvcdat --output=""
WARNING: UVCDAT setup already sourced for this install location.
WARNING: You shouldn't source setup_runtime anymore.
['Adelon', 'Arabic', 'AvantGarde', 'Chinese', 'Clarendon', 'Courier', 'Greek', 'Hebrew', 'Helvetica', 'Maths1', 'Maths2', 'Maths3', 'Maths4', 'Russian', 'Times', 'default']
Uncaught exception on initialization: ImportError: cannot import name classmethod_utility_code
Traceback (most recent call last):
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/uvcdat.py", line 89, in
v = gui.application.start_application()
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/application.py", line 703, in start_application
x = VistrailsApplication.init(optionsDict)
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/application.py", line 160, in init
self.createWindows()
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/application.py", line 554, in createWindows
self.uvcdatWindow = UVCDATMainWindow()
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/uvcdat/mainwindow.py", line 74, in init
self.createDockWindows()
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/uvcdat/mainwindow.py", line 140, in createDockWindows
self.varProp = VariableProperties(self)
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/uvcdat/variable.py", line 116, in init
self.createOpenDAPTab()
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/gui/uvcdat/variable.py", line 293, in createOpenDAPTab
from packages.vtDV3D.RemoteDataBrowser import RemoteDataBrowser
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/packages/vtDV3D/init.py", line 68, in
from packages.vtDV3D.CDMS_DatasetReaders import *
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/packages/vtDV3D/CDMS_DatasetReaders.py", line 11, in
from packages.vtDV3D.InteractiveConfiguration import *
File "/Users/painter1/bin/uvcdat-2015.02.20/vistrails/vistrails/packages/vtDV3D/InteractiveConfiguration.py", line 23, in
from Cython.Compiler.Symtab import classmethod_utility_code
ImportError: cannot import name classmethod_utility_code


Reply to this email directly or view it on GitHubhttps://github.com//issues/1056#issuecomment-75300366.

@remram44

This comment has been minimized.

Contributor

remram44 commented Feb 24, 2015

I just ran into that. I don't see why this should completely crash the GUI, either. I'm supposed to work on the new UV-CDAT GUI backend but I keep stumbling on unrelated, app-breaking bugs.

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented Feb 24, 2015

CDAT/VisTrails#14 fixes this

@doutriaux1 doutriaux1 closed this Feb 24, 2015

@remram44 remram44 referenced this issue Feb 24, 2015

Closed

DV3D fixes #17

@remram44 remram44 referenced this issue Mar 16, 2015

Closed

Reduce size #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment