Coder Social home page Coder Social logo

hb-config's People

Contributors

dongjunlee avatar

Stargazers

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

Watchers

 avatar  avatar

hb-config's Issues

Not work with python3.5?

It happens to be the error below.

allan@statnlp0:~/projects/partialner_pytorch$ python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.

from hbconfig import Config
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/hbconfig/init.py", line 40
raise FileNotFoundError(f"No such files start filename '{fname}'")
^
SyntaxError: invalid syntax
`

PyYAML yaml.load(input) Deprecation

I used hb-config in python3.7 environment and got the following errors:

/opt/conda/lib/python3.7/site-packages/hbconfig/__init__.py:66: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  return yaml.load(config)

and I checked PyYAML and found that it has been changed to the following format:

yaml.load(input, Loader=yaml.FullLoader)

Hoping you can upload the code.

Many thanks!

list index out of range error while running main.py

Hi DongjunLee,
My stack is python3.6
tensorflow1.4
hb-config0.3.3
pycharm IDE 2017
I am impressed by working with your code.I'm currently working with RNN.I have gone through your code which is written using High level API'S like Estimators,Dataset and Experiment,But i'm facing error while running main.py file as follows....

Traceback (most recent call last):
File "/home/PycharmProjects/conversation-tensorflow-master/main.py", line 38, in
Config(args.config)
File "/home/virtual-3.6/lib/python3.6/site-packages/hbconfig/init.py", line 23, in call
self.config = self.read_file(fname)
File "/home/virtual-3.6/lib/python3.6/site-packages/hbconfig/init.py", line 32, in read_file
config_file = config_files[0]
IndexError: list index out of range

Kindly resolve this issue at the earliest..
Thanks in advance.

hbconfig/__init__.py", line 40

when i from hb_config import Config, get an error:
Traceback (most recent call last):
File "", line 1, in
File "/home/yangjing/.local/lib/python3.5/site-packages/hbconfig/init.py", line 40
raise FileNotFoundError(f"No such files start filename '{fname}'")
i cannot find reason....

KeyError: '__deepcopy__'

when I'm trying to send the Config as a parameter to another function, sometimes it brings up the error.

Here's a suggestion

suggest convert the python print function to low version, eg:
print(f’abc{value}’)
to
print(‘abc{}’.format(value))
so it can support not only python3.6 but other versions as well.

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.