GithubHelp home page GithubHelp logo

Comments (10)

patricksnape avatar patricksnape commented on June 16, 2024 1

That's strange, seems like it's finding everything.

To clarify, compare your conda list output with @jabooth output. All of yours are from the conda-forge channel whereas @jabooth are from defaults. Looks like you added conda-forge to your .condarc file. You can get a clean environment, like I'm talking about, by overriding this with something like

conda install -c defaults -c menpo dlib --override-channels

I'm on holiday right now but i will investigate the clash with conda-forge when I return.

from conda-dlib.

jabooth avatar jabooth commented on June 16, 2024

To be clear, you only need to follow those instructions if you want to manually rebuild this conda package yourself. To just use the result of this conda build all you need to do is:

> conda install -c menpo dlib

To install the resulting binary we have already built.

Are you sure you want to manually rebuild this yourself?

from conda-dlib.

rawmarshmellows avatar rawmarshmellows commented on June 16, 2024

I get this error:
(test) Kevins-MacBook-Pro:local kevinlu$ python -c "import dlib" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named 'dlib'

When I run the command above

from conda-dlib.

jabooth avatar jabooth commented on June 16, 2024

So in a complete example you did something like:

> conda create -n test python
> source activate test
(test) > conda install -c menpo dlib
(test) > python -c "import dlib"

And you encountered an ImportError? If so:

  1. What OS are you using?
  2. What version of Python are you using?

from conda-dlib.

rawmarshmellows avatar rawmarshmellows commented on June 16, 2024

Yes that's what I did, I'm using OS version 10.12.3 and I'm using Python 3.5.3

from conda-dlib.

jabooth avatar jabooth commented on June 16, 2024

That's odd! Working fine for me:

screenshot 2017-03-21 12 57 36

Can you output two things:

  1. The output of conda list:
(test) > conda list
# packages in environment at /Users/jab08/miniconda/envs/test:
#
boost                     1.59.0                   py35_0    menpo
bzip2                     1.0.6                         3
dlib                      18.18                    py35_2    menpo
libpng                    1.6.27                        0
mkl                       2017.0.1                      0
numpy                     1.12.1                   py35_0
openssl                   1.0.2k                        1
pip                       9.0.1                    py35_1
python                    3.5.3                         1
readline                  6.2                           2
setuptools                27.2.0                   py35_0
sqlite                    3.13.0                        0
tk                        8.5.18                        0
wheel                     0.29.0                   py35_0
xz                        5.2.2                         1
zlib                      1.2.8                         3
  1. The header that you see when you run python within the env:
(test) > python
Python 3.5.3 |Continuum Analytics, Inc.| (default, Mar  6 2017, 12:15:08)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

from conda-dlib.

rawmarshmellows avatar rawmarshmellows commented on June 16, 2024
  1. The output of conda list:
(test) Kevins-MBP:~ kevinlu$ conda list
# packages in environment at /Users/kevinlu/miniconda3/envs/test:
#
boost                     1.59.0                   py35_0    menpo
bzip2                     1.0.6                         0    conda-forge
ca-certificates           2017.1.23                     0    conda-forge
certifi                   2017.1.23                py35_0    conda-forge
dlib                      18.18                    py35_2    menpo
libpng                    1.6.28                        0    conda-forge
mkl                       2017.0.1                      0  
ncurses                   5.9                          10    conda-forge
numpy                     1.12.1                   py35_0  
openssl                   1.0.2h                        3    conda-forge
pip                       9.0.1                    py35_0    conda-forge
python                    3.5.3                         1    conda-forge
readline                  6.2                           0    conda-forge
setuptools                33.1.1                   py35_0    conda-forge
sqlite                    3.13.0                        1    conda-forge
tk                        8.5.19                        1    conda-forge
wheel                     0.29.0                   py35_0    conda-forge
xz                        5.2.2                         0    conda-forge
zlib                      1.2.11                        0    conda-forge
  1. The header when I run python
(test) Kevins-MBP:~ kevinlu$ python
Python 3.5.3 |Continuum Analytics, Inc.| (default, Mar  6 2017, 12:15:08) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

from conda-dlib.

patricksnape avatar patricksnape commented on June 16, 2024

Odds on its the conda-forge libpng. I'm afraid this menpo package isn't guarantee to play well with conda-forge. To truly test this you can try

otool -L miniconda/envs/test/lib/python-3.5/site-packages/dlib.so

Note that path is almost definitely incorrect as its off the top of my head. But it's something like that. You can paste the output here and we can confirm the issue. But you should also try installing dlib into a totally clean environment using only menpo and defaults.

from conda-dlib.

rawmarshmellows avatar rawmarshmellows commented on June 16, 2024

Here is the output:

(test) Kevins-MBP:site-packages kevinlu$ otool -L /Users/kevinlu/miniconda3/envs/test/lib/python3.5/site-packages/dlib.so 
/Users/kevinlu/miniconda3/envs/test/lib/python3.5/site-packages/dlib.so:
	@rpath/dlib.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libboost_python.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libpython3.5m.dylib (compatibility version 3.5.0, current version 3.5.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
	@rpath/libpng16.16.dylib (compatibility version 39.0.0, current version 39.0.0)
	@rpath/libmkl_rt.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 104.1.0)

And also test is a completely clean environment with only menpo installed!

from conda-dlib.

rawmarshmellows avatar rawmarshmellows commented on June 16, 2024

Oh that seemed to do the job, I guess it was the channels that were screwing up everything! Thank you so much! Also if it isn't too much to ask what seemed to be the problem?

from conda-dlib.

Related Issues (11)

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.