Comments (11)
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.
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.
+1
from pydart2.
@steelexu
Try cloning the repo directy and running python3 setup.py build
from pydart2.
python3 setup.py build
works for me.
from pydart2.
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.
I think you have to run setup.py build using python2 if you want python2 and python3 if you want python3
from pydart2.
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.
Are you installing the right version of dartsim?
from pydart2.
@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.
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)
- store skeleton to .skel file
- mesh in .skel
- Applying Force and Torque to the skeleton com
- Using pydart with dart 6.4? HOT 1
- unable to pip install HOT 1
- can I use pydart2 with flutter
- Deprecated dart components are interfaced when building with dart >v6.2 HOT 3
- Unable to import pydart2 HOT 2
- fatal error: dart/gui/gui.hpp: No such file or directory HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydart2.