Giter Club home page Giter Club logo

Comments (11)

vyi avatar vyi commented on August 26, 2024 2
import pydart2 as pydart
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/pydart2/__init__.py", line 5, in <module>
    from . import pydart2_api as papi
ImportError: cannot import name 'pydart2_api'

I tried building from source and installing with pip3
Neither works.

from pydart2.

aakashnandi198 avatar aakashnandi198 commented on August 26, 2024 1

I am using pydart2 on python2.7 and what worked for me was to copy the contents in pydart2/pydart2/. to miniconda/env/aakash/lib/python2.7/site-packages/pydart2

from pydart2.

tartavull avatar tartavull commented on August 26, 2024

+1

from pydart2.

tartavull avatar tartavull commented on August 26, 2024

@steelexu
Try cloning the repo directy and running python3 setup.py build

from pydart2.

arpit15 avatar arpit15 commented on August 26, 2024

python3 setup.py build works for me.

from pydart2.

umsukgod avatar umsukgod commented on August 26, 2024

I'm using ubuntu 16.04 . I have similar problem.
Since I run python3 setup.py build , python3 works well.
However in the case of python2, following problem keeps remaining.

import pydart2
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/pydart2/init.py", line 5, in
from . import pydart2_api as papi
ImportError: cannot import name pydart2_api

from pydart2.

kniranjankumar avatar kniranjankumar commented on August 26, 2024

I think you have to run setup.py build using python2 if you want python2 and python3 if you want python3

from pydart2.

faceromarchesotti avatar faceromarchesotti commented on August 26, 2024

Hello, I have tried both installing with pip and building from source but I get the same error as @vyi

< import pydart2 as pydart
File "/usr/local/lib/python3.5/dist-packages/pydart2/init.py", line 5, in
from . import pydart2_api as papi
ImportError: cannot import name 'pydart2_api'

from pydart2.

kniranjankumar avatar kniranjankumar commented on August 26, 2024

Are you installing the right version of dartsim?

from pydart2.

juanmed avatar juanmed commented on August 26, 2024

@Ninjninja do you know what is the last version of dartsim compatible with pydart2? I am having the same issue and reverted to dartsim 6.8.2 without success when building pydart2 from source and trying to import it. Please see here.

from pydart2.

ashley-holton avatar ashley-holton commented on August 26, 2024

I am using pydart2 on python2.7 and what worked for me was to copy the contents in pydart2/pydart2/. to miniconda/env/aakash/lib/python2.7/site-packages/pydart2

This worked for me on python3 as well. I copied it into /home/[username]/anaconda3/envs/[env name]/lib/python3.7/site-packages/pydart2 instead.

from pydart2.

Related Issues (10)

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.