« first day (3972 days earlier)      last day (976 days later) » 

12:18 AM
cbg
 
 
5 hours later…
4:49 AM
cbg
 
cbg
 
5:19 AM
Cbg
 
 
2 hours later…
7:10 AM
@U12-Forward Hello... So this guy you're arguing with is our serial downvoter? I still don't understand, you answered the question well.
 
@AndrejKesely Yes exactly... That guy is just downvoting everything I post...
I am making him run out of excuses of the downvote :)
I got 6 upvotes there and 1 downvote... 6 is a lot... and he thinks it's a bad answer...
 
But, why? I'm looking at his history of voting: Member for 6 days, 39 up/103 down
that's actuall quite impressive :)
 
Lol
 
How to be successful on SO: Have more downvotes than upvotes :P
 
Haha
 
7:16 AM
Anyway serial voting will be reversed, so no worries
 
Hopefully :)
I am just telling him to read the rules :P
@don'ttalkjustcode Ok. But I mean could you just read this... stackoverflow.com/help/privileges/vote-downU12-Forward 3 mins ago
 
Ah well atleast he cared to give an explanation, there are many other serial voters on the lose.. :/
 
Yeah but I seem to think that my answer is pretty good... 7 upvotes, so why does he think it's bad...
 
7:32 AM
@U12-Forward I do kind of see their point. Citing the docs from ages back would easily support the answer's claim, but it's not there.
 
@MisterMiyagi Yeah... I get his point as well... But do you think that's worth a downvote?
I don't think a developer of python will answer this question :)
 
Seeing how that's literally what the question is about – yeah.
 
Yeah
 
Just changing your docs link from the current 3 to the old 2 would give your answer an upper bound already.
 
7:36 AM
FWIW, the oldest docs that are easily addressable are 2.6. They have the same statement.
It's probably helpful to know that the ancient docs are accessible here as well.
 
@MisterMiyagi Ah yeah!
 
"documentation released on 25 October 1996" That's ancient...
 
Haha!
 
Fancy documentation
 
cbg folks
 
7:44 AM
cbg
 
@AlexandreMarcq Haha!
@MisterMiyagi Nice answer man!
 
@U12-Forward "That's for Python 1.4, not for earlier versions..." :) This guy...
 
@AndrejKesely yeah!
It's so strange!
@MisterMiyagi Lol he upvotes your answer stating the python 1.4 version, and downvotes my answer stating that the 1.4 version isn't the earliest one haha!
 
maybe give their words the weight they deserve for a second, and actually try to understand what that person is trying to say.
i agree with that person in this case. You dont understand the difference between your answer and miyagi's right now.
 
8:00 AM
Alright it was retracted...
 
that's all fine and good, but do you understand why it was different?
to phrase it differently, i dont want you to just do things because i said so. it should make sense to you as well. the bottom line is this: if the evidence only goes upto a certain point in time, then that's all you have evidence for. the question is specifically if this behaviour "ever" existed, so even if your answer may be correct, without evidence it's just guesswork
miyagi chose to provide evidence till a certain stage without making any claims about things before that point, whereas your answer, especially initially, was just "assuming" things, without evidence
 
Lol, just got random 6 downvotes on all my questions.
 
@ParitoshSingh Yeah I understand.
It's only 1.4
I removed that part because I knew that that's still isn't a 100% true statement.
@ThePyGuy Bruh...
 
@ThePyGuy I was "lucky" this morning, only 2 downvotes :) but sometimes it's worse...
 
@AndrejKesely, the downvote is not from feed, it was from profile.
 
8:09 AM
@AndrejKesely I got like 6 or 7 today
 
Because those questions are quite old, and I don't think they might have appeared in the feed. Additionally, all 6 downvotes were within 30 seconds. So, it was intentional
 
I don't understand why people do this... One must read the question, understand it, write an answer, test it, answer the OP questions... solid 5-10 minutes of life. And then random downvote
 
Yeah, that's true @AndrejKesely
 
I've found it to work well to just leave a comment asking for improvement suggestions; people that have an actual issue with the content often seem to take it as an indication that feedback is worth it. Truly random votes are so few for me it's not worth bothering.
 
