Skip to content

0.4.0.x Install issue on FreeBSD #74

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

Closed
hoopty opened this issue Apr 24, 2017 · 5 comments
Closed

0.4.0.x Install issue on FreeBSD #74

hoopty opened this issue Apr 24, 2017 · 5 comments

Comments

@hoopty
Copy link
Contributor

hoopty commented Apr 24, 2017

System OS details:

hass@hass ~ [hass] $uname -a
FreeBSD hass.local 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 08:48:40 UTC 2017     [email protected]:/usr/obj/usr/src/sys/GENERIC  amd64

Python info:

Python 3.5.3 (default, Apr 15 2017, 08:03:17) 
[GCC 4.2.1 Compatible FreeBSD Clang 3.8.0 (tags/RELEASE_380/final 262564)] on freebsd11
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print (sys.platform);
freebsd11

Error:

hass@hass ~ [hass] $pip3 install python_openzwave
Collecting python_openzwave
  Downloading python_openzwave-0.4.0.29.zip (133kB)
    100% |################################| 143kB 4.6MB/s 
    Complete output from command python setup.py egg_info:
    ImportError in : from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
    NameError in : class bdist_wheel(_bdist_wheel) - Use bdist_egg instead
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-9mb46u89/python-openzwave/setup.py", line 43, in <module>
        print(current_template.ctx)
      File "/tmp/pip-build-9mb46u89/python-openzwave/pyozw_setup.py", line 196, in ctx
        self._ctx = self.get_context()
      File "/tmp/pip-build-9mb46u89/python-openzwave/pyozw_setup.py", line 673, in get_context
        ctx = system_context(ctx, openzwave=self.openzwave, static=True)
      File "/tmp/pip-build-9mb46u89/python-openzwave/pyozw_setup.py", line 178, in system_context
        raise RuntimeError("Can't detect plateform")
    RuntimeError: Can't detect plateform
    <pyozw_setup.EmbedTemplate object at 0x8061596a0>
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-9mb46u89/python-openzwave/
@bibi21000
Copy link
Member

Could you test the 0.4.0.30 ?

@hoopty
Copy link
Contributor Author

hoopty commented Apr 25, 2017

Better, but still has errors, but the issue now appears to be in the libopenzwave, not particularly the python build. In case it is related, keep in mind that FreeBSD's native make is not apporiate and gmake is what's used.

Here's a build log for reference:
https://gist.github.com/hoopty/901b4f7335739448808b6a839134aee3

@hoopty
Copy link
Contributor Author

hoopty commented Apr 25, 2017

OK, I changed my pyozw_setup.py to execute gmake instead of make and I removed 'resolv' from the freebsd definition of ctx['libraries'] and the build works. PR incoming...

@bibi21000
Copy link
Member

I've applied your PR in 0.4.0.31.
Could you try it and update your post in #73
TIA

@hoopty
Copy link
Contributor Author

hoopty commented Apr 25, 2017

It built & installed properly, closing. Thanks!

@hoopty hoopty closed this as completed Apr 25, 2017
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