Giter Site home page Giter Site logo

fred3m / toyz Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 2.0 34.31 MB

Toyz for Data Analysis and Reduction

Home Page: http://fred3m.github.io/toyz/

License: BSD 3-Clause "New" or "Revised" License

Makefile 1.54% Python 41.23% JavaScript 50.24% HTML 6.22% CSS 0.77%

toyz's People

Contributors

fred3m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

toyz's Issues

Cannot load a fits-file

If Itry to open a fits-file I get the error-message "ERROR: PYTHON ERROR:KeyError('optional',)"
What went wrong?
I have Ubuntu 64 bit
Reghards from Germany
Klaus Lang

Warn user when a toyz module cannot be found

Currently when a toyz module cannot be found an exception is called and the code stops. Instead a warning should be returned to the user notifying them that a module is missing, but it shouldn't prevent them from running code.

UnboundLocalError in first time setup script

I'm trying to follow the instructions at http://fred3m.github.io/toyz/getting_started.html#first-time-setup, but I'm getting this error:

$ toyz 
Loading dependencies, please wait...
Server root directory: /Users/deil/Library/Python/2.7/lib/python/site-packages/toyz-0.0.dev-py2.7.egg/toyz

Toyz: First Time Setup
----------------------

Create new Toyz configuration in '/private/tmp'? /tmp/toys-config
Traceback (most recent call last):
  File "/Users/deil/Library/Python/2.7/bin/toyz", line 5, in <module>
    pkg_resources.run_script('toyz==0.0.dev', 'toyz')
  File "/Users/deil/Library/Python/2.7/lib/python/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/Users/deil/Library/Python/2.7/lib/python/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1235, in run_script
    execfile(script_filename, namespace, namespace)
  File "/Users/deil/Library/Python/2.7/lib/python/site-packages/toyz-0.0.dev-py2.7.egg/EGG-INFO/scripts/toyz", line 9, in <module>
    init_web_app()
  File "/Users/deil/Library/Python/2.7/lib/python/site-packages/toyz-0.0.dev-py2.7.egg/toyz/web/app.py", line 564, in init_web_app
    toyz_app = ToyzWebApp()
  File "/Users/deil/Library/Python/2.7/lib/python/site-packages/toyz-0.0.dev-py2.7.egg/toyz/web/app.py", line 404, in __init__
    self.toyz_settings = core.ToyzSettings(root_path)
  File "/Users/deil/Library/Python/2.7/lib/python/site-packages/toyz-0.0.dev-py2.7.egg/toyz/utils/core.py", line 599, in __init__
    self.first_time_setup(config_root_path)
  File "/Users/deil/Library/Python/2.7/lib/python/site-packages/toyz-0.0.dev-py2.7.egg/toyz/utils/core.py", line 656, in first_time_setup
    "Create new Toyz configuration in '{0}'? ".format(self.config.root_path)):
  File "/Users/deil/Library/Python/2.7/lib/python/site-packages/toyz-0.0.dev-py2.7.egg/toyz/utils/core.py", line 91, in get_bool
    "(true/false, yes/no, t/f, y/n)".format(bool_str))
UnboundLocalError: local variable 'bool_str' referenced before assignment

@fred3m – Can you reproduce / fix this?

Python 3 support?

I wanted to try out toyz and ran into this error:

$ python setup.py install --user
Traceback (most recent call last):
  File "setup.py", line 5, in <module>
    from toyz import version
  File "/Users/deil/code/toyz/toyz/__init__.py", line 1, in <module>
    import web
ImportError: No module named 'web'

This would be easy to fix – use explicit relative imports or absolute imports.

@fred3m Do you think Python 3 support would be easy to achieve for toys or are there some tricky parts that only work on Python 2?

Catch errors thrown by local machine permissions

When users are sharing directories it's possible that one of them may have created permissions that prevent other users from using/accessing that directory. Currently the code throws an error when this happens, but instead it should be caught so the user can be warned but it shouldn't kill the execution of a function.

SyntaxError: invalid syntax

After installing and trying to run toyz for the first time, I get this syntax error.

Loading dependencies, please wait...
Traceback (most recent call last):
  File "/usr/bin/toyz", line 5, in <module>
    pkg_resources.run_script('toyz==0.0.dev', 'toyz')
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.6/site-packages/toyz-0.0.dev-py2.6.egg/EGG-INFO/scripts/toyz", line 7, in <module>
    from toyz.web.app import init_web_app
  File "/usr/lib/python2.6/site-packages/toyz-0.0.dev-py2.6.egg/toyz/__init__.py", line 1, in <module>
    from toyz import web
  File "/usr/lib/python2.6/site-packages/toyz-0.0.dev-py2.6.egg/toyz/web/__init__.py", line 1, in <module>
    from toyz.web import app
  File "/usr/lib/python2.6/site-packages/toyz-0.0.dev-py2.6.egg/toyz/web/app.py", line 24, in <module>
    from toyz.utils import core
  File "/usr/lib/python2.6/site-packages/toyz-0.0.dev-py2.6.egg/toyz/utils/__init__.py", line 11, in <module>
    from toyz.utils import io
  File "/usr/lib/python2.6/site-packages/toyz-0.0.dev-py2.6.egg/toyz/utils/io.py", line 584
    file_options = {k:v for k,v in file_options.items() if k not in remove}
                          ^
SyntaxError: invalid syntax

Dependency on importlib module

toyz seems to depend on importlib, but importlib is not installed along with toyz.

Loading dependencies, please wait...
Traceback (most recent call last):
  File "/usr/bin/toyz", line 5, in <module>
    pkg_resources.run_script('toyz==0.0.dev', 'toyz')
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.6/site-packages/toyz-0.0.dev-py2.6.egg/EGG-INFO/scripts/toyz", line 7, in <module>
    from toyz.web.app import init_web_app
  File "/usr/lib/python2.6/site-packages/toyz-0.0.dev-py2.6.egg/toyz/__init__.py", line 1, in <module>
    from toyz import web
  File "/usr/lib/python2.6/site-packages/toyz-0.0.dev-py2.6.egg/toyz/web/__init__.py", line 1, in <module>
    from toyz.web import app
  File "/usr/lib/python2.6/site-packages/toyz-0.0.dev-py2.6.egg/toyz/web/app.py", line 12, in <module>
    import importlib

Running pip install importlib fixes the broken dependency, but it would be nice if this happened automatically.

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.