I personally spend like an hour just to create and form a single question, so that the question includes the necessary details, the data, and is specific, with desired outcome, making sure there is not mistake/issue with the question itself.
 
8:34 AM
cbg-ning
 
it's just occurred to be that if it's actually the afternoon... your -ning doesn't work :p
cbg :)
 
@JonClements hey Jon. Indeed, I'm only speaking for my timezone and hopefully, not all timezone :)))
 
you've kind of got most covered though :p
 
@JonClements coool :D I hope you had some holidays and that they were decent, in these time of pandemic
 
umm... well... it was a bank holiday yesterday - so wasn't being bombarded by emails/messages for a change but haven't had an actual proper holiday in 16 years... been debating a 3 nights cottage rental with my brother just for a change of scenery... but holidaying in the uk is just expensive (and even more so because of demand and people not wanting to travel internationally as much...)
 
8:44 AM
@JonClements damn ...
 
8:56 AM
take a break, it will be worth it
 
@ParitoshSingh +1
 
if holidaying in UK is expensive even for UK people, think about us coming to UK :p
 
9:23 AM
cbg @JonClements and cbg
 
cbg :)
 
9:40 AM
cbg everyone
@Jon have you ever gone narrowboating in the Midlands? I did that with a couple friends for a week the last time I was in the UK (pre-COVID) and it was a lot of fun. We went out of Northampton up past Rugby and Coventry, then back. Entirely different pace of life...
 
narrow boating... is that canal boating?
 
yup
 
I've thought about it briefly but wouldn't want to be driving the thing and worry about where to haul up etc... I can imagine it's actually really quite relaxing but also seems like there's a few bits that would still need thinking about when I don't particularly want to do any thinking :p
 
10:02 AM
That's true. It does take a day or two to really get a feel for the boat and how it handles, but they give you good training and have you practice all the scenarios you might find yourself in (different kinds of turns, docking, turning around, etc.). Maybe you could find a mate who wants to pilot, then the only thing you have to worry about is cranking the locks :)
 
meh... decent cottage near the coast lots of decent walks, sea-side bars/restaurants etc... I think that's my plan :p
 
10:18 AM
sounds like a good one
 
 
2 hours later…
11:59 AM
I'm seeing a steady stream of questions about virtualenv pulling in system packages, did something change recently?
maybe I'm just in an echo chamber, searching only finds these two
 
12:16 PM
What evilness drives a person to put a semicolon into a path name? D:
 
@MisterMiyagi could be the reason they are struggling actually!
 
Hey, no discrimination against semicolons please
 
what stupidity drives a person to use Windows anyway
or ignorance; let's not forget
 
12:46 PM
Admittedly, I have nothing but awe for the daredevils managing to use Windows productively.
 
@MisterMiyagi just don't go to the edge of the world and you are fine
 
with WSL, things are a bit easier in windows
 
Guess you could argue that successful Windows users are smarter
 
I will place myself in the ignorant category without complaint
 
