Error when trying to run nosetests in certain directory ~ PyThreadState_Get: no current thread The Next CEO of Stack OverflowHomebrew + Python on mac os x 10.8: Fatal Python error: PyThreadState_Get: no current thread importing mapnikWhat does `Fatal Python error: PyThreadState_Get: no current thread` mean?Find current directory and file's directory'nosetests' not recognized on Windows after being installed and added to PATHfatal error: Python.h: No such file or directorynosetests opens a dialogue box when run after installing noseConda example does not work, it shows newer not older numpy?Can't pip install packages in Anacondaanaconda env couldn't import any of the packagesError with Python after I Uninstalled AnacondaHow could I resume my own python configuration after quiting anacondaAfter installing spyder, conda module is not found
What happened in Rome, when the western empire "fell"?
Should I tutor a student who I know has cheated on their homework?
Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?
Is it okay to majorly distort historical facts while writing a fiction story?
Why is my new battery behaving weirdly?
How do I align (1) and (2)?
If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?
Prepend last line of stdin to entire stdin
How to invert MapIndexed on a ragged structure? How to construct a tree from rules?
RigExpert AA-35 - Interpreting The Information
Is a distribution that is normal, but highly skewed considered Gaussian?
Which one is the true statement?
Why do remote US companies require working in the US?
Find non-case sensitive string in a mixed list of elements?
Is French Guiana a (hard) EU border?
The exact meaning of 'Mom made me a sandwich'
Reference request: Grassmannian and Plucker coordinates in type B, C, D
Rotate a column
Is there always a complete, orthogonal set of unitary matrices?
Does increasing your ability score affect your main stat?
Unclear about dynamic binding
Make solar eclipses exceedingly rare, but still have new moons
Easy to read palindrome checker
What was the first Unix version to run on a microcomputer?
Error when trying to run nosetests in certain directory ~ PyThreadState_Get: no current thread
The Next CEO of Stack OverflowHomebrew + Python on mac os x 10.8: Fatal Python error: PyThreadState_Get: no current thread importing mapnikWhat does `Fatal Python error: PyThreadState_Get: no current thread` mean?Find current directory and file's directory'nosetests' not recognized on Windows after being installed and added to PATHfatal error: Python.h: No such file or directorynosetests opens a dialogue box when run after installing noseConda example does not work, it shows newer not older numpy?Can't pip install packages in Anacondaanaconda env couldn't import any of the packagesError with Python after I Uninstalled AnacondaHow could I resume my own python configuration after quiting anacondaAfter installing spyder, conda module is not found
I'm trying to use the /opt/moose/miniconda/bin/python
environment (an environment set up by my work) to work on some separate code and am getting an error when trying to use the nose module to run tests.
To walk back where my problem began, I received this error when running:
pip install nose
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/opt/moose/miniconda/lib/python2.7/site-packages/nose'
Consider using the `--user` option or check the permissions.
So I then ran
pip install nose --user
The scripts nosetests and nosetests-2.7 are installed in '~/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
So I then added to my ~/.bashrc file
export PATH=$PATH:~/.local/bin
Now when I open a python interpreter in my home directory I can successfully run:
Python 2.7.15 |Anaconda, Inc.| (default, Dec 14 2018, 13:10:39)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
>>> nose.main()
----------------------------------------------------------------------
Ran 0 tests in 0.002s
OK
But, when I move to the directory that I want to actually run the tests in, I get:
$ cd Documents/projects/neml
$ python
Python 2.7.15 |Anaconda, Inc.| (default, Dec 14 2018, 13:10:39)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
>>> nose.main()
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
Any idea why I'm getting this error, it appears that I am running the same python in both directories. This seems like an environment issue, but if it's not, please point me in the right direction. Thanks.
python anaconda nose
|
show 1 more comment
I'm trying to use the /opt/moose/miniconda/bin/python
environment (an environment set up by my work) to work on some separate code and am getting an error when trying to use the nose module to run tests.
To walk back where my problem began, I received this error when running:
pip install nose
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/opt/moose/miniconda/lib/python2.7/site-packages/nose'
Consider using the `--user` option or check the permissions.
So I then ran
pip install nose --user
The scripts nosetests and nosetests-2.7 are installed in '~/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
So I then added to my ~/.bashrc file
export PATH=$PATH:~/.local/bin
Now when I open a python interpreter in my home directory I can successfully run:
Python 2.7.15 |Anaconda, Inc.| (default, Dec 14 2018, 13:10:39)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
>>> nose.main()
----------------------------------------------------------------------
Ran 0 tests in 0.002s
OK
But, when I move to the directory that I want to actually run the tests in, I get:
$ cd Documents/projects/neml
$ python
Python 2.7.15 |Anaconda, Inc.| (default, Dec 14 2018, 13:10:39)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
>>> nose.main()
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
Any idea why I'm getting this error, it appears that I am running the same python in both directories. This seems like an environment issue, but if it's not, please point me in the right direction. Thanks.
python anaconda nose
Do you have to run tests via interpreter? Or can you use CLI utility? Because when you installednose
, the message says thatThe scripts nosetests and nosetests-2.7 are installed in '~/.local/bin'
Can you try runningnosetests
command in theDocuments/projects/neml
?
– bagljas
Mar 14 at 15:45
@bagljas When I runnosetests
I get the same error. In fact, my preferred way is going to be usingnosetests
– dylanjm
Mar 14 at 16:00
I'm not on Mac, so I'm unable to simulate your problem. But it seems you are right, this might be environment related as per stackoverflow.com/a/38976341/7109330 and that answer links to this question stackoverflow.com/q/15678153/7109330 I also found this issue which might be similar to your problem github.com/GalSim-developers/GalSim/issues/546
– bagljas
Mar 15 at 8:40
Have you tried creatingvirtualenv
and then installingnose
within thatvirtualenv
? Doing it this way, you can be sure that your libraries will work with the python interpreter you have in virtualenv.
– bagljas
Mar 15 at 8:43
I think the installation is not compatible with some other packages in your anaconda environment. It's better to clone theconda
environment under your home folder and runconda install nose
to install the nose from anaconda.
– gdlmx
Mar 17 at 0:50
|
show 1 more comment
I'm trying to use the /opt/moose/miniconda/bin/python
environment (an environment set up by my work) to work on some separate code and am getting an error when trying to use the nose module to run tests.
To walk back where my problem began, I received this error when running:
pip install nose
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/opt/moose/miniconda/lib/python2.7/site-packages/nose'
Consider using the `--user` option or check the permissions.
So I then ran
pip install nose --user
The scripts nosetests and nosetests-2.7 are installed in '~/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
So I then added to my ~/.bashrc file
export PATH=$PATH:~/.local/bin
Now when I open a python interpreter in my home directory I can successfully run:
Python 2.7.15 |Anaconda, Inc.| (default, Dec 14 2018, 13:10:39)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
>>> nose.main()
----------------------------------------------------------------------
Ran 0 tests in 0.002s
OK
But, when I move to the directory that I want to actually run the tests in, I get:
$ cd Documents/projects/neml
$ python
Python 2.7.15 |Anaconda, Inc.| (default, Dec 14 2018, 13:10:39)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
>>> nose.main()
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
Any idea why I'm getting this error, it appears that I am running the same python in both directories. This seems like an environment issue, but if it's not, please point me in the right direction. Thanks.
python anaconda nose
I'm trying to use the /opt/moose/miniconda/bin/python
environment (an environment set up by my work) to work on some separate code and am getting an error when trying to use the nose module to run tests.
To walk back where my problem began, I received this error when running:
pip install nose
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/opt/moose/miniconda/lib/python2.7/site-packages/nose'
Consider using the `--user` option or check the permissions.
So I then ran
pip install nose --user
The scripts nosetests and nosetests-2.7 are installed in '~/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
So I then added to my ~/.bashrc file
export PATH=$PATH:~/.local/bin
Now when I open a python interpreter in my home directory I can successfully run:
Python 2.7.15 |Anaconda, Inc.| (default, Dec 14 2018, 13:10:39)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
>>> nose.main()
----------------------------------------------------------------------
Ran 0 tests in 0.002s
OK
But, when I move to the directory that I want to actually run the tests in, I get:
$ cd Documents/projects/neml
$ python
Python 2.7.15 |Anaconda, Inc.| (default, Dec 14 2018, 13:10:39)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
>>> nose.main()
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
Any idea why I'm getting this error, it appears that I am running the same python in both directories. This seems like an environment issue, but if it's not, please point me in the right direction. Thanks.
python anaconda nose
python anaconda nose
edited Mar 17 at 0:46
gdlmx
4,16511032
4,16511032
asked Mar 8 at 15:43
dylanjmdylanjm
824216
824216
Do you have to run tests via interpreter? Or can you use CLI utility? Because when you installednose
, the message says thatThe scripts nosetests and nosetests-2.7 are installed in '~/.local/bin'
Can you try runningnosetests
command in theDocuments/projects/neml
?
– bagljas
Mar 14 at 15:45
@bagljas When I runnosetests
I get the same error. In fact, my preferred way is going to be usingnosetests
– dylanjm
Mar 14 at 16:00
I'm not on Mac, so I'm unable to simulate your problem. But it seems you are right, this might be environment related as per stackoverflow.com/a/38976341/7109330 and that answer links to this question stackoverflow.com/q/15678153/7109330 I also found this issue which might be similar to your problem github.com/GalSim-developers/GalSim/issues/546
– bagljas
Mar 15 at 8:40
Have you tried creatingvirtualenv
and then installingnose
within thatvirtualenv
? Doing it this way, you can be sure that your libraries will work with the python interpreter you have in virtualenv.
– bagljas
Mar 15 at 8:43
I think the installation is not compatible with some other packages in your anaconda environment. It's better to clone theconda
environment under your home folder and runconda install nose
to install the nose from anaconda.
– gdlmx
Mar 17 at 0:50
|
show 1 more comment
Do you have to run tests via interpreter? Or can you use CLI utility? Because when you installednose
, the message says thatThe scripts nosetests and nosetests-2.7 are installed in '~/.local/bin'
Can you try runningnosetests
command in theDocuments/projects/neml
?
– bagljas
Mar 14 at 15:45
@bagljas When I runnosetests
I get the same error. In fact, my preferred way is going to be usingnosetests
– dylanjm
Mar 14 at 16:00
I'm not on Mac, so I'm unable to simulate your problem. But it seems you are right, this might be environment related as per stackoverflow.com/a/38976341/7109330 and that answer links to this question stackoverflow.com/q/15678153/7109330 I also found this issue which might be similar to your problem github.com/GalSim-developers/GalSim/issues/546
– bagljas
Mar 15 at 8:40
Have you tried creatingvirtualenv
and then installingnose
within thatvirtualenv
? Doing it this way, you can be sure that your libraries will work with the python interpreter you have in virtualenv.
– bagljas
Mar 15 at 8:43
I think the installation is not compatible with some other packages in your anaconda environment. It's better to clone theconda
environment under your home folder and runconda install nose
to install the nose from anaconda.
– gdlmx
Mar 17 at 0:50
Do you have to run tests via interpreter? Or can you use CLI utility? Because when you installed
nose
, the message says that The scripts nosetests and nosetests-2.7 are installed in '~/.local/bin'
Can you try running nosetests
command in the Documents/projects/neml
?– bagljas
Mar 14 at 15:45
Do you have to run tests via interpreter? Or can you use CLI utility? Because when you installed
nose
, the message says that The scripts nosetests and nosetests-2.7 are installed in '~/.local/bin'
Can you try running nosetests
command in the Documents/projects/neml
?– bagljas
Mar 14 at 15:45
@bagljas When I run
nosetests
I get the same error. In fact, my preferred way is going to be using nosetests
– dylanjm
Mar 14 at 16:00
@bagljas When I run
nosetests
I get the same error. In fact, my preferred way is going to be using nosetests
– dylanjm
Mar 14 at 16:00
I'm not on Mac, so I'm unable to simulate your problem. But it seems you are right, this might be environment related as per stackoverflow.com/a/38976341/7109330 and that answer links to this question stackoverflow.com/q/15678153/7109330 I also found this issue which might be similar to your problem github.com/GalSim-developers/GalSim/issues/546
– bagljas
Mar 15 at 8:40
I'm not on Mac, so I'm unable to simulate your problem. But it seems you are right, this might be environment related as per stackoverflow.com/a/38976341/7109330 and that answer links to this question stackoverflow.com/q/15678153/7109330 I also found this issue which might be similar to your problem github.com/GalSim-developers/GalSim/issues/546
– bagljas
Mar 15 at 8:40
Have you tried creating
virtualenv
and then installing nose
within that virtualenv
? Doing it this way, you can be sure that your libraries will work with the python interpreter you have in virtualenv.– bagljas
Mar 15 at 8:43
Have you tried creating
virtualenv
and then installing nose
within that virtualenv
? Doing it this way, you can be sure that your libraries will work with the python interpreter you have in virtualenv.– bagljas
Mar 15 at 8:43
I think the installation is not compatible with some other packages in your anaconda environment. It's better to clone the
conda
environment under your home folder and run conda install nose
to install the nose from anaconda.– gdlmx
Mar 17 at 0:50
I think the installation is not compatible with some other packages in your anaconda environment. It's better to clone the
conda
environment under your home folder and run conda install nose
to install the nose from anaconda.– gdlmx
Mar 17 at 0:50
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55066552%2ferror-when-trying-to-run-nosetests-in-certain-directory-pythreadstate-get-no%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55066552%2ferror-when-trying-to-run-nosetests-in-certain-directory-pythreadstate-get-no%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you have to run tests via interpreter? Or can you use CLI utility? Because when you installed
nose
, the message says thatThe scripts nosetests and nosetests-2.7 are installed in '~/.local/bin'
Can you try runningnosetests
command in theDocuments/projects/neml
?– bagljas
Mar 14 at 15:45
@bagljas When I run
nosetests
I get the same error. In fact, my preferred way is going to be usingnosetests
– dylanjm
Mar 14 at 16:00
I'm not on Mac, so I'm unable to simulate your problem. But it seems you are right, this might be environment related as per stackoverflow.com/a/38976341/7109330 and that answer links to this question stackoverflow.com/q/15678153/7109330 I also found this issue which might be similar to your problem github.com/GalSim-developers/GalSim/issues/546
– bagljas
Mar 15 at 8:40
Have you tried creating
virtualenv
and then installingnose
within thatvirtualenv
? Doing it this way, you can be sure that your libraries will work with the python interpreter you have in virtualenv.– bagljas
Mar 15 at 8:43
I think the installation is not compatible with some other packages in your anaconda environment. It's better to clone the
conda
environment under your home folder and runconda install nose
to install the nose from anaconda.– gdlmx
Mar 17 at 0:50