Comments (4)
Hey! Thanks for trying it out!
That is a new error to me. Which version of Python are you using?
Given that error, it would appear that we do have a minimum version required for json, but not having encountered this before, I'm not sure what version that is, and whether we can relax that on our end, or whether you will perhaps need a newer version of Python.
from fooof.
I am using Python 2.7.13. Or was -- I changed my version of Python to 3.6.0 and it just worked.
I went back to 2.7.13 and found the version of json, which is 2.0.9 in that installation. And then I went to 3.6.0, and printed the json version, and it's also 2.0.9! I wonder if there's something else going on between Python and this json version.
Anyway, thanks for suggesting to upgrade.
from fooof.
Ahh, okay - yeh, so it does require python3 to run properly, in particular 3.5 & 3.6.
I'm not too clear on the version numbering for the json module in particular, but in the python3 json docs it does note that the JSONDecodeError is new in 3.5, so it does seem it's just not available in the older 2.7 json module (mentioned in docs here: https://docs.python.org/3/library/json.html?highlight=json#json.JSONDecodeError).
I'm somewhat surprised that that is the first error that pops up when trying to run with 2.7, and it is not particularly helpful regarding the underling problem. We should add a more explicit check that will fail informatively when using a too early version of python.
Now that you have it up and running, please do let us now of any other comments or quirks you find as you test it out!
from fooof.
Absolutely! Thanks Tom
from fooof.
Related Issues (20)
- [ENH]: Sliding window: Use previous params as guesses for next fit
- Run modes HOT 4
- Consider checking / changing default values HOT 1
- Developing a system for benchmarking
- bug report: AttributeError: 'FOOOF' object has no attribute 'to_df' HOT 2
- units/scaling for PW and min_peak _height? HOT 3
- Weird fitting when upper bound frequency is higher than 100 Hz. HOT 2
- Bug report: tutorial about Example Power Spectra and Models HOT 2
- Alternative Knee Model HOT 1
- get_params not working due to inhomogeneities in FOOOFGroup HOT 10
- fooof v.1.1 not yet updated on conda forge HOT 7
- Problem on retrieving aperiodic and peak data from Group object with get_data HOT 1
- [Question] ERROR regarding Lower-bound peak width limit is < or ~= the frequency resolution: 1.00 <= 1.00 HOT 2
- specparam - FOOOF confusion HOT 3
- [ENH] to_df to also return the gaussian parameters HOT 6
- Parts of the original spectrum are below the aperiodic fit HOT 1
- Finalizing 2.0 release plan
- Top of the Specpram 2.0.0rc2 documentation page not adjusting properly HOT 6
- Specparam2rc doc buggy example HOT 1
- Performance "regression" in 2.0.0rc2 HOT 1
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 fooof.