@Kevin [<day 17: they still haven't noticed> meme]
 
12:58 PM
My absolute yawning caverns of ignorance are usually not visible in the snapshots of my life, because my camera has a good flash
 
1:10 PM
Can somone look over my code(it's just two small functions) and say if the code is readable and point to flaws? pastebin.com/mNtutWAJ
I use ThisCase for functions and thatCase for variables
 
Conventionally, both variables and function names use lowercase_with_underscores. Consult python.org/dev/peps/pep-0008 for more information.
 
@SAJW Please don't.
 
Just a simple question - Is pyinstaller production grade? Can one rely on it for making packages for end user reliably?
 
Erm... why do you have these functions in the first place? All they do is break error handling.
@Abhijeet.py Judging by the tons of questions on SO, my hunch is "No".
 
I want to make a GUI database manager and these functions should be called on a press of a button
 
1:15 PM
You do realise that they are broken? Your application will be in an inconsistent state if an error occurs.
They just print the exceptions and return bogus data.
 
Yeah I don't see much appeal in a "catch, print exception, and try to keep going" pattern compared to the default behavior of "print exception and terminate the program"
 
well my program shouldn't crash if a file just not exists
 
CreateConnection also has a race condition, if that is relevant for you. If you rely on external entities, EAFP is much more robust because it checks resources on use, not before.
 
it should display the error to the user
 
Are these functions directly called by the button press? Or does the button trigger code you've written, and that code calls these functions?
 
1:18 PM
Your program will crash if opening the database fails, because then your database connection is None.
 
Are there any reliable alternatives to pyinstaller, atleast for packaging all the dependencies with software?
 
If you want to report errors in a GUI, you should do so right at the meeting point between business logic and UI. Not deep inside the business logic.
 
I'm inclined to say that any try's you put in a button callback, should go as high up in the call stack as possible
So, what MisterMiyagi said one message ago
 
You might want to read up on MVC design.
 
@Kevin except for network code, where things might intermittently be out
 
1:20 PM
ah so if lets say button() calls, i should try-block the button and not the function it calls?
 
... Maybe. Depends on what you mean by "try-block the button".
 
button_create_table():
    try:
        #some code
ect.
 
#Useful
def clicked():
    try:
        do_a()
        do_b()
    except:
        print_error()
my_button.onclick = clicked

#not useful
def clicked():
    do_a()
    do_b()
try:
    my_button.onclick = clicked
except:
    print_error()
@SAJW Yeah, that looks useful 👍
 
@MisterMiyagi Or if one wants to handle errors deep inside busuiness logic, then there must be a mechanism through which UI can be informed. It can be as simple as a say <UI object>.informError(e:str) function which is called by the busuiness logic when error occurs.
 
@MisterMiyagi can you explain this? Because I don't realize that they are broken.
 
1:27 PM
Well, if you do conn = CreateConnection(); conn.execute_query("select * from whatever"), then it might crash because conn might be None and None has no method named "execute_query"
Perhaps you could do:
conn = CreateConnection()
if conn is None:
    print("Couldn't create connection!")
else:
    conn.execute_query("select * from whatever")
... But this raises the question of why you're going out of your way to make CreateConnection more error-tolerant, when the code that calls it has to be error-conscious anyway
None of this is to say that it's a bad design for a function to return None in case of failure. It's just not as idiomatic IMO
 
I don't know how to return something after Raise some_exception because Pylance shows me the code is unreachable after that
 
I've hardly seen a case where returning None in case of failures is good. If the calling code expects success, Exceptions are much more ergonomic.
@SAJW The point is that you should not return anything on failure. You raise an exception – or let the original exception propagate – and are done.
 
Ok I think I first read the style guide to at least have that in me.
 
There's a zillion lines of C code in the world where every function returns an int indicating whether it succeeded or not, and a great deal of it was written by someone thinking "If only there were a better way to handle exceptional program states :-("
 
Luckily, we have Golang these days.
 
1:39 PM
But swithching among languages is a huge pain when considering a project.
 
I like how Rust handles errors too
 
I think even Python handles errors quite well too :). Rust handles errors nicely when compared to C and similar ones. Infact almost all new languages handle errors nicely (I think)!
By the way, I just want to know whether is there really a reliable way to distribute a purely python project to end user?!
 
what is reliable?
 
# Hanging indents should add a level. what is an example for not making that? (I don't really understand what hanging means)
 
@Abhijeet.py "Does it have to work on windows?"
 
1:44 PM
Yep
Yep, but, it would be better if linux too
 
@SAJW The PEP directly has some counter examples underneath.
Did you check the footnote?
" the opening parenthesis of a parenthesized statement is the last non-whitespace character of the line, with subsequent lines being indented until the closing parenthesis."
 
@python_user Mathematical identities
 
@MisterMiyagi ah, I didn't notice the footnote, my bad.
 
ok, so how does "mathematical identities" have to do with packaging? fwiw, if the end user knows python, you can always ask them to pip install from requirements file
 
stop using pip imo
for installing python packages
 
1:50 PM
I think he's joking that mathematical identities like "a = b implies b = a" are the only truly reliable things in existence
 
@python_user That need not be the case always. Moreover, if I ask them to, then, I will have to tell them to do the same with dependencies and ...
 
@Kevin ahh ok, didnt quite get that, ok then I will see myself out of this convo then
 
@SAJW huh?
 
Certainly you can't ever reach 100% reliability with computers since a cosmic ray can always flip a bit
 
I have a Python package in which a file contains a string "YEET". I'd like to replace YEET with the hash of the last commit any time any user commits a change to the repo. What's the best way to accomplish this?

I thought of postcommit git hooks, but I thought those would only run on my machine. I thought of postinstall setup.py hooks, but I think those would require the downloading agent to have git installed, which won't always be the case...
 
1:51 PM
@Abhijeet.py requirments.txt will take care of that too if you have specified all your top level libraries you use
 
@Kevin Indeed I was joking :)
 
