Git Product home page Git Product logo

Comments (9)

wvangeit avatar wvangeit commented on August 21, 2024

Could you run the following:

pip freeze
pip uninstall efel
pip install -v -v -v efel

and send us the output, thanks.
On which type of system are you trying to install ?

from efel.

mgeplf avatar mgeplf commented on August 21, 2024

Based on the path, I believe it's a windows or OSX machine: '/Users'

@russelljjarvis: eFEL includes an extension library, so you'll have to have a C++ compiler installed that works with your python installation.

If it's a OSX machine, please make sure you have a compiler installed (possibly w/ xcode? - I will have to look into that)

If you're using the windows python install that comes from www.python.org, I have had success installing on windows and python27 using the Microsoft supplied compiler: https://www.microsoft.com/en-us/download/details.aspx?id=44266

from efel.

wvangeit avatar wvangeit commented on August 21, 2024

@russelljjarvis could it be that you were in the source directory of efel when you started python and imported efel ? The issue is likely caused by this situation. When you run 'import efel' in the source directory, python will give priority to loading the directory called 'efel' instead of the installed efel package. The directory doesn't have a compiled cppcore package yet.

from efel.

wvangeit avatar wvangeit commented on August 21, 2024

eFEL now prints a warning in case you are trying to import it from such a directory:
#61

from efel.

russelljjarvis avatar russelljjarvis commented on August 21, 2024

Sorry for the delay. Yes I am runnin eFEL on a OSX machine. I believe it has all of compilers to compile C++ (such as Xcode, and clang etc see outputs below).

eFEL works okay on a different Ubuntu machine, and I think EFEL worked okay on this machine in the past. Actually... Initially I had executed $git clone efel, and I had started to develop inside ~/git/eFEL/examples/deap . eFEL probably only stopped importing properly when I moved to a different path which I have not yet done on Ubuntu.

