Comments (7)
cd out of the autopy directory and try again.
from autopy-legacy.
>>> import autopy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/autopy/__init__.py", line 8, in <module>
import autopy.bitmap
ImportError: /usr/lib/python2.6/site-packages/autopy/bitmap.so: undefined symbol: MMPointMake
from autopy-legacy.
I'm running into the MMPointMake problem as well. I'm also on Gentoo, so perhaps that's related. I'm not familiar with C preprocessing, but could it be the H_INLINE business?
from autopy-legacy.
Yes, that's possible. Did you manage to find any workarounds?
from autopy-legacy.
It's almost certain that the problem happens because you used a compiler that the H_INLINE trick knows about, and the MMPointMake function is (correctly) compiled as an inline function. You can fix this by un-inlining all the inline functions in the C code.
from autopy-legacy.
@mgregson, @srunni, and @beyondkaoru: I've updated the definition of H_INLINE and removed the INLINE definition and modifiers entirely (as @mgregson stated in another issue he submitted, it was an oversight to include them as they should really just be shared, ordinary functions). If you have the time, would you mind testing this again to make sure I got it right?
from autopy-legacy.
when i setup, i found the default path is "/usr/local/lib/python2.7/dist-packages/autopy"(ubuntu12.04), then i copy autopy folder to "/usr/lib/python2.7/dist-packages/" it can run! 👍
from autopy-legacy.
Related Issues (20)
- capture_screen does not work HOT 1
- An error occurred while installing autopy3 HOT 8
- installing issues with src/autopy-mouse-module.c HOT 2
- Active Fork? HOT 1
- bitmap.cature_screen(rect) doesn't work properly HOT 2
- Segmentation fault when using get_color HOT 1
- hex_to_rgb is not true
- no enter key HOT 1
- Is this an efficient alternative to RDP? HOT 1
- Feature Request
- Can't install from pip "Missing parenthesis in call to 'print'" HOT 3
- Broken on Ubuntu Yakkety 16.10+, libpng12 dependency HOT 1
- screen.get_size() return a wrong resolution on windows 7 64 bit HOT 1
- Setup script exited with error: command 'clang' failed with exit status 1 HOT 1
- autopy.key.type_string() doesn't properly type SHIFT-modified characters (i.e. ":_+{}) HOT 2
- Still some runtime linking of Visual Studio dlls HOT 1
- remote operation with autopy HOT 6
- Selenium WebDriver API wrapper for autopy HOT 1
- bitmap.capture_screen() method not working HOT 3
- On OS X 10.13 Beta, key injection does not work
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 autopy-legacy.