@Kevin Assuming end users have a butterfly around
 
@MisterMiyagi oh, I am wrong. had bad memory
 
I keep my chaos butterfly right next to my rubber duck
 
@python_user I know that but who the hell is going to read that (I am talking about non programmers).
 
1:55 PM
There's pyinstaller but it's far from reliable
 
@duhaime Sounds like the job for automation tasks, like Github Actions.
 
Abhijeet do you want to distribute a Python package (which requires users to have Python installed) or an .exe / .app etc (which doesn't require users to have Python installed)?
@MisterMiyagi do you happen to have a link to an example that might point me in the right direction?
 
@duhaime Afraid not, I've never used automation to handle the repo itself.
 
It would be nice if an .exe can be made but a package would be good enough too. Just want to avoid assembly tasks for the end user.
 
Or you could write a workflow that uses sed to modify your file
 
1:59 PM
so always use 4 spaces instead of the tab character?
to indent
 
Yeah
 
vscode has that by default I guess
hitting tab will produce 4 spaces
 
@AlexandreMarcq it seems like all actions run in an isolated container. Could/would one push from the container to GitHub? Like add an additional commit on top of the commits in the pull request?
 
@duhaime Sorry, look at this instead
 
@SAJW Yes! Even python IDLE has that feature. You can configure that in both of them LOL
@duhaime I answerd that at 19:28, now, do you have any suggestions?!
 
2:05 PM
What is the longest name a function/variable whatever had in your codes?
 
@SAJW I've written 5-6 word long var names
 
@duhaime adapt this to your workflow
Actually forgot to remove line 4
 
@SAJW Never counted but can safely assume less than 50 characters. I often use descriptive variable names. Most of my functions are methods to classes so, those names are generally short.
 
So if my code is legacy by some definition, to the point it's very hard to add features, I should rewrite the code?
 
@Kevin I wanted to ask whether it is far positively or negatively?
 
2:13 PM
Negatively.
 
Hmmm.., then it appears that there is no good way I can do what I am trying to do. I am trying to find a way for quite sometime on the web but wasn't able to find one :(
 
Relatable
 
Looks like I must take aid of some other language to write installer. But, how great it would have been if it was pure python.
@Kevin ?
@SAJW didn't got your point
 
@SAJW Did you write unittests for it already?
 
"Should I refactor my existing code or start over from scratch?" is highly situational
 
2:22 PM
@MisterMiyagi no, I only imagine this scenario: I get a Job as software engineer and work on a project that was written by someone else (who might not be around in the company anymore). Noone know what that code does because it's not documented, has no meaningful names ect. Then, should the code be rewritten with the mindset of avoiding that exact problem for the next developer after you. From a management view.
 
Ask your manager. (Not sarcasm)
 
Only for these reasons of packaging among different platforms, flutter + dart appear to be the goto combination for all end user products nowadays (especially when you are not considered with high performance and control that only languages like C and C++ can handle). The only thing trying to prevent me from opting them is lack of great libraries! Python now appears to be useful only for plugins and scripts in end user applications.
 
Most "Apps" I use are either native or Electron, TBH.
 
I felt more at ease doing native than Flutter
 
@MisterMiyagi True, but, react/electron based apps don't perform like native apps but flutter apps do!
 
2:33 PM
@Abhijeet.py Not quite sure on the last part
 
@AlexandreMarcq Just consider the fact that they are getting compiled to binaries on ios/android and windows/linux/mac when they are ported. Windows support is in alpha and Canonical is working with them for linux.
 
@Abhijeet.py That doesn't make them as good in terms of performance, it makes them portable
 
Interestingly, flutter apps can now be uploaded to snapstore.
 
Considerations for choosing rewriting vs leaving everything as-is:
- How much time will rewriting take?
- How much time will it save me when implementing new features in the future?
- How often will I be implementing new features?
- Is there a projected point in the future where no more new features will be implemented, and the project is "done"? If so, when?
- Is my time _now_ more valuable than my time later? Or less, or equal?
- How will my customers react to having no new features after I put X hours into rewriting?
 
@AlexandreMarcq flutter uses C++ engine for rendering and targets 60 fps. Thats surely faster than electron/react and other such web based tech.
 
2:39 PM
@Abhijeet.py That must be true, but that's not the point
 
Same is the case with KIVY for python. And the beeware python Framework is far from completion as of now.
@AlexandreMarcq I think thats the point. It makes Flutter most suitable and performant cross platform app development platform out there.
 
@Abhijeet.py You said Flutter is more performant than native apps, which I still think is a bold assumption
 
Even .NET maui doesn't include Web support!
@AlexandreMarcq I never said that.
 
Hmm, didn't you say earlier that you should use Flutter "when you are not considered [concerned?] with high performance"? Is performance important or not?
 
@Abhijeet.py Well what does "react/electron based apps don't perform like native apps but flutter apps do!" mean ?
 
2:46 PM
@AlexandreMarcq I said like that means ~ <= and not =
 
What apps have you all built? How many users do they have?
 
@Kevin or you just follow your instinct and it's always worth it :D
 
What even is an "app" these days
 
Something that can be installed from an app store
 
LOL
 
2:49 PM
why does mngmt love to talk in hallways? They have huge offices and presentation rooms, but I most often see and hear them talk in hallways, like right now. Super annoying
 
Well, that's a decently objective definition. I have zero things on any app store.
@Hakaishin Instinct from caveman days, public conversations are good for tribe
 
@Kevin humans need so many patches
Like I'm telling you, they are 6 people in a 2m wide hallway, 1m left of our open office door xD
 
@Kevin I think app is short for application!
 
But what even is an "application"
If an application is a computer program designed to carry out a specific task other than one relating to the operation of the computer itself,[1] typically to be used by end-users, then I've written hundreds. And my end-user count is one -- me.
 
@Abhijeet.py what are you trying to distribute to end users?
 
2:54 PM
@Kevin Thats a great question. I was trying to figure it out properly just yesterday.
 
I use app for mobilephone application, and application for PC. Don't have any reason for it.
 
@Hakaishin Maybe it's our environment that needs patching... If your manager had to spend half his working day stalking a gazelle through the grassland, then he'd have plenty of time to have meetings while they hide in the bushes, very far away from you
 
@duhaime A purely python application (for Windows and linux) in such a way that the user doesn't have to care for anything other than starting installation (like installing exrernal dependency modules/libraries, python interpreter, etc.)
At max, I would like my user just to care about installing a minimal python interpreter from www.python.org
 
I miss these days where you copy/paste a program folder between PCs and it just runs as whished
 
@Abhijeet.py Oh well that's easy. Just study the code of a simple package, e.g. github.com/duhaime/nmf
 
2:58 PM
@SAJW I'm pretty sure C/C++ can still do that
 
The setup.py file basically does all the work. Study that file
Then you can use twine to upload your package to pypi.org if you want
So that users can pip install your package by package name (e.g. pip install nltk)
 
@duhaime I tried following the command line usage notes, but it gave me 'wget' is not recognized as an internal or external command, operable program or batch file.
;-)
 
