« first day (4622 days earlier)      last day (333 days later) » 

7:05 AM
@PaulMcG I fell in love with fira code a few years ago, the cute gs just get me
 
7:48 AM
cbg all
 
cbg
 
Urgh, Monday morning has greeted me with deadlock errors.
 
threads or file locks?
 
8:07 AM
database locks - it'll be down to the fact I've been tinkering with indexes and I reckon a whole table lock is occurring.
 
 
1 hour later…
9:20 AM
hadn't had to deal with those yet, probably as headache-y as they come =/
oh, nearly forgot to mention the best thing about fira code, tons of fancy ligatures:
 
Thankfully it was the only change that made it for the Friday release, so it's easy to figure out what I had done. Now I need to figure out the best way to proceed
 
> the Friday release
brave
 
Thankfully not! It's just for development, staging & trusted partner systems
 
9:35 AM
you did sound awfully calm for someone currently dealing with a bricked system
that explains it =)
 
Have now installed fira code - you piqued my interest
 
hope you enjoy it!
 
 
2 hours later…
12:10 PM
Things you really need before a presentation to 15 people from the client that you're presenting to: a complete power cut causing you to have to tether to your phone, out in the countryside where 4G isn't great, then your neighbour start drilling the wall right behind your head mid-presentation
What's most infuriating about that sequence of events is that the power was out, so they must have had a cordless drill :'( That's typical roganjosh luck!
I'm in the UK. The power rarely goes out but if they need to do roadworks then they might drop power during the working day because, typically, most people would be in their offices. That's not quite so true in the post-covid era
 
My filter from writing bullshit to realizing it is constantly improving :P Soon I will be able to catch stupid things I want to say or write even before they leave my head xD
That's really an unfortunate experience ronga :P
 
Ah well, I managed to talk it out on the call and it's quite funny looking back now. Of all the things in a power cut, a yamming power tool drilling your wall?
 
 
4 hours later…
3:50 PM
This wasn't my original question, but I'm curious how such a basic Python command can lead to this error?
6
Q: Why am I getting "AttributeError" when running this Python function?

JohnI am trying to convert some XYZ data to z-matrix. One of the tools for doing this is chemcoord (link to documentation). I managed to install it on a MacBook Pro machine (MacOS Ventura). I installed it in a fresh python 3.6 environment. When I tried to run the code from the tutorial for converting...

The installation instructions were extremely basic:
```
pip install chemcoord
```
 
Because they called their own script chemcoord.py
 
@roganjosh bwhaahaha. "I can't watch t'telly, might as well get that DIY done"
 
LOL
 
@OldTinfoil ha, that's exactly my thought. "Ugh, best go put that shelf up then"
 
So the issue is that the script that he's trying to run, is called the same thing as the package itself?
 
3:55 PM
Exactly that. How do you reason this one out (and expect python to)?:
Traceback (most recent call last):
  File "/Users/deyanmihaylov/Documents/Work/pyscf_geometry/chemcoord.py", line 1, in <module>
    import chemcoord as cc
That's asking, effectively, the script to import itself as a module
 
Yea that totally makes sense.
I barely use Python, I'm just helping moderate that site, including trying to clean up the unanswered queue once in a while, and was shocked at how someone could get an error in a package with such simple instructions. Perhaps you could write an answer?
 
I'm not answering anything outside of this room right now. I explained that for your benefit; feel free to write it up as your own answer
 
@roganjosh I can write an answer as a Community Wiki (because it's not really my answer), then perhaps you could write an answer when you have time, and I can delete the Community Wiki? Or is this more than just a matter of time?
Ohhhhh, is it because of the strike?
 
It's not a case of time, see the current strike. There's no reason for you to post as a wiki on my behalf, I don't mind if you get rep off it :) It's a common issue in python in general but I'm not sure if you'd dig out a dupe on that particular site
 
There's no dupe on the particular site. The Python tag only has 174 questions, and I'm quite certain none of them are this problem.
The funny thing is that the person that asked that question, has over a decade of Python experience, so I'm quite surprised that this happened. Even the author of the chemcoord package wrote comments, but didn't notice what you noticed in 5 seconds! haha
 
4:04 PM
Don't underestimate the ability of technical users to overestimate their abilities. I was onboarding people on our grad scheme and two of the three rated themselves as "experts" in python right at the start. Within 5 minutes we were bogged down because none of them knew about exception handling. At all
 
It was a doctoral training centre?
 
Can confirm this. I perform all the interviews for my company - during the "initial" interview (where I fill in any gaps in their application information because recruiters obscure information), I also ask them to self rate their competency. I have never had someone underestimate their ability, and rarely report at their level.

I let them know that it's not a positive or negative thing, it just lets me set the technical interview at the correct level. It usually ends up in an own goal
 
@roganjosh if you do decide to start posting answers again, you can let me know and I'll give you a bounty for whatever amount I get from my answer.
0
A: Why am I getting "AttributeError" when running this Python function?

Nike DattaniYour problem You are running a script called chemcoord.py which has the same name as the package itself. Your chemcoord.py script does not have the Cartesian attribute defined anywhere, but the Python interpreter is looking for it in your script. The program works for me The installation took se...

 
4:26 PM
Thank you but there really is no need :) My motivation for SO is genuinely not to get reputation. I have what I need to do the jobs I need to do in chat
@Nike no, this is actually in a company taking people that were fresh out of an MSc or a PhD
 
@OldTinfoil yea I'm not surprised at all. I do think this OP has a lot of Python experience. Their #1 tag on StackOverflow is and the posts go all the way back to 2014, but somehow they didn't know that you should not name your script the same thing as the package itself?
The author of the Python package also didn't know the reason for the error (it's the person who wrote the "thank you" message on my answer (which is really Josh's answer).
 
Sometimes they're just a solo developer and they don't have someone to rubber duck with to catch the silly errors. It happens to everyone sooner or later
 
@OldTinfoil In this case a few people including the author of the package looked at the question and didn't catch the error, haha
 
Mastering something like pandas and numpy is hard. It's easy to think that when you've done that (in an academic setting only) that you have a grasp of the language. But usually it follows none of the industry standards and is super-difficult to actually integrate into a wider system. It's not quite Dunning-Kruger because there never was an "integration" world in their standalone scripts
5
 
The first commenter (other than me) has as their top tag on SO, the second commenter has , , , , and as their top 5 tags (in that order!), the third commenter was the author of the package, haha.
 
5:16 PM
@roganjosh We get this effect regularly for courses, too. "numpy" knowledge just isn't the same as "Python" knowledge, so we often have people that can write mind bending numpy/pandas/... chains but don't know that yield exists. And since they aren't really aware that Python is more than just the science stack, their self-assessment is seriously off.
 
I wonder if you could get a stubborn, general-purpose emulator to help with this? (Not you specifically, just in general). "Great, your code works, now here's an interface it has to pass through"
My gut feeling is that such an endeavour is impossible but it's a curious thought
I suppose that a lot of the code challenge sites kinda do that, given the number of "why won't Site X accept my solution?" questions. The very existence of such questions in the volume we see suggest that people don't want to interact with that kind of thing, though
 

« first day (4622 days earlier)      last day (333 days later) »