Comments (3)
I just find the problem:
The code work fine in Python 2.x, but Py_InitModule is no longer used in Python 3.x.
If you are using Python 3.x. During analyseffi.c
use the following code:
// PyMODINIT_FUNC
// initanalyseffi(void)
// {
// (void) Py_InitModule("analyseffi", methods);
// }
/* The following new code for compatible with Python 3
Added by Luwei Yang 20 May 2017 */
static struct PyModuleDef analyseffi =
{
PyModuleDef_HEAD_INIT,
"analyseffi", /* name of module */
"", /* module documentation, may be NULL */
-1, /* size of per-interpreter state of the module, or -1 if the module keeps state in global variables. */
methods
};
PyMODINIT_FUNC PyInit_analyseffi(void)
{
return PyModule_Create(&analyseffi);
}
from deepsentiment.
will have a look into this issue. Thank you for bring this to my attention
from deepsentiment.
After modifying analyseffi.c, how to install SoundAnalyse?
Could you please tell me how to install this?
I tried to use "python setup.py install", but it is still cannot be imported.
Thank you.
from deepsentiment.
Related Issues (20)
- Error Broken Pipe HOT 1
- backend server not responding
- Improper list , garbage values
- Hello vyassu , Can you give me some hints about how to bulid my own model on Spark? Thank you! HOT 1
- Need proper input .wav files HOT 1
- help needed
- Help needed in training my own dataset
- tuple index out of range error when running SpeechNetSVMMulticlass.py
- SVMSentimentAnalysis_Spark throwing error help needed please.......... HOT 3
- ImportError: No module named label HOT 2
- ValueError HOT 1
- i had tried 8 wav files ,all are angry ,does it right? HOT 4
- Problems on how to train my model
- This isn't an issue as much as it is a question. What is the accuracy rate of this module?
- Timeout value HOT 1
- analyse module HOT 1
- ImportError: No module named analyse HOT 1
- SpeechNetSVMMulticlass.py AttributeError: 'module' object has no attribute 'loudness' HOT 8
- Tested on five files, all have the exact same results. 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 deepsentiment.