haha, this was my first package
 
@Kevin I can't see a reason to have files related to the program in any other folder than the program folder. Is it used for multiple users on one machine?
 
That's a common reason, certainly
 
3:01 PM
@duhaime you mean distribute like a package? (Though surely I don't want to upload it with twine because its an application not a python package).
 
There's a pip install wget but one would need to tinker with the code to change the os.system or subprocess.check_output or whatever I used to use the Python wget instead
Wait Ahbijeet are you trying to create an executable? If so, py2app and py2exe should work
 
I would like to distribute a .zip or .tar file
 
lol
with what inside?
 
Should I use a machine with other users that doesn't reset everything on new boot?
 
If I'm still pretending to be an end-user that's almost too clueless to simply install Python with a friendly gui wizard, I'm not crazy about my chances when it comes to tinkering with the code
 
3:02 PM
@duhaime I think py2app and py2exe are not much reliable similar to pyinstaller
 
Oh lol if you want to download the sample data from the nmf package you can open the url in a browser instead s3.amazonaws.com/duhaime/github/nmf/texts.tar.gz
What evidence do you have that they're unreliable?
 
@duhaime .pyc files and all the dependencies (except python interpreter)
 
Abhijeet would you be more comfortable making a web-hosted jupyter notebook? That's another option
Or perhaps just deploy your code to Heroku and have users use HTTP methods to do things?
This is why I'm looking for more details on what your application will do
 
I want to add additional detail to a statement I wrote earlier. I said pyinstaller is unreliable. What I specifically mean is that it is not always capable of turning your project into an executable. But when it does make an executable, it seems to be as reliable as any other executable I've made by other means.
 
Ya, py2app and py2exe take a little coaxing as well but once they compile your distributables you should be good to go
 
3:06 PM
So from the point of view of the end user, they may consider your executables totally reliable. They don't see the tears you shed trying to get pyinstaller to run, so they're happy
 
@duhaime An installer (preferably written in python) which downlands all the packages from web is the max I would like)
 
