Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Error message when trying to install Matplotlib in Python3.8
Post: RE: Error message when trying to install Matplotli...

I was able to solve this by using the unnoficial packages, you can download then here and just make sure to install de requirements, you can find them on the link too, then install each package with: ...
LeanbridgeTech General Coding Help 5 5,267 Jan-09-2020, 06:04 AM
    Thread: TypeError: setText(self, str): too many arguments
Post: RE: TypeError: setText(self, str): too many argume...

setText() expects a string but you are passing it a tuple, a possible solution is: self.label_2.setText(str(circles.shape))
LeanbridgeTech General Coding Help 3 7,903 Jan-09-2020, 06:02 AM
    Thread: How to make an 'uncrackable' executable?
Post: RE: How to make an 'uncrackable' executable?

Languages like Java and C# are too high-level and do not provide any effective structures against cracking. You could make it hard for script kiddies through obfuscation, but if your product is worth ...
LeanbridgeTech General Coding Help 9 6,921 Jan-07-2020, 08:00 AM
    Thread: SQL Alchemy dynamic class - declarative_base losing attributes
Post: RE: SQL Alchemy dynamic class - declarative_base l...

your sample code puts the classes in _decl_class_registry fine, below is your code with the classes being retrieved: from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import In...
LeanbridgeTech General Coding Help 4 3,801 Jan-07-2020, 07:24 AM
    Thread: Please help: problem installing/importing langdetect module in Jupyter Notebook
Post: RE: Please help: problem installing/importing lang...

Usually that indicates that the notebook is running with a different Python or in a different environment from Python in the command prompt. Check sys.executable to see which Python it's running in, a...
LeanbridgeTech General Coding Help 3 7,406 Dec-30-2019, 08:17 AM
    Thread: Can't install pip for Python 3.7.4 in Ubuntu virtual OS
Post: RE: Can't install pip for Python 3.7.4 in Ubuntu v...

I had to install pip for 3.6 first sudo apt install python3-pip now you can install python 3.7 sudo apt install python3.7 and then I could install pip for 3.7 python3.7 -m pip install pip and as a ...
LeanbridgeTech General Coding Help 9 6,378 Dec-30-2019, 08:14 AM
    Thread: NameError :name 'name' is not defined
Post: RE: NameError :name 'name' is not defined

NameError: global name '---' is not defined Other names are defined within the program (such as variables). If Python encounters a name that it doesn't recognize, you'll probably get this error. Some ...
LeanbridgeTech Web Scraping & Web Development 4 19,136 Dec-27-2019, 09:04 AM
    Thread: Cannot install mysqlclient
Post: RE: Cannot install mysqlclient

have had the same issue as lower version of mysqlclient was installed due to pymysql. OS: Linux Mint 19.1 Python: 3.6.8 Django: 2.2.2 Uninstall mysqlclient: pip3 uninstall mysqlclient Uninstall py...
LeanbridgeTech Web Scraping & Web Development 6 11,859 Dec-27-2019, 09:00 AM
    Thread: How to import annoations for python 3.7 and below
Post: RE: How to import annoations for python 3.7 and be...

Python 3.7 is officially released! This new Python version has been in development since September 2016, and now we all get to enjoy the results of the core developers’ hard work. What does the new P...
LeanbridgeTech General Coding Help 3 13,883 Dec-16-2019, 06:17 AM
    Thread: splitting a string with 2 different delimiters
Post: RE: splitting a string with 2 different delimiters

Try this regex "[-.]+". The + after treats consecutive delimiter chars as one. Remove plus if you do not want this.
LeanbridgeTech General Coding Help 4 2,785 Dec-16-2019, 06:15 AM
    Thread: Create sensor data for a IoT project
Post: RE: Create sensor data for a IoT project

Generally speaking, at the edge of an IoT system, there are sensors connected to some prototyping boards. In this context, the prototyping board controls the sensors and acquires data from them. At th...
LeanbridgeTech General Coding Help 9 5,988 Dec-14-2019, 07:36 AM
    Thread: get a string from a list if it is there
Post: RE: get a string from a list if it is there

se filter to get at the elements that have abc. >>> lst = ['abc-123', 'def-456', 'ghi-789', 'abc-456'] >>> print filter(lambda x: 'abc' in x, lst) ['abc-123', 'abc-456']
LeanbridgeTech General Coding Help 6 2,438 Dec-14-2019, 07:17 AM
    Thread: JSON vs PYON
Post: RE: JSON vs PYON

JSON is a data format (a string), Python dictionary is a data structure (in-memory object). If you need to exchange data between different (perhaps even non-Python) processes then you could use JSON f...
LeanbridgeTech News and Discussions 18 7,261 Dec-10-2019, 05:31 AM
    Thread: Flask: No user_loader has been installed for this LoginManager
Post: RE: Flask: No user_loader has been installed for t...

Use request_loader instead and pull whatever data you need to tell them apart from the request data. http://flask-login.readthedocs.io/en/lat...est-loader
LeanbridgeTech Web Scraping & Web Development 17 11,812 Dec-10-2019, 05:27 AM
    Thread: [split] SEO and Python Forums
Post: RE: [split] SEO and Python Forums

Search Engine Optimization is about helping search engines understand and ... Index - Google stores all web pages that it knows about in its index. ... Here are a few basic questions to ask yourself a...
LeanbridgeTech Web Scraping & Web Development 2 1,368 Dec-06-2019, 06:00 AM
    Thread: Flask: No user_loader has been installed for this LoginManager
Post: RE: Flask: No user_loader has been installed for t...

Use request_loader instead and pull whatever data you need to tell them apart from the request data. http://flask-login.readthedocs.io/en/lat...est-loader
LeanbridgeTech Web Scraping & Web Development 17 11,812 Dec-06-2019, 05:58 AM
    Thread: convert a .py file to .exe file
Post: RE: convert a .py file to .exe file

Reply to thread: convert a .py file to .exe file Follow this process Step 1. Installation Step 2. Converting Pick your .py file Pick "One Directory" or "One File" option Pick additional files S...
LeanbridgeTech General Coding Help 12 6,181 Nov-29-2019, 06:15 AM
    Thread: How to use subprocess send commands to windows shell
Post: RE: How to use subprocess send commands to windows...

How to use subprocess send commands to windows shell See : https://www.pythonforbeginners.com/os/su...nistrators Run the command described by "args". We can run the command line with the arguments pas...
LeanbridgeTech General Coding Help 3 4,519 Nov-26-2019, 04:40 AM
    Thread: gpedit.msc - pls help!
Post: RE: gpedit.msc - pls help!

GPEdit.msc or Group Policy Editor is a configuration manager for Windows which makes it easier to configure Windows settings. Instead of going through Windows Registry, the user can configure differen...
LeanbridgeTech General Coding Help 4 2,853 Nov-26-2019, 04:08 AM
    Thread: str.endswith(): vague documentation
Post: RE: str.endswith(): vague documentation

The endswith() method returns True if a string ends with the given suffix otherwise returns False. Syntax : str.endswith(suffix, start, end)
LeanbridgeTech News and Discussions 4 2,229 Nov-22-2019, 05:29 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020