-
Notifications
You must be signed in to change notification settings - Fork 158
Error when install postman #15
Comments
This issue seems the same as #1 . Please see it. |
It's the same as the second issue on #1 which gets no reply (But new error occurs) |
I see. The same error occurred in my environment. In my environment, I applied a patch to the following source. ./thirdparty/github/fairinternal/postman/nest/nest/nest.h #include <algorithm>
#include <deque>
#include <map>
#include <memory>
#include <string>
#include <variant>
#include <vector>
+ #include <stdexcept> I also had to apply a patch to the following part. ./thirdparty/github/fairinternal/postman/third_party/grpc/third_party/googletest/googletest/src/gtest-death-test.cc Line 1290 - 1303 static void StackLowerThanAddress(const void* ptr, bool* result) {
- int dummy;
+ int dummy = 0;
*result = (&dummy < ptr);
}
// Make sure AddressSanitizer does not tamper with the stack here.
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_
static bool StackGrowsDown() {
- int dummy;
+ int dummy = 0;
bool result;
StackLowerThanAddress(&dummy, &result);
return result;
} Another problem is that In addition, if your system Python version is not 3.7, you need to specify the Python library, include file directory, and pybind11 directory in the Makefile and "compile.sh" where you are running cmake as follows.
|
What version of the C++ compiler was this intended for? |
The README does not specify the version, so I don't know exactly. As an aside, I'm building on Manjaro Linux. And my GCC version is 12.2.0. |
OK I have Is that CMakeLists.txt in There's no compile.sh in /postman |
I think this is the same as #1, I got it working and posted my solution there. I tried reinstalling and it worked on the second time around or using the method I posted. |
OK I have Python 3.7.15
in ../postman/Makefile anyway also set in ../postman/CMakeLists.txt and made the code changes in nest.h and gtest-death-test.cc I get a bunch of new errors:
|
Ah... compile.sh is located in /dipcc. This file will be needed in a later step.
Hmmm... How about running the following command to erase the generated material once before re-running it? cd ./thirdparty/github/fairinternal/postman/
make clean
cd ../../../.. Also, you might want to add |
OK it seems to have progressed I think. I get
but I have python3-dev installed
|
What does the console show when you run |
|
OK. First of all, I'm sorry about python-config. I think the lib directory is |
Hi, I'm experiencing the same error. I made the patches to ./thirdparty/github/fairinternal/postman/nest/nest/nest.h and ./thirdparty/github/fairinternal/postman/third_party/grpc/third_party/googletest/googletest/src/gtest-death-test.cc Any thoughts on this? Thanks!
error: subprocess-exited-with-error × python setup.py develop did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
@dpbeasley I've never seen this error before. What is the your environment? |
Ubuntu 22.04.1 on WSL2 |
Yeah using miniconda just like the instructions suggest
in my .../postman/Makefile, so From my activated conda environment:
|
Yeah, postman is a bit finicky to build depending on your compiler versions. Can you see if @akhti is most likely to be able to help with postman, but is currently on vacation. |
nest installation works just fine. I commented out the line you suggested and make gives:
|
@vandreas but you shouldn't be making the |
Do you install google-glog package? |
Yes sorry, I just figured out that I don't have this error anymore when running However, postman is still not installed. Is there anything else I can try to do to install it? Disabling RL training might be problematic |
Getting an error when trying to install postman:
$ pip install -e ./thirdparty/github/fairinternal/postman/postman/
Looking in indexes: https://pypi.python.org/simple
Obtaining file:///home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.4.0 in /home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages (from postman==0.2.2) (1.7.1+cu110)
Requirement already satisfied: numpy in /home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages (from torch>=1.4.0->postman==0.2.2) (1.20.3)
Requirement already satisfied: typing-extensions in /home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages (from torch>=1.4.0->postman==0.2.2) (4.4.0)
Installing collected packages: postman
Running setup.py develop for postman
error: subprocess-exited-with-error
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [191 lines of output]
running develop
running egg_info
writing python/postman.egg-info/PKG-INFO
writing dependency_links to python/postman.egg-info/dependency_links.txt
writing requirements to python/postman.egg-info/requires.txt
writing top-level names to python/postman.egg-info/top_level.txt
reading manifest file 'python/postman.egg-info/SOURCES.txt'
writing manifest file 'python/postman.egg-info/SOURCES.txt'
running build_ext
make -C cmake_build/postman -j
make[1]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[2]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target zlibstatic
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target address_sorting
[ 98%] Built target absl_log_severity
[ 98%] Built target absl_spinlock_wait
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_dynamic_annotations
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_int128
[ 98%] Built target c-ares
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target ssl
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target upb
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_raw_logging_internal
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target gtest
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_base
[ 98%] Built target absl_bad_optional_access
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target gtest_main
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target libprotobuf
[ 98%] Built target absl_throw_delegate
[ 98%] Built target absl_strings_internal
[ 98%] Built target crypto
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_strings
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target absl_str_format_internal
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target gpr
[ 98%] Built target libprotoc
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target protoc
[ 98%] Built target grpc_plugin_support
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target grpc_cpp_plugin
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target grpc
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
[ 98%] Built target grpc++
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
CMakeFiles/postman.dir/build.make:83: warning: overriding recipe for target '.'
CMakeFiles/postman.dir/build.make:77: warning: ignoring old recipe for target '.'
Consolidate compiler generated dependencies of target postman
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[3]: Entering directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
CMakeFiles/postman.dir/build.make:83: warning: overriding recipe for target '.'
CMakeFiles/postman.dir/build.make:77: warning: ignoring old recipe for target '.'
[ 98%] Building CXX object CMakeFiles/postman.dir/cc/serialization.cc.o
In file included from /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/include/postman/serialization.h:25,
from /home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/cc/serialization.cc:7:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In member function ‘nest::Nest nest::Nest::pack_as(InputIt, InputIt) const’:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:162:18: error: ‘range_error’ is not a member of ‘std’
162 | throw std::range_error("Nest didn't exhaust sequence");
| ^~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:172:35: error: ‘out_of_range’ is not a member of ‘std’
172 | throw std::out_of_range("Too few elements in sequence");
| ^~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In static member function ‘static nest::Nest<std::vector > nest::Nest::zip(const std::vector<nest::Nest >&)’:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:197:18: error: ‘invalid_argument’ is not a member of ‘std’
197 | throw std::invalid_argument("Expected at least one nest.");
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:223:28: error: ‘invalid_argument’ is not a member of ‘std’
223 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:240:28: error: ‘invalid_argument’ is not a member of ‘std’
240 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:249:30: error: ‘invalid_argument’ is not a member of ‘std’
249 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:259:26: error: ‘invalid_argument’ is not a member of ‘std’
259 | throw std::invalid_argument("nests don't match");
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:290:28: error: ‘invalid_argument’ is not a member of ‘std’
290 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:304:28: error: ‘invalid_argument’ is not a member of ‘std’
304 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:312:30: error: ‘invalid_argument’ is not a member of ‘std’
312 | throw std::invalid_argument(
| ^~~~~~~~~~~~~~~~
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h: In lambda function:
/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/../nest/nest/nest.h:320:26: error: ‘invalid_argument’ is not a member of ‘std’
320 | throw std::invalid_argument("nests don't match");
| ^~~~~~~~~~~~~~~~
make[3]: *** [CMakeFiles/postman.dir/build.make:131: CMakeFiles/postman.dir/cc/serialization.cc.o] Error 1
make[3]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[2]: *** [CMakeFiles/Makefile2:787: CMakeFiles/postman.dir/all] Error 2
make[2]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make[1]: *** [Makefile:146: all] Error 2
make[1]: Leaving directory '/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/cmake_build/postman'
make: *** [Makefile:12: compile] Error 2
/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 38, in
main()
File "/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 33, in main
test_suite="setup.test_suite",
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/command/develop.py", line 114, in install_for_development
self.run_command('build_ext')
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/home/xxx/repos/diplomacy_cicero/thirdparty/github/fairinternal/postman/postman/setup.py", line 20, in run
subprocess.check_call("make develop".split(), cwd="..")
File "/home/xxx/miniconda3/envs/diplomacy_cicero/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', 'develop']' returned non-zero exit status 2.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
The text was updated successfully, but these errors were encountered: