Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

75
Views
Error importing appdirs when deploying app via heroku

remote: Installing build dependencies: started

remote: Installing build dependencies: finished with status 'done'

remote: Getting requirements to build the wheel: started

remote: Getting requirements to build the wheel: finished with status 'done'

remote: ERROR: Exception:

Remote: Trace (most recent last call):

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper

remote: status = run_func(*args)

remote: ^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/cli/req_command.py", line 245, in container

remote: return function (self, options, arguments)

remote: ^^^^^^^^^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 377, running

remote: require_set = resolve.resolve(

remote: ^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/solving/resolvelib/resolver.py", line 95, in resolution

remote: result = self._result = resolve.resolve(

remote: ^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolution

remote: state = resolution.resolve(requirements, max_rounds=max_rounds)

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 397, in resolution

remote: self._add_to_criteria(self.state.criteria, r, parent=None)

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in add to_criteria

remote: yes no criteria.candidates:

remote: ^^^^^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in bool

remote: return bool(self._sequence)

remote: ^^^^^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/solving/resolvelib/found_candidates.py", line 155, in bool

remote: return any (self)

remote: ^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/solving/resolvelib/found_candidates.py", line 143, in <genexpr>

remote: return (c for c in iterator if id(c) is not in self._incompatible_ids)

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/solving/resolvelib/found_candidates.py", line 47, in iter built

remote: candidate = func()

remote: ^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/solving/resolvelib/factory.py", line 182, in make candidate_from_link

remote: base: Optional[BaseCandidate] = self._make_base_candidate_from_link(

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/solving/resolvelib/factory.py", line 228, in make base_candidate_from_link

remote: self._link_candidate_cache[link] = LinkCandidate(

remote: ^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/solving/resolvelib/candidates.py", line 293, in init

remote: super()._ init _(

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/solving/resolvelib/candidates.py", line 156, in init

remote: self.dist = self._prepare()

remote: ^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/solving/resolvelib/candidates.py", line 225, in _prepare

remote: dist = self._prepare_distribution()

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/solving/resolvelib/candidates.py", line 304, in prepare distribution

remote: return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 525, in prepare_linked_requirement

remote: return self._prepare_linked_requirement(req, parallel_builds)

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 640, in prepare linked_requirement

remote: dist = get prepared_distribution(

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 71, in get prepared_distribution

remote: abstract_dist.prepare_distribution_metadata(

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/distributions/sdist.py", line 54, in prepare_distribution_metadata

remote: self._install_build_reqs(finder)

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/distributions/sdist.py", line 124, in install build_reqs

remote: build_reqs = self._get_build_requires_wheel()

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/distributions/sdist.py", line 101, in get build_requires_wheel

remote: return backend.get_requires_for_build_wheel()

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_internal/utils/misc.py", line 751, in get_requires_for_build_wheel

remote: return super().get_requires_for_build_wheel(config_settings=cs)

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 166, in get_requires_for_build_wheel

remote: return self._call_hook('get_requires_for_build_wheel', {

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 321, in call hook

remote: raise BackendUnavailable(data.get('traceback', ''))

remote: pip._vendor.pyproject_hooks._impl.BackendUnavailable: trace (most recent last call):

remote: File "/app/.heroku/python/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 77, in build backend

remote: obj = import_module(mod_path)

remote: ^^^^^^^^^^^^^^^^^^^^^^

remote: File "/app/.heroku/python/lib/python3.12/importlib/_ init .py", line 90, in import module

remote: returns bootstrap. gcd_import(name[level:], package, level)

remote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^

remote: File "<frozen importlib._bootstrap>", line 1387, in gcd import

remote: File "<frozen importlib._bootstrap>", line 1360, in find and_load

remote: File "<frozen importlib._bootstrap>", line 1310, in find and_load_unlocked

remote: File "<frozen importlib._bootstrap>", line 488, in call with_frames_removed

remote: File "<frozen importlib._bootstrap>", line 1387, in gcd import

remote: File "<frozen importlib._bootstrap>", line 1360, in find and_load

remote: File "<frozen importlib._bootstrap>", line 1331, in find and_load_unlocked

remote: File "<frozen importlib._bootstrap>", line 935, in load unlocked

remote: File "<frozen importlib._bootstrap_external>", line 995, in exec_module

remote: File "<frozen importlib._bootstrap>", line 488, in call with_frames_removed

remote: File "/tmp/pip-build-env-swc9jzl2/overlay/lib/python3.12/site-packages/setuptools/_ init _.py", line 16, in <module>

remote: import setuptools.version

remote: File "/tmp/pip-build-env-swc9jzl2/overlay/lib/python3.12/site-packages/setuptools/version.py", line 1, in <module>

remote: import pkg_resources

remote: File "/tmp/pip-build-env-swc9jzl2/overlay/lib/python3.12/site-packages/pkg_resources/_ init _.py", line 73, in <module>

remote: from pkg_resources.extern import appdirs

remote : ImportError: cannot import name 'appdirs' from 'pkg_resources.extern' (/tmp/pip-build-env-swc9jzl2/overlay/lib/python3.12/site-packages/pkg_resources/extern/_init_ .py)

remote:

remote: ! Push rejected, failed to compile Python application.

remote:

remote: ! Failed push

remote: Verifying implementation...

remote:

remote: ! Rejected push to voice assistant.

remote:

At https://git.heroku.com/voiceassistant.git

! [remote rejected] master -> master (pre-receive hook rejected)

error: Could not send some references to ' https://git.heroku.com/voiceassistant.git '

E:\final project\streamlit>

my requirements.txt contains:
streamlit==1.4.0

sound device==0.4.2

pyttsx3==2.90

voice recognition==3.8.1

spicy<1.7.3

streamlit-webrtc==0.21.0

paudio==0.2.11; sys_platform == 'win32'

application directories == 1.4.4

configuration tools==60.9.0

I added appdirs and setuptools per gpt's suggestion
but it didn't solve the problem.
I'm also on Windows.

over 2 years ago · Carlos Garzón Colorado
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!