I wonder what CPython's installer is written in...
(not rhetorical)
 
Abhijeet what are you trying to help users do? Like what delightful magic do you have in your Python files that you want to share with the world?
 
@Kevin I think C (as is the whole CPython)!
 
CPython is only 35% C, according to the Languages sidebar at github.com/python/cpython
 
3:10 PM
@duhaime Its an application software that I would be completing in coming months.
 
Abhijeet doesn't want to tell us that his application is Facebook But For Dogs because we might steal his million dollar idea
 
But what will it actually do? Will it send fancy emails or download cat pictures or visualize dogs as the Mona Lisa or what? The answer to that question may help determine the appropriate distribution method
I think you're onto something Kevin
 
@Kevin But the base is completely C. I think the larger part (mostly the libraries) are written in python itself.
 
Yes, I basically agree. But if the installer is not part of the base and it's not a library, then we can't draw many conclusions about what it's written in
 
Is PEP line length 80 or 79?
 
3:14 PM
@Kevin I am trying to find a general distribution idea (which is preferablly a. exe or .zip with all the dependencies) for all my Windows and Linux software applications for a general user.
 
Ok :-)
 
Actually I think that you people are getting me a little wrong. My original question was not to find a distribution method but I was asking whether the above two mentioned distribution methods are possible for a pure python software in a reliable way.
 
Ooh - not seen InvalidJSONError: Out of range float values are not JSON compliant before...
 
And wherever I have searched, I found No (especially in case of .exe)
 
As far as I know, Pyinstaller is the best we've got
 
3:19 PM
Agree, but not fully reliable (as you said earlier)
So, now, I think the answer to my question is NO
I think that I should now write an installer in some compiled language or request the users to install python interpreter explictly
 
Not directly related to your question: looks like github.com/python/cpython/tree/main/Tools/msi is where CPython keeps its installer-related stuff. It looks like it's written in... "WiX"
 
And then run a python based installer
Thats the closest I have figured out
Well, that sounds OKAY to me
hush ...
 
As much as I like projects written in exactly one language, sometimes practicality beats purity
When you get right down to it, almost every programming language has to ask another programming language to install it. The exception being machine language, the titan holding up the earth
 
Machine Language! Diving down to sea-floor? :)
 
It's good to have a little familiarity with the sea floor when you're sailing only a tentacle-length above it
 
3:30 PM
@Kevin its billion dollar idea, LOL
 
