fred3m / toyz Goto Github PK
View Code? Open in Web Editor NEWToyz for Data Analysis and Reduction
Home Page: http://fred3m.github.io/toyz/
License: BSD 3-Clause "New" or "Revised" License
Toyz for Data Analysis and Reduction
Home Page: http://fred3m.github.io/toyz/
License: BSD 3-Clause "New" or "Revised" License
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
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.
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?
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?
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.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.