Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Unable to install gcld3 on python 3.10.12 #88

Open
MisbahKhan789 opened this issue Oct 3, 2023 · 1 comment
Open

Unable to install gcld3 on python 3.10.12 #88

MisbahKhan789 opened this issue Oct 3, 2023 · 1 comment

Comments

@MisbahKhan789
Copy link

MisbahKhan789 commented Oct 3, 2023

Hello,

I am unable to install gcld3 on python 3.10.12. The error I am getting is as shown in error1 below. The error suggests that I use pep517, and if I do that, I get another error as shown in error2 below. Please let me know if this is a python incompatibility issue or something else, and if there is a work around to install gcld3 on python 3.10.12.

Note: Only partial error snippets posted below due to character limit of the post. Complete error posted here.

Thank you,
Misbah


Error1:

Collecting gcld3
  Downloading gcld3-3.0.13.tar.gz (647 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 647.8/647.8 kB 11.8 MB/s eta 0:00:00a 0:00:01
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: gcld3
  Building wheel for gcld3 (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [4404 lines of output]
      /home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!
      
              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************
      
      !!
        dist.fetch_build_eggs(dist.setup_requires)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/gcld3
      copying gcld3/__init__.py -> build/lib.linux-x86_64-cpython-310/gcld3
      running build_ext
      building 'gcld3.pybind_ext' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/gcld3
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/cld_3
      creating build/temp.linux-x86_64-cpython-310/src/cld_3/protos
      creating build/temp.linux-x86_64-cpython-310/src/script_span
      gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ec2-user/anaconda3/envs/python3/include -fPIC -O2 -isystem /home/ec2-user/anaconda3/envs/python3/include -fPIC -I/tmp/pip-install-t1oryt77/gcld3_e2f52964fa084ad5bdb218736e52518d/.eggs/pybind11-2.11.1-py3.10.egg/pybind11/include -I/home/ec2-user/anaconda3/envs/python3/include/python3.10 -c gcld3/pybind_ext.cc -o build/temp.linux-x86_64-cpython-310/gcld3/pybind_ext.o
      In file included from /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/stubs/common.h:44:0,
                       from /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/io/coded_stream.h:130,
                       from gcld3/../src/cld_3/protos/feature_extractor.pb.h:24,
                       from gcld3/../src/feature_extractor.h:45,
                       from gcld3/../src/embedding_feature_extractor.h:23,
                       from gcld3/../src/nnet_language_identifier.h:22,
                       from gcld3/pybind_ext.cc:5:
      /home/ec2-user/anaconda3/envs/python3/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type
       using string_view = std::string_view;
                                ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type
       inline string_view ClippedSubstr(string_view s, size_t pos,
              ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type
       constexpr string_view NullSafeStringView(const char* p) {
                 ^~~~~~~~~~~
      In file included from /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/check_op.h:36:0,
                       from /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/check_impl.h:19,
                       from /home/ec2-user/anaconda3/envs/python3/include/absl/log/absl_check.h:38,
                       from /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/io/coded_stream.h:132,
                       from gcld3/../src/cld_3/protos/feature_extractor.pb.h:24,
                       from gcld3/../src/feature_extractor.h:45,
                       from gcld3/../src/embedding_feature_extractor.h:23,
                       from gcld3/../src/nnet_language_identifier.h:22,
                       from gcld3/pybind_ext.cc:5:
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:49:15: error: expected ‘;’ at end of member declaration
         NullStream& AtLocation(absl::string_view, int) { return *this; }
                     ^~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:49:43: error: expected ‘)’ before ‘,’ token
         NullStream& AtLocation(absl::string_view, int) { return *this; }
                                                 ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:53:3: error: ‘absl::lts_20230125::log_internal::NullStream& absl::lts_20230125::log_internal::NullStream::AtLocation(SourceLocationType)’ conflicts with a previous declaration
         }
         ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:49:32: note: previous declaration ‘absl::lts_20230125::log_internal::NullStream& absl::lts_20230125::log_internal::NullStream::AtLocation’
         NullStream& AtLocation(absl::string_view, int) { return *this; }
                                      ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h: In constructor ‘absl::lts_20230125::log_internal::NullStreamMaybeFatal::NullStreamMaybeFatal(absl::lts_20230125::LogSeverity)’:
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:103:53: error: use of deleted function ‘absl::lts_20230125::log_internal::NullStream::NullStream()’
             : fatal_(severity == absl::LogSeverity::kFatal) {}
                                                           ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:47:7: note: ‘absl::lts_20230125::log_internal::NullStream::NullStream()’ is implicitly deleted because the default definition would be ill-formed:
       class NullStream {
             ^~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:47:7: error: uninitialized reference member in ‘class absl::lts_20230125::log_internal::NullStream’
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:49:32: note: ‘absl::lts_20230125::log_internal::NullStream& absl::lts_20230125::log_internal::NullStream::AtLocation’ should be initialized
         NullStream& AtLocation(absl::string_view, int) { return *this; }
                                      ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h: In constructor ‘absl::lts_20230125::log_internal::NullStreamFatal::NullStreamFatal()’:
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:117:21: error: use of deleted function ‘absl::lts_20230125::log_internal::NullStream::NullStream()’
         NullStreamFatal() {}
                           ^
      In file included from /home/ec2-user/anaconda3/envs/python3/include/absl/time/time.h:89:0,
                       from /home/ec2-user/anaconda3/envs/python3/include/absl/log/log_entry.h:35,
                       from /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/log_message.h:41,
                       from /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/strip.h:24,
                       from /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/check_op.h:37,
                       from /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/check_impl.h:19,
                       from /home/ec2-user/anaconda3/envs/python3/include/absl/log/absl_check.h:38,
                       from /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/io/coded_stream.h:132,
                       from gcld3/../src/cld_3/protos/feature_extractor.pb.h:24,
                       from gcld3/../src/feature_extractor.h:45,
                       from gcld3/../src/embedding_feature_extractor.h:23,
                       from gcld3/../src/nnet_language_identifier.h:22,
                       from gcld3/pybind_ext.cc:5:
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h: At global scope:
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:489:27: error: ‘string_view’ is not a member of ‘absl’
       bool ParseCivilTime(absl::string_view s, CivilSecond* c);
                                 ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:489:53: error: expected primary-expression before ‘*’ token
       bool ParseCivilTime(absl::string_view s, CivilSecond* c);
                                                           ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:489:55: error: ‘c’ was not declared in this scope
       bool ParseCivilTime(absl::string_view s, CivilSecond* c);
                                                             ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:489:56: error: expression list treated as compound expression in initializer [-fpermissive]
       bool ParseCivilTime(absl::string_view s, CivilSecond* c);
                                                              ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:490:27: error: redefinition of ‘bool absl::lts_20230125::ParseCivilTime’
       bool ParseCivilTime(absl::string_view s, CivilMinute* c);
                                 ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:489:6: note: ‘bool absl::lts_20230125::ParseCivilTime’ previously defined here
       bool ParseCivilTime(absl::string_view s, CivilSecond* c);
            ^~~~~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:490:27: error: ‘string_view’ is not a member of ‘absl’
       bool ParseCivilTime(absl::string_view s, CivilMinute* c);
                                 ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:490:53: error: expected primary-expression before ‘*’ token
       bool ParseCivilTime(absl::string_view s, CivilMinute* c);
                                                           ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:490:55: error: ‘c’ was not declared in this scope
       bool ParseCivilTime(absl::string_view s, CivilMinute* c);
                                                             ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:491:27: error: redefinition of ‘bool absl::lts_20230125::ParseCivilTime’
       bool ParseCivilTime(absl::string_view s, CivilHour* c);
                                 ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:489:6: note: ‘bool absl::lts_20230125::ParseCivilTime’ previously defined here
       bool ParseCivilTime(absl::string_view s, CivilSecond* c);
            ^~~~~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:491:27: error: ‘string_view’ is not a member of ‘absl’
       bool ParseCivilTime(absl::string_view s, CivilHour* c);
                                 ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:491:51: error: expected primary-expression before ‘*’ token
       bool ParseCivilTime(absl::string_view s, CivilHour* c);
                                                         ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:491:53: error: ‘c’ was not declared in this scope
       bool ParseCivilTime(absl::string_view s, CivilHour* c);
                                                           ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:492:27: error: redefinition of ‘bool absl::lts_20230125::ParseCivilTime’
       bool ParseCivilTime(absl::string_view s, CivilDay* c);
                                 ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:489:6: note: ‘bool absl::lts_20230125::ParseCivilTime’ previously defined here
       bool ParseCivilTime(absl::string_view s, CivilSecond* c);
            ^~~~~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:492:27: error: ‘string_view’ is not a member of ‘absl’
       bool ParseCivilTime(absl::string_view s, CivilDay* c);
                                 ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:492:50: error: expected primary-expression before ‘*’ token
       bool ParseCivilTime(absl::string_view s, CivilDay* c);
                                                        ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:492:52: error: ‘c’ was not declared in this scope
       bool ParseCivilTime(absl::string_view s, CivilDay* c);
                                                          ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:493:27: error: redefinition of ‘bool absl::lts_20230125::ParseCivilTime’
       bool ParseCivilTime(absl::string_view s, CivilMonth* c);
                                 ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/civil_time.h:489:6: note: ‘bool absl::lts_20230125::ParseCivilTime’ previously defined here
       bool ParseCivilTime(absl::string_view s, CivilSecond* c);
            ^~~~~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/time/ 
      <additional lines of error here>
ABSL_DCHECK_GE(index, 0);
           ^
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h:203:5: error: use of deleted function ‘absl::lts_20230125::log_internal::NullStream::NullStream()’
           ABSL_DCHECK_LT(index, current_size_);
           ^
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h: In instantiation of ‘const typename TypeHandler::Type& google::protobuf::internal::RepeatedPtrFieldBase::Get(int) const [with TypeHandler = google::protobuf::RepeatedPtrField<chrome_lang_id::Token>::TypeHandler; typename TypeHandler::Type = chrome_lang_id::Token]’:
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h:1338:48:   required from ‘const Element& google::protobuf::RepeatedPtrField<T>::Get(int) const [with Element = chrome_lang_id::Token]’
      gcld3/../src/cld_3/protos/sentence.pb.h:1051:37:   required from here
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h:271:5: error: use of deleted function ‘absl::lts_20230125::log_internal::NullStream::NullStream()’
           ABSL_DCHECK_GE(index, 0);
           ^
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h:272:5: error: use of deleted function ‘absl::lts_20230125::log_internal::NullStream::NullStream()’
           ABSL_DCHECK_LT(index, current_size_);
           ^
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gcld3
  Running setup.py clean for gcld3

Failed to build gcld3
ERROR: Could not build wheels for gcld3, which is required to install pyproject.toml-based projects

Error2:

Collecting gcld3
  Using cached gcld3-3.0.13.tar.gz (647 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: gcld3
  Building wheel for gcld3 (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for gcld3 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [4394 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/gcld3
      copying gcld3/__init__.py -> build/lib.linux-x86_64-cpython-310/gcld3
      running build_ext
      building 'gcld3.pybind_ext' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/gcld3
      creating build/temp.linux-x86_64-cpython-310/src
      creating build/temp.linux-x86_64-cpython-310/src/cld_3
      creating build/temp.linux-x86_64-cpython-310/src/cld_3/protos
      creating build/temp.linux-x86_64-cpython-310/src/script_span
      gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ec2-user/anaconda3/envs/python3/include -fPIC -O2 -isystem /home/ec2-user/anaconda3/envs/python3/include -fPIC -I/tmp/pip-build-env-7jejxblb/normal/lib/python3.10/site-packages/pybind11/include -I/home/ec2-user/anaconda3/envs/python3/include/python3.10 -c gcld3/pybind_ext.cc -o build/temp.linux-x86_64-cpython-310/gcld3/pybind_ext.o
      In file included from /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/stubs/common.h:44:0,
                       from /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/io/coded_stream.h:130,
                       from gcld3/../src/cld_3/protos/feature_extractor.pb.h:24,
                       from gcld3/../src/feature_extractor.h:45,
                       from gcld3/../src/embedding_feature_extractor.h:23,
                       from gcld3/../src/nnet_language_identifier.h:22,
                       from gcld3/pybind_ext.cc:5:
      /home/ec2-user/anaconda3/envs/python3/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type
       using string_view = std::string_view;
                                ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type
       inline string_view ClippedSubstr(string_view s, size_t pos,
              ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type
       constexpr string_view NullSafeStringView(const char* p) {
                 ^~~~~~~~~~~
      In file included from /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/check_op.h:36:0,
                       from /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/check_impl.h:19,
                       from /home/ec2-user/anaconda3/envs/python3/include/absl/log/absl_check.h:38,
                       from /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/io/coded_stream.h:132,
                       from gcld3/../src/cld_3/protos/feature_extractor.pb.h:24,
                       from gcld3/../src/feature_extractor.h:45,
                       from gcld3/../src/embedding_feature_extractor.h:23,
                       from gcld3/../src/nnet_language_identifier.h:22,
                       from gcld3/pybind_ext.cc:5:
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:49:15: error: expected ‘;’ at end of member declaration
         NullStream& AtLocation(absl::string_view, int) { return *this; }
                     ^~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:49:43: error: expected ‘)’ before ‘,’ token
         NullStream& AtLocation(absl::string_view, int) { return *this; }
                                                 ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:53:3: error: ‘absl::lts_20230125::log_internal::NullStream& absl::lts_20230125::log_internal::NullStream::AtLocation(SourceLocationType)’ conflicts with a previous declaration
         }
         ^
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:49:32: note: previous declaration ‘absl::lts_20230125::log_internal::NullStream& absl::lts_20230125::log_internal::NullStream::AtLocation’
         NullStream& AtLocation(absl::string_view, int) { return *this; }
                                      ^~~~~~~~~~~
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h: In constructor ‘absl::lts_20230125::log_internal::NullStreamMaybeFatal::NullStreamMaybeFatal(absl::lts_20230125::LogSeverity)’:
      /home/ec2-user/anaconda3/envs/python3/include/absl/log/internal/nullstream.h:103:53: error: use of deleted function ‘absl::lts_20230125::log_internal::NullStream::NullStream()’
             : fatal_(severity == absl::LogSeverity::kFatal) {}
                              <additional lines of error here>
      
           ABSL_DCHECK_GE(n, 0);
           ^
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h: In instantiation of ‘typename TypeHandler::Type* google::protobuf::internal::RepeatedPtrFieldBase::Mutable(int) [with TypeHandler = google::protobuf::RepeatedPtrField<chrome_lang_id::Token>::TypeHandler; typename TypeHandler::Type = chrome_lang_id::Token]’:
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h:1354:52:   required from ‘Element* google::protobuf::RepeatedPtrField<T>::Mutable(int) [with Element = chrome_lang_id::Token]’
      gcld3/../src/cld_3/protos/sentence.pb.h:1043:50:   required from here
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h:202:5: error: use of deleted function ‘absl::lts_20230125::log_internal::NullStream::NullStream()’
           ABSL_DCHECK_GE(index, 0);
           ^
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h:203:5: error: use of deleted function ‘absl::lts_20230125::log_internal::NullStream::NullStream()’
           ABSL_DCHECK_LT(index, current_size_);
           ^
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h: In instantiation of ‘const typename TypeHandler::Type& google::protobuf::internal::RepeatedPtrFieldBase::Get(int) const [with TypeHandler = google::protobuf::RepeatedPtrField<chrome_lang_id::Token>::TypeHandler; typename TypeHandler::Type = chrome_lang_id::Token]’:
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h:1338:48:   required from ‘const Element& google::protobuf::RepeatedPtrField<T>::Get(int) const [with Element = chrome_lang_id::Token]’
      gcld3/../src/cld_3/protos/sentence.pb.h:1051:37:   required from here
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h:271:5: error: use of deleted function ‘absl::lts_20230125::log_internal::NullStream::NullStream()’
           ABSL_DCHECK_GE(index, 0);
           ^
      /home/ec2-user/anaconda3/envs/python3/include/google/protobuf/repeated_ptr_field.h:272:5: error: use of deleted function ‘absl::lts_20230125::log_internal::NullStream::NullStream()’
           ABSL_DCHECK_LT(index, current_size_);
           ^
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gcld3
Failed to build gcld3
ERROR: Could not build wheels for gcld3, which is required to install pyproject.toml-based projects
@cdahlin
Copy link

cdahlin commented Oct 6, 2023

I got the same error, and tried to install it on Python 3.11 instead. There, the message was more informative: RuntimeError: Please install the proto buffer compiler. After installing the proto buffer compiler (apt install protobuf-compiler on Ubuntu 22.04), I was also able to install gcld3 on Python 3.10.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants