Giter Site home page Giter Site logo

Comments (10)

moritzmcgarrie avatar moritzmcgarrie commented on May 4, 2024 1

Solved my own problem: So even though I had python --version
Python 2.7.10 , when I type pop install it must be installing for 3.4...

Using (https://docs.python.org/2/installing/):
python2 -m pip install SomePackage # default Python 2
python2.7 -m pip install SomePackage # specifically Python 2.7
python3 -m pip install SomePackage # default Python 3
python3.4 -m pip install SomePackage # specifically Python 3.4

I can change plotly specifically for version 2.7 and now works fine.

from plotly.py.

chriddyp avatar chriddyp commented on May 4, 2024

Thanks for reporting! I thought that this line: https://github.com/plotly/python-api/blob/master/setup.py#L37 would take care the dependency, but apparently not. @theengineear any ideas?

from plotly.py.

hnykda avatar hnykda commented on May 4, 2024

Here is full pip.log. I doubt it will help, since there is nothing more interesting... I know that distutils hasn't support install_requires. Cannot be somehow used internally instead of new setuptools?

By the way I'm using python 3.4.0-3 on Arch Linux.

------------------------------------------------------------
/home/dan/prac/.virtualenvs/work/bin/pip run on Thu May 15 14:01:29 2014
Downloading/unpacking plotly
  Getting page https://pypi.python.org/simple/plotly/
  URLs to search for versions for plotly:
  * https://pypi.python.org/simple/plotly/
  Analyzing links from page https://pypi.python.org/simple/plotly/
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.2.tar.gz#md5=7f6aacbb5b79ca1f209e0f340a00a889 (from https://pypi.python.org/simple/plotly/), version: 0.2
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.3.tar.gz#md5=20592159f7d0c79cae16aa67c0a6fd39 (from https://pypi.python.org/simple/plotly/), version: 0.3
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.4.tar.gz#md5=fd5d65a5fd81c9f5a03f7ed3f24f19e5 (from https://pypi.python.org/simple/plotly/), version: 0.4
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.1.tar.gz#md5=e3800cf4d2ec1a4d828af721ca5c4f9e (from https://pypi.python.org/simple/plotly/), version: 0.5.1
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.10.tar.gz#md5=de1ed0cc3ea0565b86f50d71d87e49f3 (from https://pypi.python.org/simple/plotly/), version: 0.5.10
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.11.tar.gz#md5=49866c645f57e019eae53d57af6ffe2e (from https://pypi.python.org/simple/plotly/), version: 0.5.11
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.12.tar.gz#md5=b60774780099ffddbc4ce045efdd3d30 (from https://pypi.python.org/simple/plotly/), version: 0.5.12
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.13.tar.gz#md5=274e249e31c32e8f86fb2e9279fcadd4 (from https://pypi.python.org/simple/plotly/), version: 0.5.13
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.2.tar.gz#md5=7cdf5c611cd0f22d45e900bd133c4aef (from https://pypi.python.org/simple/plotly/), version: 0.5.2
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.3.tar.gz#md5=0e58df9e1ccf6679ef4f321134a17f38 (from https://pypi.python.org/simple/plotly/), version: 0.5.3
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.4.tar.gz#md5=80eda762513d56386c328e93c0d28f52 (from https://pypi.python.org/simple/plotly/), version: 0.5.4
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.5.tar.gz#md5=fbbec7ce0a029ddc6e8b7d90e741a552 (from https://pypi.python.org/simple/plotly/), version: 0.5.5
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.6.tar.gz#md5=cf061ced9337663f80ebfd027274443e (from https://pypi.python.org/simple/plotly/), version: 0.5.6
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.7.tar.gz#md5=881fa65fc9c65883e5ccae4dacc5d483 (from https://pypi.python.org/simple/plotly/), version: 0.5.7
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.8.tar.gz#md5=0f3dec8da1ef5f3a5e01f7274b6d9a5d (from https://pypi.python.org/simple/plotly/), version: 0.5.8
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.9.tar.gz#md5=d149e21f849b6a1cbd589d5fa94127bd (from https://pypi.python.org/simple/plotly/), version: 0.5.9
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-0.5.tar.gz#md5=b7297d72fdb7b7dccf7415d1a945ba4d (from https://pypi.python.org/simple/plotly/), version: 0.5
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-1.0.0.tar.gz#md5=5cc0b6eb2ae1243d8e3274115c3b8f07 (from https://pypi.python.org/simple/plotly/), version: 1.0.0
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-1.0.1.tar.gz#md5=78227f846a07d9900023d585e77654fa (from https://pypi.python.org/simple/plotly/), version: 1.0.1
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-1.0.10.tar.gz#md5=824ea8a9b9b9c1265bb5c48240ee29b8 (from https://pypi.python.org/simple/plotly/), version: 1.0.10
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-1.0.2.tar.gz#md5=d978ae2073b9626e83dc1b40509b5515 (from https://pypi.python.org/simple/plotly/), version: 1.0.2
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-1.0.3.tar.gz#md5=a38f7f0c26311b5ec0a0ce14ebdb182e (from https://pypi.python.org/simple/plotly/), version: 1.0.3
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-1.0.4.tar.gz#md5=8914db723e51668e0f0f65727321b142 (from https://pypi.python.org/simple/plotly/), version: 1.0.4
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-1.0.5.tar.gz#md5=65405f053a0ae336664b66c700d51a0d (from https://pypi.python.org/simple/plotly/), version: 1.0.5
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-1.0.6.tar.gz#md5=3cb8ee4c63c0f11f00825003c8d22a5e (from https://pypi.python.org/simple/plotly/), version: 1.0.6
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-1.0.7.tar.gz#md5=8d1bf5bd5c69016dd65bfd6f25c7f87a (from https://pypi.python.org/simple/plotly/), version: 1.0.7
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-1.0.8.tar.gz#md5=ad2ff2bcce728ed031c9569f2c80d058 (from https://pypi.python.org/simple/plotly/), version: 1.0.8
    Found link https://pypi.python.org/packages/source/p/plotly/plotly-1.0.9.tar.gz#md5=9c9b5bee09dcdb35f48055a1dcf79c69 (from https://pypi.python.org/simple/plotly/), version: 1.0.9
  Using version 1.0.10 (newest of versions: 1.0.10, 1.0.9, 1.0.8, 1.0.7, 1.0.6, 1.0.5, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0, 0.5.13, 0.5.12, 0.5.11, 0.5.10, 0.5.9, 0.5.8, 0.5.7, 0.5.6, 0.5.5, 0.5.4, 0.5.3, 0.5.2, 0.5.1, 0.5, 0.4, 0.3, 0.2)
  Downloading from URL https://pypi.python.org/packages/source/p/plotly/plotly-1.0.10.tar.gz#md5=824ea8a9b9b9c1265bb5c48240ee29b8 (from https://pypi.python.org/simple/plotly/)
  Running setup.py (path:/home/dan/prac/.virtualenvs/work/build/plotly/setup.py) egg_info for package plotly
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/home/dan/prac/.virtualenvs/work/build/plotly/setup.py", line 3, in <module>
        exec (open('plotly/version.py').read())
      File "<string>", line 3, in <module>
    ImportError: No module named 'requests'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/home/dan/prac/.virtualenvs/work/build/plotly/setup.py", line 3, in <module>

    exec (open('plotly/version.py').read())

  File "<string>", line 3, in <module>

ImportError: No module named 'requests'

----------------------------------------
Cleaning up...
  Removing temporary dir /home/dan/prac/.virtualenvs/work/build...
Command python setup.py egg_info failed with error code 1 in /home/dan/prac/.virtualenvs/work/build/plotly
Exception information:
Traceback (most recent call last):
  File "/home/dan/prac/.virtualenvs/work/lib/python3.4/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/home/dan/prac/.virtualenvs/work/lib/python3.4/site-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/home/dan/prac/.virtualenvs/work/lib/python3.4/site-packages/pip/req.py", line 1229, in prepare_files
    req_to_install.run_egg_info()
  File "/home/dan/prac/.virtualenvs/work/lib/python3.4/site-packages/pip/req.py", line 325, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/home/dan/prac/.virtualenvs/work/lib/python3.4/site-packages/pip/util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in /home/dan/prac/.virtualenvs/work/build/plotly

from plotly.py.

theengineear avatar theengineear commented on May 4, 2024

Hey, fixed, this is something I actually put in version.py that requires requests. However, we require version in the setup.py! Little oversight. Fixed now in 1.0.13.

Thanks for reporting!

from plotly.py.

RZRZR avatar RZRZR commented on May 4, 2024

I am still getting this error.

from plotly.py.

theengineear avatar theengineear commented on May 4, 2024

@RZRZR, running a fresh install of Python 3.4.1 on OSX, I'm getting the following:

pip install plotly
Downloading/unpacking plotly
  Using download cache from /Users/ee/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fplotly%2Fplotly-1.2.6.tar.gz
  Running setup.py (path:/Users/ee/venvs/iss17/build/plotly/setup.py) egg_info for package plotly

Downloading/unpacking requests (from plotly)
  Using download cache from /Users/ee/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2F2.7%2Fr%2Frequests%2Frequests-2.3.0-py2.py3-none-any.whl
Downloading/unpacking six (from plotly)
  Using download cache from /Users/ee/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2F3.3%2Fs%2Fsix%2Fsix-1.7.3-py2.py3-none-any.whl
Installing collected packages: plotly, requests, six
  Running setup.py install for plotly

Successfully installed plotly requests six
Cleaning up...

Afterwards, importing plotly works just fine. This is on a fresh install of Python 3.4.1, without any other packages installed.

Would you mind sending me the error you get when you do this:

pip install --upgrade plotly
python -c "import plotly"

(where depending on how you machine is setup, python might be python3 or python34 or something)

Thanks!

from plotly.py.

moritzmcgarrie avatar moritzmcgarrie commented on May 4, 2024

I typed: pip install --upgrade plotly
and it installed fine, and then I type: python -c "import plotly"
and get
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named plotly

I am using mac, with python --version
Python 2.7.10
but I also have python 3.4 installed

from plotly.py.

jordiac avatar jordiac commented on May 4, 2024

Having the same issue in windows (8.1) and solve as indicated by moritzmcgarrie:

Using (https://docs.python.org/2/installing/) for pyhton 3.6 :
py -3.6 -m pip install plotly

from plotly.py.

nishant-reddy avatar nishant-reddy commented on May 4, 2024

I only have python 3.4, and even though I install plotly using pip, I can never import plotly in a python file. I always get the error: no module named plotly

from plotly.py.

mithunsureshqa avatar mithunsureshqa commented on May 4, 2024

i have python 2.7.14 & plotly : Version: 2.2.1 on my mac.
still running into error import plotly
ImportError: No module named plotly

any help is apprecaited.

from plotly.py.

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.