Skip to content

setup import missing? #3

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

Open
potatowave opened this issue Feb 21, 2019 · 2 comments
Open

setup import missing? #3

potatowave opened this issue Feb 21, 2019 · 2 comments

Comments

@potatowave
Copy link

Hello,

Trying to run config.py I ran into NameError: name 'setup' is not defined

I added from nanoleaf.setup import setup to config.py but still reached the following error:

/usr/local/lib/python3.7/site-packages/setuptools/dist.py:484: UserWarning: The version specified ('') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  "details." % self.metadata.version
usage: config.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: config.py --help [cmd1 cmd2 ...]
   or: config.py --help-commands
   or: config.py cmd --help

error: no commands supplied

I'm wondering if this is an environmental issue. Something missing in my environment that isn't included in the setup?

I've tried it on Mac OS and in an Ubuntu VM.

@Perfect5th
Copy link

Perfect5th commented Feb 21, 2019

Looks like adding from nanoleaf.nanoleaf import setup to config.py fixes it for me.

The further error you're seeing looks more like an issue with your environment.

@potatowave
Copy link
Author

@tendermario was able to take this a little further by installing pipenv and changing the pip version.

You can reach his fork here: https://github.com/tendermario/haller

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