Giter Club home page Giter Club logo

Comments (8)

marcharper avatar marcharper commented on July 17, 2024

Ok, a map(...) needed to be list(map(...)) for python 3 (in the data loading function of examples). All the examples run in python 3.4 now.

from python-ternary.

marcharper avatar marcharper commented on July 17, 2024

I'm not sure why you got that specific error, it doesn't happen for me (now)

Python 3.4.3 (default, Mar 26 2015, 22:03:40) 
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ternary
>>> ternary.figure()
(<matplotlib.figure.Figure object at 0x7f86d03c2dd8>, TernaryAxesSubplot: -9223363273295329441)
>>> 

If you still have this issue please let me know!

from python-ternary.

mmngreco avatar mmngreco commented on July 17, 2024

I try again with the same result. so I after that, try re-install the package and now works correctly! :-)
Thanks!

from python-ternary.

marcharper avatar marcharper commented on July 17, 2024

Great, thanks for opening the issue.

from python-ternary.

sshojiro avatar sshojiro commented on July 17, 2024

I have encountered the same issue, even after re-install of the package via pip.
Could anyone help me? Thank you in advance.

$ python -c 'import ternary; ternary.figure()'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'ternary' has no attribute 'figure'

Version Info.

  • python: Python 3.6.6 :: Anaconda, Inc.
  • python-ternary: 1.0.6

from python-ternary.

sshojiro avatar sshojiro commented on July 17, 2024

I fixed the issue manually: I downloaded the repo to my local machine and copy the ternary/ directory to my workplace.

As long as I see, the package via pip or conda does not work right now. You should check what is happening on.

from python-ternary.

mmngreco avatar mmngreco commented on July 17, 2024

I have encountered the same issue, even after re-install of the package via pip.
Could anyone help me? Thank you in advance.

I couldn't replicate the problem, it works well for me. What I did:

  1. create new environment: conda create -n tst python=3.6
  2. activate the environment: conda activate tst
  3. install from pip: pip install python-ternary
  4. test: python -c 'import ternary; ternary.figure()'

my environemtent at the end:

$ python -s -m pip freeze
certifi==2019.9.11
cycler==0.10.0
kiwisolver==1.1.0
matplotlib==3.1.1
numpy==1.17.2
python-dateutil==2.8.0
python-ternary==1.0.6

Options to take into account when you reinstalls packages:

# pip's way
pip install python-ternary --force-reinstall --no-cache-dir

from python-ternary.

marcharper avatar marcharper commented on July 17, 2024

Thanks @mmngreco ! Let's us know if you still have issues, @sshojiro .

from python-ternary.

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.