Skip to content
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

BrainError for accessing data in remote mode #809

Open
riya1997r opened this issue Jun 11, 2024 · 1 comment
Open

BrainError for accessing data in remote mode #809

riya1997r opened this issue Jun 11, 2024 · 1 comment

Comments

@riya1997r
Copy link

target_cube = "10510-12704"
my_cube = marvin.tools.Cube(target_cube)

BrainError Traceback (most recent call last)
/var/folders/vv/b6943gtn77q8yzt_knd92ry40000gn/T/ipykernel_1113/1586401030.py in
----> 1 my_cube = marvin.tools.Cube(target_cube)

~/opt/anaconda3/lib/python3.9/site-packages/marvin/tools/cube.py in init(self, input, filename, mangaid, plateifu, mode, data, release, drpall, download, nsa_source)
76 self._load_cube_from_db(data=self.data)
77 elif self.data_origin == 'api':
---> 78 self._load_cube_from_api()
79
80 self._init_attributes(self)

~/opt/anaconda3/lib/python3.9/site-packages/marvin/tools/cube.py in _load_cube_from_api(self)
235 """Calls the API and retrieves the necessary information to instantiate the cube."""
236
--> 237 url = marvin.config.urlmap['api']['getCube']['url']
238
239 try:

~/opt/anaconda3/lib/python3.9/site-packages/brain/core/core.py in missing(self, key)
35
36 if len(self.keys()) == 0:
---> 37 raise BrainError('No URL Map found. Cannot make remote call')
38 else:
39 raise BrainError('Key {0} not found in urlmap.'.format(key))

BrainError: No URL Map found. Cannot make remote call

@havok2063
Copy link
Collaborator

Hi @riya1997r can you try the instructions recommended in #810 and see if that fixes your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants