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

Installation failure #33

Closed
Mx74 opened this issue Mar 26, 2018 · 5 comments
Closed

Installation failure #33

Mx74 opened this issue Mar 26, 2018 · 5 comments

Comments

@Mx74
Copy link

Mx74 commented Mar 26, 2018

Hello,

I have to install pivy for a Freecad workbench, but I have some trouble:
Ubuntu 17.10, fresh install:
I install freecad-daily.
Then:
pip install https://github.com/FreeCAD/pivy/archive/master.zip gives the following error:

` ~~~ HISSSSSSSSSS ~~~
Welcome to Pivy 0.6.3!
Building Pivy has never been so much fun!

Platform...linux2
Python version...2.7.14
Checking for swig...
not found.
Checking for swig3.0...
not found.

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-JRYOeQ-build/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-oYhwod-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-JRYOeQ-build/
`

Obviously, swig is missing, I install it, but then:

`Installing collected packages: Pivy
Running setup.py install for Pivy ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-tPN9u6-build/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-Cn1XBM-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build

                            _____
                        .-'`     '.
                     __/  __       \
                    /  \ /  \       |    ___
                   | /`\| /`\|      | .-'  /^\/^\
                   | \(/| \(/|      |/     |) |)|
                  .-\__/ \__/       |      \_/\_/__..._
          _...---'-.                /   _              '.
         /,      ,             \   '|  `\                \
        | ))     ))           /`|   \    `.       /)  /) |
        | `      `          .'       |     `-._         /
        \                 .'         |     ,_  `--....-'
         `.           __.' ,         |     / /`'''`
           `'-.____.-' /  /,         |    / /
               `. `-.-` .'  \        /   / |
                 `-.__.'|    \      |   |  |-.
                    _.._|     |     /   |  |  `'.
              .-''``    |     |     |   /  |     `-.
           .'`         /      /     /  |   |        '.
         /`           /      /     |   /   |\         \
        /            |      |      |   |   /\          |
       ||            |      /      |   /     '.        |
       |\            \      |      /   |       '.      /
       \ `.           '.    /      |    \        '---'/
        \  '.           `-./        \    '.          /
         '.  `'.            `-._     '.__  '-._____.'--'''''--.
           '-.  `'--._          `.__     `';----`              \
              `-.     `-.          `.''```                     ;
                 `'-..,_ `-.         `'-.                     /
                        '.  '.           '.                 .'


                            ~~~ HISSSSSSSSSS ~~~
                           Welcome to Pivy 0.6.3!
                 Building Pivy has never been so much fun!


Platform...linux2
Python version...2.7.14
Checking for swig...
'/usr/bin/swig'
Checking for SWIG version...
3.0.10
calling: cmake .
error: [Errno 2] No such file or directory

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-tPN9u6-build/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-Cn1XBM-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-tPN9u6-build/
`

@looooo
Copy link
Collaborator

looooo commented Mar 26, 2018

thanks for reporting. I guess the problem is that you are running the install not from the source dir. I pushed a fix for this issue. Maybe you can try.
also note that coin has to be build with cmake.

@Mx74
Copy link
Author

Mx74 commented Mar 26, 2018

I tried right now, and the error message changed:

calling: cmake /tmp/pip-FcTt6n-build
error: [Errno 2] No such file or directory

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-FcTt6n-build/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-DRVzGy-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-FcTt6n-build/

@Mx74
Copy link
Author

Mx74 commented Mar 26, 2018

what do you mean by

also note that coin has to be build with cmake.

?

@looooo
Copy link
Collaborator

looooo commented Mar 26, 2018

maybe cmake is missing:

sudo apt-get install cmake

@looooo
Copy link
Collaborator

looooo commented Mar 26, 2018

regarding coin: coin3d offers cmake as build-system. To support qt5 I updated pivy to work with coin build with cmake. Therefor it's not possible anymore to build pivy with coin created with autotools..

If you don' care about qt5 /cmake you can try the following:

pip install https://github.com/FreeCAD/pivy/archive/0.6.2.tar.gz

@looooo looooo closed this as completed in 6551b46 May 7, 2018
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