Russells-MacBook-Pro:DEAP_applied kappa$ sudo pip freeze
Babel==1.3
Brian2==2.0b3
Cheetah==2.4.4
Cython==0.23.4
Jinja2==2.7.3
LFPy==1.0
Markdown==2.5.2
MarkupSafe==0.23
NEURON==7.4
OSBModelValidation==0.1.1
PyLEMS==0.4.5
PyRx==0.3.0
PyYAML==3.11
Pygments==2.0.2
Sphinx==1.3.1
airspeed==0.5.4.dev20150515
alabaster==0.7.4
allensdk==0.10.1
argh==0.26.1
argparse==1.4.0
backports.ssl-match-hostname==3.4.0.2
bluepyopt==1.1.127
brian==1.4.1
bunch==1.0.1
cachetools==0.8.0
certifi==14.05.14
colorbrewer==1.0.0
csa==0.1.6
cv2==1.0
cypy==0.1.0
d3py==0.2.3
deap==1.1.0
decorator==4.0.9
docopt==0.6.2
docutils==0.12
efel==2.10.83
enum34==1.1.2
funcsigs==1.0.0
functools32==3.2.3.post1
futures==3.0.5
glob2==0.4.1
gnureadline==6.3.3
greenlet==0.4.9
h5py==2.5.0
inspyred==1.0.1
ipykernel==4.3.1
ipyparallel==5.0.1
ipython==3.1.0
jsonschema==2.5.0
jupyter-client==4.2.2
libNeuroML==0.2.11
llvmlite==0.0.0
lxml==3.4.0
matplotlib==1.4.3
mercurial==3.1
mistune==0.5.1
mock==1.0.1
mpi4py==2.0.0
neo==0.3.3
nest==1.3.0
networkx==1.11
neurom==0.0.16
neuronunit==0.1.7.1
neurotune==0.2.1
nose==1.3.4
numba==0.26.0
numpy==1.10.4
numpydoc==0.5
optimizer==0.0.1alpha
ordereddict==1.1
pandas==0.17.1
pathlib==1.0.1
pathtools==0.1.2
plotly==1.10.0
ply==3.4
ptyprocess==0.5
pyNeuroML==0.1.7
pyelectro==0.1.6
pynrrd==0.1
pyparsing==2.0.3
python-dateutil==2.4.1
pytz==2014.10
pyzmq==14.6.0
quantities==0-unknown
regex==2014.12.24
requests==2.7.0
scikit-learn==0.17.1
scipy==0.16.1
sciunit==0.1.4.2
scoop==0.7.1.1
singledispatch==3.4.0.3
six==1.9.0
sklearn==0.0
snowballstemmer==1.2.0
sphinx-rtd-theme==0.1.8
sympy==0.7.6
terminado==0.5
tornado==4.1
vboxapi==1.0
watchdog==0.8.3
wsgiref==0.1.2
xlsx2csv==0.7.2
Russells-MacBook-Pro:DEAP_applied kappa$ sudo pip uninstall efel
Uninstalling efel:
/usr/local/lib/python2.7/site-packages/efel-2.10.83-py2.7.egg-info
/usr/local/lib/python2.7/site-packages/efel/DependencyV5.txt
/usr/local/lib/python2.7/site-packages/efel/init.py
/usr/local/lib/python2.7/site-packages/efel/init.pyc
/usr/local/lib/python2.7/site-packages/efel/_version.py
/usr/local/lib/python2.7/site-packages/efel/_version.pyc
/usr/local/lib/python2.7/site-packages/efel/api.py
/usr/local/lib/python2.7/site-packages/efel/api.pyc
/usr/local/lib/python2.7/site-packages/efel/cppcore.so
/usr/local/lib/python2.7/site-packages/efel/cppcore/DependencyTree.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/FillFptrTable.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/Global.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/LibV1.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/LibV2.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/LibV3.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/LibV4.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/LibV5.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/Utils.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/cfeature.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/eFELLogger.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/efel.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/mapoperations.h
/usr/local/lib/python2.7/site-packages/efel/cppcore/types.h
/usr/local/lib/python2.7/site-packages/efel/io.py
/usr/local/lib/python2.7/site-packages/efel/io.pyc
/usr/local/lib/python2.7/site-packages/efel/settings.py
/usr/local/lib/python2.7/site-packages/efel/settings.pyc
Proceed (y/n)? y
Successfully uninstalled efel
Russells-MacBook-Pro:DEAP_applied kappa$ sudo pip install -v -v -v efel
Downloading/unpacking efel
Getting page https://pypi.python.org/simple/efel/
URLs to search for versions for efel:

from efel.

russelljjarvis avatar russelljjarvis commented on August 21, 2024

Confirming that it only works from within a path in the source code directory, not the other way around.

Maybe its just a matter of creating symbolic links?

In [2]: import efel
In [3]: pwd
Out[3]: u'/Users/kappa/git/eFEL/examples/deap'

New Terminal in different directory.
In [2]: pwd
Out[2]: u'/Users/kappa/git/DEAP_applied'

In [3]: import efel

ImportError Traceback (most recent call last)
in ()
----> 1 import efel

/Users/kappa/git/DEAP_applied/efel/init.py in ()
21
22 from efel.settings import Settings
---> 23 from efel.api import *
24 import efel.io
25

/Users/kappa/git/DEAP_applied/efel/api.py in ()
32
33 import efel
---> 34 import efel.cppcore as cppcore
35
36 _settings = efel.Settings()
ImportError: No module named cppcore

from efel.

wvangeit avatar wvangeit commented on August 21, 2024

Mmm, so in the above log I see:
/Users/kappa/git/DEAP_applied/efel/init.py in ()
so it looks like there is an 'efel' subdirectory in /Users/kappa/git/DEAP_applied/
Could you try to run 'import efel' from a directory without such a subdirectory ? (let's say the root of your home directory)

from efel.

wvangeit avatar wvangeit commented on August 21, 2024

you might also want to run 'pip install efel --upgrade', then you get a specific warning message when this error occurs.

from efel.

wvangeit avatar wvangeit commented on August 21, 2024

@russelljjarvis did you have a chance to try to suggestions I made above ?
Thanks.

from efel.

Related Issues (20)

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.