I've got a couple of those I really should be working on... Oh well.
 
@Kevin But, I am comfortable upto C/C++ (and they are sufficient for most of the use cases even in hardware I think). Diving down to sea floor is crushing:-)
 
Yeah, even just understanding the abstract computer model that C uses, goes a very long way
If you think of a computer as a very long contiguous array of readable/writable bytes, then you're doing better than 80% of programmers and 99.99% of computer users
 
And the sizes of the modern softwares warn you to generally stay to the highest levels you can stay with.
 
3:48 PM
I have no objections there. Right tool for the right job.
 
I think thats it for now :)
 
 
1 hour later…
5:00 PM
Can't seem to get pyinstaller to include my package - I've been through the guides etc etc, had a working version until converting 99% to python3. I think I have a problem with how python internal package manager handles __init__ between python2 and python3 (they changed how it works).

Anyone familiar with the specifics so they can help rule this out as a possibility?
 
5:28 PM
You mean __init__.py files?
 
yesh
I guess in py2 their package manager handled the init a but sloppy. they fixed it, so now python3 can better reflect what the user would expect from a build; but it still has to handle backward compatability for python2 module imports
(this is what I've read in research)
 
Hmm. As far as I know, the only difference is that folders with no __init__.py now become namespace packages instead of regular packages. I'd be surprised if that was the cause of your problem
 
Would make sense - i've forced all packaged to include both options; init and no
I can share my spec file if you're familiar with pyinstaller spec?
 
nope
 
if i had to guess, you're probably chasing after the wrong thing
what made you think the init is the issue
 
5:35 PM
Just one of a few checklist items. But better to ask questions as directed as possible - then rule it out, and go to next :)
pyinstaller /home/pi/Desktop/binbuilder/gateway_master/master_build/Master_Boot.py \
-n $filename --clean --onefile -y$encryptionKey$compress$output$loglevel \
-p /home/pi/Desktop/binbuilder/gateway_master/master_build/storeAndForward \
-p /home/pi/Desktop/binbuilder/gateway_master/master_build/utilities \
-p /home/pi/Desktop/binbuilder/gateway_master/master_build/watchdog \
-p /home/pi/Desktop/binbuilder/gateway_master/master_build/edgeCompute \
-p /home/pi/Desktop/binbuilder/gateway_master/master_build/interfaces \
 
take a look at the code formatting guide. (tl;dr 4 spaces from left. you can select code and press ctrl + k to indent)
 
format it as code
 
5:53 PM
@Elysiumplain as suggested, please see the formatting guide for chat
 
cabbage
 
@roganjosh Thanks for the cleanup
@Code-Apprentice Cabbage to you too, then.
 
6:24 PM
How the HELL does this answer has so many up-votes? I checked the revision history, and it didn't make sense at any point... Is there something we can do to get rid of it? I feel a mod-flag has high declining chances...
 
Well, it looks like a good answer to people who've never heard of runtime complexity
 
@Tomerikoo Not really sure that follow SO philosophy around Answers?
@Aran-Fey Yes - I can copy paste so it's the best one :P
 
@Tomerikoo Not much you can do about it
 
@Aran-Fey It is not even about runtime. It converts to a set just to turn it back to a list?!@?$ It makes no sense whatsoever...
 
@Tomerikoo mod flag won't fly, mods don't handle technical matters.
perhaps a detailed question on meta could do something... I don't think the community can handle that answer
but even non-experts will see that it doesn't even create a set
 
6:36 PM
@AndrasDeak Exactly that's my point. I also have a feeling a mod flag will be declined, but at the same time.... It's simply bad. No Python knowledge is really needed to see that it's useless
 
Yes, so don't mod flag.
A mod might still delete it... given enough support on meta.
unless @JonClements as a subject-matter expert has a better idea :P
 
I might have a look in a minute after I've got some dinner in me and my eyes aren't quite so achy :)
 
go hangry on the answer :P
have a good dinner
 
 
4 hours later…
10:45 PM
I wonder if there is there a version of np.vectorize that can also, potentially remove items to resize the array...
 

« first day (3972 days earlier)      last day (976 days later) »