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

conda package of fredapi will not import #3

Closed
ralexx opened this issue May 13, 2015 · 4 comments
Closed

conda package of fredapi will not import #3

ralexx opened this issue May 13, 2015 · 4 comments

Comments

@ralexx
Copy link

ralexx commented May 13, 2015

I wanted to use fredapi in my Anaconda installation so I made a conda skeleton from the PyPI package and then built the skeleton. The conda build script was successful and the new fredapi package tested OK:

#truncated
===== testing package: fredapi-0.3.4-py27_0 =====
import: u'fredapi'
===== fredapi-0.3.4-py27_0 OK =====
TEST END: fredapi-0.3.4-py27_0

Then I tried installing and this, too, appeared successful.

$ conda install --use-local fredapi
Fetching package metadata: ........
Solving package specifications: .
Package plan for installation in environment /usr/local/share/anaconda:

The following NEW packages will be INSTALLED:

    fredapi: 0.3.4-py27_0

Linking packages ...
[      COMPLETE      ]|###################################################| 100%

$ conda list fredapi
# packages in environment at /usr/local/share/anaconda:
#
fredapi                   0.3.4                    py27_0

But the interpreter in this environment does't recognize the new conda package.

Python 2.7.9 |Anaconda 2.2.0 (x86_64)| (default, Dec 15 2014, 10:37:34) 
IPython 3.1.0 -- An enhanced Interactive Python.

In [1]: import fredapi
Traceback (most recent call last):

  File "<ipython-input-1-462d15ed0c18>", line 1, in <module>
    import fredapi

ImportError: No module named fredapi

None of conda's troubleshooting suggestions apply to this case. Do you have any suggestions for properly building a conda package for fredapi?

@mortada
Copy link
Owner

mortada commented May 15, 2015

@ralexx are you able to actually run conda skeleton pypi fredapi? I get an import error when I do that. I opened another issue referencing this, hopefully the conda guys will be able to help

@mortada
Copy link
Owner

mortada commented May 19, 2015

@ralexx so I can't run conda skeleton pypi fredapi but I'm able to just create the recipes from scratch and that seems to work fine. Please see this PR: conda-archive/conda-recipes#304

those recipe files work for me, including everything from build/install/import

@mortada
Copy link
Owner

mortada commented May 21, 2015

I believe this should be resolved now, please reopen if now, thanks

@mortada mortada closed this as completed May 21, 2015
@benmbrennan
Copy link

I'm still having this issue and what's written in this thread makes no sense to me. Why isn't there an easy hassle free way to import FRED data into Python?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants