Talk:Welch's t-test: Difference between revisions

m
Line 1,307:
do you know if there are any better websites than StackOverflow? there are some serious issues with that site, namely down-voting with no reason, my reputation can be destroyed in a few seconds for no reason (that I'm aware of anyway), and because of this I'm very hesitant to ask a question on that website. I got a -4 vote for my last question, and I have no idea why. For that reason, I only use stackoverflow.com as a last resort. I only use that website if I've exhausted every other possible avenue. https://meta.stackexchange.com/questions/198962/anonymous-downvotes-ruining-stack-overflow-for-new-users-driving-them-away-from--[[User:Hailholyghost|Hailholyghost]] ([[User talk:Hailholyghost|talk]]) 02:16, 18 March 2018 (UTC)
:Stack Overflow is good, but you have to be careful when you ask something. SYou could also as on the Python mailing list. Anyway, see [https://stackoverflow.com/help/how-to-ask How do I ask a good question?] as it will be useful wherever you ask for help. Here, however, there is a risk you get downvoted because you are in a situation that was already discussed ''many'' times on Stack Overflow: see for instance [https://www.google.fr/search?q=stackoverflow.com+AttributeError%3A+%27module%27+object+has+no+attribute+%27join%27 this]. So often that there is something on Meta about this: [https://meta.stackoverflow.com/questions/360877/canonical-q-a-for-module-x-has-no-attribute-y-in-python Canonical Q/A for 'Module 'x' has no attribute 'y' in Python]. However, you seem to be claiming there is no shadowing module. Before asking on Stack Overflow, you will have first to double- and triple-check, because, honestly, I see no other reason ''this'' error would happen. So, check that there is no Python file ([https://stackoverflow.com/questions/8822335/what-do-the-python-file-extensions-pyc-pyd-pyo-stand-for .py, .pyc, .pyo, .pyd]) in the directory from which you call your scripts or in any directory in the Python search path (which you can find with
 
:<pre>import sys</pre>
:<pre>import sys.path</pre>
sys.path</pre>
 
:inside Python), that could be masking a Python module, and especially the ones the cause an error: here string.py and numpy.py. Because I am almost certain there is one: the error means precisely that.
You could try:
 
:<pre>import string</pre>
:<pre>string.__file__</pre>
 
:And if the printed path is not in your Python installation directory (judging from your output abouve, it should be /usr/lib/python2.7/string.py), then this is the cause of your problem. [[User:Eoraptor|Eoraptor]] ([[User talk:Eoraptor|talk]]) 09:44, 18 March 2018 (UTC)
1,336

edits