Python bamboolib has no attribute plugins - python

I'm trying to install bamboolib on a virtual env (py 3.6.8) but when I try to import the library on Jupyter lab I get the following error: module 'bamboolib' has no attribute 'plugins'.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\f.surace\py36\lib\site-packages\bamboolib\__init__.py", line 85, in <module>
from bamboolib.wrangler import show
File "C:\Users\f.surace\py36\lib\site-packages\bamboolib\wrangler.py", line 81, in <module>
from bamboolib.views.suggest_string_manipulation import SuggestStringManipulation
File "C:\Users\f.surace\py36\lib\site-packages\bamboolib\views\suggest_string_manipulation.py", line 13, in <module>
from bamboolib.transformation_plugins.string_transformations import (
File "C:\Users\f.surace\py36\lib\site-packages\bamboolib\transformation_plugins\__init__.py", line 5, in <module>
from bamboolib.transformation_plugins.bulk_change_datatype import BulkChangeDatatype
File "C:\Users\f.surace\py36\lib\site-packages\bamboolib\transformation_plugins\bulk_change_datatype.py", line 9, in <module>
from bamboolib.plugins import TransformationPlugin, DF_OLD, DF_NEW, Singleselect, Text
File "C:\Users\f.surace\py36\lib\site-packages\bamboolib\plugins\__init__.py", line 6, in <module>
from bamboolib.plugins._utils import create_plugin_base_class
File "C:\Users\f.surace\py36\lib\site-packages\bamboolib\plugins\_utils.py", line 5, in <module>
import bamboolib.plugins._registry as PluginRegistry
AttributeError: module 'bamboolib' has no attribute 'plugins'

Related

Tried to import googletrans to use it with tkinter and got this error

I use python3.6.0 (googletrans3.0). I import googletrans3.0.
Traceback (most recent call last):
File "C:\Python\Python36-32\traduction essai.py", line 3, in <module>
import googletrans
File "C:\Python\Python36-32\lib\site-packages\googletrans\__init__.py", line 6, in <module>
from googletrans.client import Translator
File "C:\Python\Python36-32\lib\site-packages\googletrans\client.py", line 10, in <module>
import httpcore
File "C:\Python\Python36-32\lib\site-packages\httpcore\__init__.py", line 2, in <module>
from ._async.connection_pool import AsyncConnectionPool
File "C:\Python\Python36-32\lib\site-packages\httpcore\_async\connection_pool.py", line 4, in <module>
from .._backends.auto import AsyncLock, AsyncSemaphore, AutoBackend
File "C:\Python\Python36-32\lib\site-packages\httpcore\_backends\auto.py", line 4, in <module>
import sniffio
File "C:\Python\Python36-32\lib\site-packages\sniffio\__init__.py", line 10, in <module>
from ._impl import (
File "C:\Python\Python36-32\lib\site-packages\sniffio\_impl.py", line 1, in <module>
from contextvars import ContextVar
File "C:\Python\Python36-32\lib\site-packages\contextvars\__init__.py", line 4, in <module>
import immutables
File "C:\Python\Python36-32\lib\site-packages\immutables\__init__.py", line 18, in <module>
from ._protocols import MapKeys as MapKeys
File "C:\Python\Python36-32\lib\site-packages\immutables\_protocols.py", line 6, in <module>
from typing import NoReturn
ImportError: cannot import name 'NoReturn'
image

ImportError: cannot import name DefaultEngineStrategy

I'm trying to run a python game source I made, but everytime I do "python Login.py" I get this whole traceback:
Traceback (most recent call last):
File "Login.py", line 1, in <module>
from Houdini.HoudiniFactory import HoudiniFactory
File "/var/xsource/Houdini/HoudiniFactory.py", line 18, in <module>
from Houdini.Crumbs import retrieveItemCollection, retrieveRoomCollection, \
File "/var/xsource/Houdini/Crumbs/__init__.py", line 45, in <module>
from Houdini.Crumbs.Room import RoomSchema, RoomCollection
File "/var/xsource/Houdini/Crumbs/Room.py", line 6, in <module>
from Houdini.Handlers.Games.Table import leaveTable
File "/var/xsource/Houdini/Handlers/Games/__init__.py", line 4, in <module>
from Houdini.Handlers.Play.Moderation import cheatBan
File "/var/xsource/Houdini/Handlers/Play/Moderation.py", line 4, in <module>
from Houdini.Data.Penguin import Penguin
File "/var/xsource/Houdini/Data/__init__.py", line 5, in <module>
from alchimia.engine import TwistedEngine
File "/home/ubuntu/.local/lib/python2.7/site-packages/alchimia/__init__.py", line 3, in <module>
from alchimia.strategy import TWISTED_STRATEGY
File "/home/ubuntu/.local/lib/python2.7/site-packages/alchimia/strategy.py", line 3, in <module>
from sqlalchemy.engine.strategies import DefaultEngineStrategy
ImportError: cannot import name DefaultEngineStrategy
If someone knows how to fix this please let me know, thank you so much!

AttributeError: module 'time' has no attribute 'clock'

This is my code:
from example1 import db, Puppy
db.create_all()
sam = Puppy('Sammy', 3)
frank = Puppy ('Frankie',2)
print (sam.id)
print (frank.id)
db.session.add_all([sam,frank])
db.session.commit()
print(sam.id)
print(frank.id)
And this is my error:
& C:/Python/Python38/python.exe r:/dinabelajar/Flask-Bootcamp-master/05-Databases/coba/setdatabase.py
Traceback (most recent call last):
File "r:/dinabelajar/Flask-Bootcamp-master/05-Databases/coba/setdatabase.py", line 1, in <module>
from example1 import db, Puppy
File "r:\dinabelajar\Flask-Bootcamp-master\05-Databases\coba\example1.py", line 3, in <module>
from flask_sqlalchemy import SQLAlchemy
File "C:\Python\Python38\lib\site-packages\flask_sqlalchemy\__init__.py", line 22, in <module>
import sqlalchemy
File "C:\Python\Python38\lib\site-packages\sqlalchemy\__init__.py", line 9, in <module>
from .sql import (
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\__init__.py", line 8, in <module>
from .expression import (
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\expression.py", line 34, in <module>
from .visitors import Visitable
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\visitors.py", line 28, in <module>
from .. import util
File "C:\Python\Python38\lib\site-packages\sqlalchemy\util\__init__.py", line 8, in <module>
from .compat import callable, cmp, reduce, \
File "C:\Python\Python38\lib\site-packages\sqlalchemy\util\compat.py", line 172, in <module>
time_func = time.clock
AttributeError: module 'time' has no attribute 'clock'
PS R:\dinabelajar\Flask-Bootcamp-master> & C:/Python/Python38/python.exe r:/dinabelajar/Flask-Bootcamp-master/05-Databases/coba/setdatabase.py
Traceback (most recent call last):
File "r:/dinabelajar/Flask-Bootcamp-master/05-Databases/coba/setdatabase.py", line 1, in <module>
from example1 import db, Puppy
File "r:\dinabelajar\Flask-Bootcamp-master\05-Databases\coba\example1.py", line 3, in <module>
from flask_sqlalchemy import SQLAlchemy
File "C:\Python\Python38\lib\site-packages\flask_sqlalchemy\__init__.py", line 22, in <module>
import sqlalchemy
File "C:\Python\Python38\lib\site-packages\sqlalchemy\__init__.py", line 9, in <module>
from .sql import (
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\__init__.py", line 8, in <module>
from .expression import (
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\expression.py", line 34, in <module>
from .visitors import Visitable
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\visitors.py", line 28, in <module>
from .. import util
File "C:\Python\Python38\lib\site-packages\sqlalchemy\util\__init__.py", line 8, in <module>
from .compat import callable, cmp, reduce, \
File "C:\Python\Python38\lib\site-packages\sqlalchemy\util\compat.py", line 172, in <module>
time_func = time.clock
AttributeError: module 'time' has no attribute 'clock'
PS R:\dinabelajar\Flask-Bootcamp-master> & C:/Python/Python38/python.exe r:/dinabelajar/Flask-Bootcamp-master/05-Databases/coba/setdatabase.py
Traceback (most recent call last):
File "r:/dinabelajar/Flask-Bootcamp-master/05-Databases/coba/setdatabase.py", line 1, in <module>
from example1 import db, Puppy
File "r:\dinabelajar\Flask-Bootcamp-master\05-Databases\coba\example1.py", line 3, in <module>
from flask_sqlalchemy import SQLAlchemy
File "C:\Python\Python38\lib\site-packages\flask_sqlalchemy\__init__.py", line 22, in <module>
import sqlalchemy
File "C:\Python\Python38\lib\site-packages\sqlalchemy\__init__.py", line 9, in <module>
from .sql import (
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\__init__.py", line 8, in <module>
from .expression import (
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\expression.py", line 34, in <module>
from .visitors import Visitable
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\visitors.py", line 28, in <module>
from .. import util
File "C:\Python\Python38\lib\site-packages\sqlalchemy\util\__init__.py", line 8, in <module>
from .compat import callable, cmp, reduce, \
File "C:\Python\Python38\lib\site-packages\sqlalchemy\util\compat.py", line 172, in <module>
time_func = time.clock
AttributeError: module 'time' has no attribute 'clock'
PS R:\dinabelajar\Flask-Bootcamp-master> & C:/Python/Python38/python.exe r:/dinabelajar/Flask-Bootcamp-master/05-Databases/coba/setdatabase.py
Traceback (most recent call last):
File "r:/dinabelajar/Flask-Bootcamp-master/05-Databases/coba/setdatabase.py", line 1, in <module>
from example1 import db, Puppy
File "r:\dinabelajar\Flask-Bootcamp-master\05-Databases\coba\example1.py", line 3, in <module>
from flask_sqlalchemy import SQLAlchemy
File "C:\Python\Python38\lib\site-packages\flask_sqlalchemy\__init__.py", line 22, in <module>
import sqlalchemy
File "C:\Python\Python38\lib\site-packages\sqlalchemy\__init__.py", line 9, in <module>
from .sql import (
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\__init__.py", line 8, in <module>
from .expression import (
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\expression.py", line 34, in <module>
from .visitors import Visitable
File "C:\Python\Python38\lib\site-packages\sqlalchemy\sql\visitors.py", line 28, in <module>
from .. import util
File "C:\Python\Python38\lib\site-packages\sqlalchemy\util\__init__.py", line 8, in <module>
from .compat import callable, cmp, reduce, \
File "C:\Python\Python38\lib\site-packages\sqlalchemy\util\compat.py", line 172, in <module>
time_func = time.clock
AttributeError: module 'time' has no attribute 'clock'
How can i fix this?
you must update SQLAlchemy
pip uninstall SQLAlchemy
pip install SQLAlchemy==1.3.6
change time.clock() to time.perf_counter() in python 3.8

invalid syntax when trying to open jupyter notebook

when i type in the command jupyter notebook in my terminal,i am getting this error.
it was working fine and suddenly this seems to pop up
decentmakeover#DecentMakeover:~$ jupyter notebook
Traceback (most recent call last):
File "/home/decentmakeover/anaconda3/bin/jupyter-notebook", line 4,
in <module>
import notebook.notebookapp
File "/home/decentmakeover/anaconda3/lib/python3.6/site-
packages/notebook/notebookapp.py", line 74, in <module>
from .services.kernels.kernelmanager import MappingKernelManager
File "/home/decentmakeover/anaconda3/lib/python3.6/site-
packages/notebook/services/kernels/kernelmanager.py", line 16, in <
module>
from jupyter_client.multikernelmanager import MultiKernelManager
File "/home/decentmakeover/anaconda3/lib/python3.6/site-
packages/jupyter_client/__init__.py", line 7, in <module>
from .manager import KernelManager, run_kernel
File "/home/decentmakeover/anaconda3/lib/python3.6/site-
packages/jupyter_client/manager.py", line 32, in <module>
from .session import Session
File "/home/decentmakeover/anaconda3/lib/python3.6/site-
packages/jupyter_client/session.py", line 61, in <module>
from jupyter_client.jsonutil import extract_dates, squash_dates,
date_default
File "/home/decentmakeover/anaconda3/lib/python3.6/site-
packages/jupyter_client/jsonutil.py", line 11, in <module>
from dateutil.parser import parse as _dateutil_parse
File "/home/decentmakeover/anaconda3/lib/python3.6/site-packa
ges/dateutil/parser.py", line 303
raise ValueError, "unknown string format"
^
SyntaxError: invalid syntax
How do i fix this?

Weird behaviour with tweepy in Python?

I have python 2.7.9 on OS X (10.11). I have installed tweepy 3.5.0 and simplejson 3.8.1. When i write a program (IDE: textWrangler) for updating status of twitter account (by using tweepy) and run the program using command line it throws error on "import tweepy" in a program. However when i run the same code on python shell, it execute sucessfuly (without any error). Any suggestions or comments?
Traceback (most recent call last):
File "tweepytesting.py", line 1, in <module>
import tweepy
File "build/bdist.macosx-10.6-intel/egg/tweepy/__init__.py", line 14, in <module>
File "build/bdist.macosx-10.6-intel/egg/tweepy/api.py", line 12, in <module>
File "build/bdist.macosx-10.6-intel/egg/tweepy/binder.py", line 11, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/__init__.py", line 53, in <module>
from .packages.urllib3.contrib import pyopenssl
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/packages/__init__.py", line 27, in <module>
from . import urllib3
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/packages/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 33, in <module>
from .packages.ssl_match_hostname import CertificateError
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/packages/urllib3/packages/__init__.py", line 3, in <module>
from . import ssl_match_hostname
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py", line 3, in <module>
from ssl import CertificateError, match_hostname
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 90, in <module>
import textwrap
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/textwrap.py", line 40, in <module>
class TextWrapper:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/textwrap.py", line 82, in TextWrapper
whitespace_trans = string.maketrans(_whitespace, ' ' * len(_whitespace))
AttributeError: 'module' object has no attribute 'maketrans'
If I add this line:
import string; print(string)
just above import tweepy, then the following is printed:
<module 'string' from '/Users/yasirmuhammad/Desktop/learnpython/string.pyc'>

Categories

Resources