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

ImportError: No module named 'treedict.treedict' #8

Open
dessant opened this issue Jun 1, 2014 · 7 comments
Open

ImportError: No module named 'treedict.treedict' #8

dessant opened this issue Jun 1, 2014 · 7 comments

Comments

@dessant
Copy link

dessant commented Jun 1, 2014

I have installed the master branch with pip, cython was not used. I get this error with python 3.4 on windows:

from treedict import TreeDict

Traceback (most recent call last):
  File "C:\prs\main\test_2.py", line 165, in <module>
    from treedict import TreeDict
  File "C:\dev\python\lib\site-packages\treedict\__init__.py", line 1, in <module>
    from .treedict import TreeDict, getTree, treeExists, HashError
ImportError: No module named 'treedict.treedict'
@hoytak
Copy link
Owner

hoytak commented Oct 1, 2014

Hello dessant,

Apologies about the late reply -- I recently started a job, and only now am getting back to maintaining my open source projects.

Did you get your question answered? I'm not sure what the problem would be.

-- Hoyt

@royw
Copy link

royw commented Jan 22, 2015

I hit the same problem with python 2.6, 2.7, 3.3, 3.4 virtualenvs. What was happening is the old version on pypi is treedict-0.14.tar.gz while the latest version with python 3 support is treedict-0.2.2.tar.gz. Pip says 14 > 2 so installs the old. Work around is to explicitly "pip install treedict==0.2.2".
HTH

@hoytak
Copy link
Owner

hoytak commented Jan 22, 2015

Oh, oops! It was supposed to be 0.1.4. I'll try to do an update to 1.0
soon then.

-- Hoyt

++++++++++++++++++++++++++++++++++++++++++++++++

  • Hoyt Koepke
  • Data Scientist at GraphLab
  • hoytak@gmail.com
    ++++++++++++++++++++++++++++++++++++++++++

On Thu, Jan 22, 2015 at 1:49 PM, Roy Wright notifications@github.com
wrote:

I hit the same problem with python 2.6, 2.7, 3.3, 3.4 virtualenvs. What
was happening is the old version on pypi is treedict-0.14.tar.gz while the
latest version with python 3 support is treedict-0.2.2.tar.gz. Pip says 14

2 so installs the old. Work around is to explicitly "pip install
treedict==0.2.2".
HTH


Reply to this email directly or view it on GitHub
#8 (comment).

@raunilillemets
Copy link

Had the same problem. Command "pip install treedict==0.2.2" helped. Any chance that this will be fixed soon?

@alertedsnake
Copy link

I'm also having the same version trying to install via pip using the Github repo as my source, as well as building with "python ./setup.py install" in a directory - even when using the 0.2.2 .tar.gz file fetched off pypi.

Turns out this is a little weird. If you build and 'setup.py install' then you can't "import treedict" while you're in that same directory. change directory elsewhere, no worries.

@frank-lzh
Copy link

Came across the same problem with python3 in Jupyter notebook, solved by "pip3 install treedict==0.2.2"

@alertedsnake
Copy link

alertedsnake commented Apr 20, 2018 via email

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

6 participants