Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: an integer is required (got type bytes) #4580

Closed
johanndavel opened this issue Dec 21, 2019 · 8 comments
Closed

TypeError: an integer is required (got type bytes) #4580

johanndavel opened this issue Dec 21, 2019 · 8 comments
Labels
state:stale by author About to be colosed due to inactivity

Comments

@johanndavel
Copy link

Hi guys, i get this error when executing the installer. is there something wrong with my python code or is this an installer error ?

@danyeaw
Copy link
Contributor

danyeaw commented Dec 22, 2019

@johanndavel which version are you using? Have you tried with the development version?

@amirymax
Copy link

I also had this problem, and just installed the latest version. Use the following:

pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz

@mc-gary
Copy link

mc-gary commented Dec 31, 2019

i think it May not be compatible with Python 3.8

@yangmijun
Copy link

I got same problem,python 3.8.1

@mc-gary
Copy link

mc-gary commented Jan 2, 2020

I got same problem,python 3.8.1
my bro
i think you can try install the development version of pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/tarball/develop

@Legorooj
Copy link
Member

@mc-gary I would recommend not installing that for building executables.

@johanndavel @amirymax @yangmijun :

PyInstaller currently doesn't support 3.8.
I suggest you build with 3.7 or earlier until python 3.8 is supported

@Legorooj Legorooj added the state:stale by author About to be colosed due to inactivity label Feb 7, 2020
@Legorooj
Copy link
Member

Legorooj commented Feb 7, 2020

Can this be closed?

@Rhandall
Copy link

xception ignored in thread started by: <function check_errors..wrapper at 0x7f96f302bd30>
Traceback (most recent call last):
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/django/utils/autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 117, in inner_run
self.check(display_num_errors=True)
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/django/core/management/base.py", line 376, in check
all_issues = self._run_checks(
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/django/core/management/base.py", line 366, in _run_checks
return checks.run_checks(**kwargs)
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/django/core/checks/registry.py", line 71, in run_checks
new_errors = check(app_configs=app_configs)
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique
all_namespaces = _load_all_namespaces(resolver)
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces
url_patterns = getattr(resolver, 'url_patterns', [])
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/django/utils/functional.py", line 37, in get
res = instance.dict[self.name] = self.func(instance)
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 533, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/django/utils/functional.py", line 37, in get
res = instance.dict[self.name] = self.func(instance)
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 526, in urlconf_module
return import_module(self.urlconf_name)
File "/Users/rhandall/opt/anaconda3/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/rhandall/Documents/GitHub/school_new/base/urls.py", line 5, in
from schoolio import views as schoolio_views
File "/Users/rhandall/Documents/GitHub/school_new/schoolio/views.py", line 81, in
from .standard_matching import match_standard, match_activity, fetch_single_classroom, match_standard_to_international
File "/Users/rhandall/Documents/GitHub/school_new/schoolio/standard_matching.py", line 1, in
from sklearn.feature_extraction.text import CountVectorizer
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/sklearn/init.py", line 80, in
from .base import clone
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/sklearn/base.py", line 21, in
from .utils import _IS_32BIT
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/sklearn/utils/init.py", line 23, in
from .class_weight import compute_class_weight, compute_sample_weight
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/sklearn/utils/class_weight.py", line 7, in
from .validation import _deprecate_positional_args
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/sklearn/utils/validation.py", line 21, in
import joblib
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/joblib/init.py", line 119, in
from .parallel import Parallel
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/joblib/parallel.py", line 28, in
from ._parallel_backends import (FallbackToBackend, MultiprocessingBackend,
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/joblib/_parallel_backends.py", line 22, in
from .executor import get_memmapping_executor
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/joblib/executor.py", line 14, in
from .externals.loky.reusable_executor import get_reusable_executor
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/joblib/externals/loky/init.py", line 12, in
from .backend.reduction import set_loky_pickler
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/joblib/externals/loky/backend/reduction.py", line 125, in
from joblib.externals import cloudpickle # noqa: F401
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/joblib/externals/cloudpickle/init.py", line 3, in
from .cloudpickle import *
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/joblib/externals/cloudpickle/cloudpickle.py", line 152, in
_cell_set_template_code = _make_cell_set_template_code()
File "/Users/rhandall/Documents/GitHub/school_new/venv/lib/python3.8/site-packages/joblib/externals/cloudpickle/cloudpickle.py", line 133, in _make_cell_set_template_code
return types.CodeType(
TypeError: an integer is required (got type bytes)

Please anyone help

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
state:stale by author About to be colosed due to inactivity
Projects
None yet
Development

No branches or pull requests

7 participants