Top "Python-module" questions

A module is a file containing Python definitions and statements.

pySerial AttributeError: module 'serial' has no attribute 'Serial'

I have windows 7 64 bit and Python 3.6 I literally dig entire web for solving this - and nothing works sadly. AttributeError …

python pyserial python-module
pip: inconsistent permissions issues

When installing a package via sudo pip-python (CentOS 6 package: python-pip-0.8-1.el6.noarch), I sometimes get permission issues with the …

python centos pip python-module
Intellij/Pycharm can't debug Python modules

I use PyCharm/IntelliJ community editions from a wile to write and debug Python scripts, but now I'm trying to …

python debugging intellij-idea pycharm python-module
How to move all modules to new version of Python (from 3.6 to 3.7)

I just upgraded to python 3.7 and I realized that all my modules stuck with the previous version. Even Django is …

python package updates python-module
Recursive version of 'reload'

When I'm developing Python code, I usually test it in an ad-hoc way in the interpreter. I'll import some_module, …

python python-module python-import
Python Module for Session Management

Is there any equivalent module for session management like Perl's CGI::Session or Apache::Session ? (I know most python web …

python python-module session-management
Abort execution of a module in Python

I'd like to stop evaluation of a module that is being imported, without stopping the whole program. Here's an example …

python python-3.x python-module
Python packages: relative imports

I'm working on a Python application consisting of a core and multiple independent modules using the core. I'm having difficulty …

python python-module relative-import
Mock an entire module in python

I have an application that imports a module from PyPI. I want to write unittests for that application's source code, …

python unit-testing mocking python-module python-mock
Python cx_Freeze name __file__ is not defined

I have a python script which gets an image from the internet, downloads it, sets as desktop background and updates …

python cx-freeze python-module setup.py self-reference