Skip to content
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

Tests are failing #8

Closed
bbinet opened this issue Mar 22, 2016 · 2 comments
Closed

Tests are failing #8

bbinet opened this issue Mar 22, 2016 · 2 comments

Comments

@bbinet
Copy link
Contributor

bbinet commented Mar 22, 2016

When I try to run the tests on Linux (Debian) laptop, I get the following error:

$ pysunspec_test.py
pySunSpec version: 1.0.7
Test device path: /home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/lib/python2.7/site-packages/sunspec/core/test/devices

Traceback (most recent call last):
  File "/home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/bin/pysunspec_test.py", line 13, in <module>
    test.test_all()
  File "/home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/local/lib/python2.7/site-packages/sunspec/core/test/test_all.py", line 42, in test_all
    (count_run, count_passed, count_failed) = module.test_all(pathlist, stop_on_failure)
  File "/home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/lib/python2.7/site-packages/sunspec/core/test/test_device.py", line 561, in test_all
    if test(pathlist) is True:
  File "/home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/lib/python2.7/site-packages/sunspec/core/test/test_device.py", line 402, in test_device_from_pics
    d1.from_pics(filename='pics_test_device_1.xml', pathlist=pathlist)
  File "/home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/local/lib/python2.7/site-packages/sunspec/core/device.py", line 111, in from_pics
    raise SunSpecError('Error loading PICS: %s' % str(e))
@bobfox
Copy link
Contributor

bobfox commented Mar 22, 2016

The github generated source zip file does not contain the SunSpec
information models as they are contained in another repository. If you
installed from the github generated source zip file that may be the issue.

Try downloading the pysunspec-1.0.7.zip from the release and using
setup.py to install.

On 3/22/16 3:57 AM, Bruno Binet wrote:

When I try to run the tests on Linux (Debian) laptop, I get the
following error:

|$ pysunspec_test.py pySunSpec version: 1.0.7 Test device path:
/home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/lib/python2.7/site-packages/sunspec/core/test/devices
Traceback (most recent call last): File
"/home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/bin/pysunspec_test.py",
line 13, in test.test_all() File
"/home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/local/lib/python2.7/site-packages/sunspec/core/test/test_all.py",
line 42, in test_all (count_run, count_passed, count_failed) =
module.test_all(pathlist, stop_on_failure) File
"/home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/lib/python2.7/site-packages/sunspec/core/test/test_device.py",
line 561, in test_all if test(pathlist) is True: File
"/home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/lib/python2.7/site-packages/sunspec/core/test/test_device.py",
line 402, in test_device_from_pics
d1.from_pics(filename='pics_test_device_1.xml', pathlist=pathlist)
File
"/home/bruno/.virtualenvs/tmp-d3111b3cabc0fa7b/local/lib/python2.7/site-packages/sunspec/core/device.py",
line 111, in from_pics raise SunSpecError('Error loading PICS: %s' %
str(e)) |


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#8

@bbinet
Copy link
Contributor Author

bbinet commented Mar 22, 2016

I confirm that tests pass when using the release zip.
Thanks.

@bbinet bbinet closed this as completed Mar 22, 2016
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