Giter Club home page Giter Club logo

aas229_workshop's Issues

Checking python environment

I cloned the repository with git (per step 1) and installed anaconda (per step 2a), but the environment check came up with a number of omissions and outdated versions. I copy the message below.

Lawrences-MacBook-Pro:aas229_workshop Larry$ python check_env.py
Error: ginga version 2.6.1 or later is required, you have version 2.5.20161005204600
Error: stginga version 0.1.3 or later is required, you have version 0.1.2.dev197
Found matplotlib 1.5.3
Error: Failed import: No module named 'gwcs'
Error: Failed import: No module named 'astroquery'
Found skimage 0.12.3
Error: Failed import: No module named 'specviz'
Found astropy 1.2.1
Found pandas 0.18.1
Found scipy 0.18.1
/Users/Larry/astroconda/lib/python3.5/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
/Users/Larry/astroconda/lib/python3.5/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Traceback (most recent call last):
File "check_env.py", line 61, in
errors.append(check_package(package_name, minimum_version=min_version))
File "check_env.py", line 29, in check_package
LooseVersion(str(minimum_version))):
File "/Users/Larry/astroconda/lib/python3.5/distutils/version.py", line 52, in lt
c = self._cmp(other)
File "/Users/Larry/astroconda/lib/python3.5/distutils/version.py", line 337, in _cmp
if self.version < other.version:
TypeError: unorderable types: str() < int()

error with stginga version (SOLVED)

Installed with steps 1 and 2b with no errors, but when I run check_env.py I get one error:

Error: stginga version 0.1.3 or later is required, you have version 0.1.2.dev197

How do I install the newer version of stginga?

Imexam Overview notebook - a.grab() returns an error


FileNotFoundError Traceback (most recent call last)
in ()
----> 1 a.grab() # Optional if you want to save a view in the notebook for reference, if using the notebook backend
2
3 # as seen below, if you are displaying images outside the notebook, they will be saved to file.

/Users/anusha/astroconda/envs/aas229-workshop/lib/python3.5/site-packages/imexam/connect.py in grab(self)
158 def grab(self):
159 """Display a snapshop of the current image in the browser window."""
--> 160 return self.window.grab()
161
162 def get_data_filename(self):

/Users/anusha/astroconda/envs/aas229-workshop/lib/python3.5/site-packages/imexam/ds9_viewer.py in grab(self)
1687 """Make a copy of the image view."""
1688 backend = get_backend().lower()
-> 1689 fname = self.snapsave(format="png")
1690 if "nbagg" in backend: # save inside the notebook
1691 data = mpimage.imread(fname)

/Users/anusha/astroconda/envs/aas229-workshop/lib/python3.5/site-packages/imexam/ds9_viewer.py in snapsave(self, filename, format, resolution)
1679 # self.set(cstring)
1680 # save the local directory, erase later?
-> 1681 call(cstring)
1682 print("Image saved to {0:s}".format(filename))
1683 logging.info("Image saved to {0:s}".format(filename))

/Users/anusha/astroconda/envs/aas229-workshop/lib/python3.5/subprocess.py in call(timeout, *popenargs, **kwargs)
555 retcode = call(["ls", "-l"])
556 """
--> 557 with Popen(*popenargs, **kwargs) as p:
558 try:
559 return p.wait(timeout=timeout)

/Users/anusha/astroconda/envs/aas229-workshop/lib/python3.5/subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds)
945 c2pread, c2pwrite,
946 errread, errwrite,
--> 947 restore_signals, start_new_session)
948 except:
949 # Cleanup if the child failed starting.

/Users/anusha/astroconda/envs/aas229-workshop/lib/python3.5/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
1549 else:
1550 err_msg += ': ' + repr(orig_executable)
-> 1551 raise child_exception_type(errno_num, err_msg)
1552 raise child_exception_type(err_msg)
1553

FileNotFoundError: [Errno 2] No such file or directory: 'import'

Using shell installer (SOLVED)

I have a Mac, have not previously installed Anaconda, and have successfully downloaded the shell installer for it in step 2a of the Installation and Setup instructions. My question is how precisely do I run the shell installer? Thanks.

Windows installation errors (SOLVED)

Hi --
I have not been able to install properly four packages:
scipy, skimage, specviz, and stginga

This is what my terminal shows when I try to run the check_env.py:
"(aas229-workshop) C:\aas229_workshop>python check_env.py
Found photutils 0.3
Found matplotlib 1.5.3
Error: Failed import: No module named 'scipy'
Found numpy 1.11.2
Error: Failed import: No module named 'skimage'
Found astropy 1.3
Found pandas 0.19.2
Error: Failed import: No module named 'specviz'
Error: Failed import: No module named 'stginga'
Found gwcs 0.7
Found ginga 2.6.1
Found astroquery 0.3.4
Found glue 0.11.1
Found IPython 5.1.0
Found notebook 4.3.1"

When I try using pip install to download these four, I get this error:
"Could not find a version that satisfies the requirement skimage (from versions: )
No matching distribution found for skimage"

I've read about issues regarding downloading scipy for windows, is this one of the issues? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.