This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pip instal math3d - EROR
Type: behavior Stage: resolved
Components: Installation Versions: Python 3.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: Alen Kolman, steven.daprano, xtreak
Priority: normal Keywords:

Created on 2019-06-07 11:39 by Alen Kolman, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg344924 - (view) Author: Alen Kolman (Alen Kolman) Date: 2019-06-07 11:39
I am geting constant eror while trying to isntal math3d or urx libary for Python using pip install. I am using Windows 10 and Python 3.7.3

I tried to: - unistall/instal python and also try older version 3.4.4.. nothing work - upgrade setuptools - upgrade pip (then I get even more errors)

Here is my error:
C:\Python34\Scripts>pip install math3d
Collecting math3d
  Using cached https://files.pythonhosted.org/packages/9a/33/72ac95bb4ac11a2b13e033d90f84430dc23fc815124d9303dffca8789a75/math3d-3.3.4.tar.gz
Installing collected packages: math3d
  Running setup.py install for math3d ... error
    Complete output from command c:\python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ALEN~1.KOL\\AppData\\Local\\Temp\\pip-install-duiwypg9\\math3d\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ALEN~1.KOL\AppData\Local\Temp\pip-record-cmd8m8g6\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib
    creating build\lib\math3d
    copying math3d\orientation.py -> build\lib\math3d
    copying math3d\orientation_computer.py -> build\lib\math3d
    copying math3d\quaternion.py -> build\lib\math3d
    copying math3d\transform.py -> build\lib\math3d
    copying math3d\utils.py -> build\lib\math3d
    copying math3d\vector.py -> build\lib\math3d
    copying math3d\__init__.py -> build\lib\math3d
    creating build\lib\math3d\interpolation
    copying math3d\interpolation\r3interpolation.py -> build\lib\math3d\interpolation
    copying math3d\interpolation\se3interpolation.py -> build\lib\math3d\interpolation
    copying math3d\interpolation\so3interpolation.py -> build\lib\math3d\interpolation
    copying math3d\interpolation\__init__.py -> build\lib\math3d\interpolation
    creating build\lib\math3d\reference_system
    copying math3d\reference_system\frame.py -> build\lib\math3d\reference_system
    copying math3d\reference_system\free_vector.py -> build\lib\math3d\reference_system
    copying math3d\reference_system\point.py -> build\lib\math3d\reference_system
    copying math3d\reference_system\reference_system.py -> build\lib\math3d\reference_system
    copying math3d\reference_system\__init__.py -> build\lib\math3d\reference_system
    creating build\lib\math3d\dynamics
    copying math3d\dynamics\twist.py -> build\lib\math3d\dynamics
    copying math3d\dynamics\wrench.py -> build\lib\math3d\dynamics
    copying math3d\dynamics\__init__.py -> build\lib\math3d\dynamics
    creating build\lib\math3d\geometry
    copying math3d\geometry\line.py -> build\lib\math3d\geometry
    copying math3d\geometry\plane.py -> build\lib\math3d\geometry
    copying math3d\geometry\__init__.py -> build\lib\math3d\geometry
    running install_lib
    running install_data
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ALEN~1.KOL\AppData\Local\Temp\pip-install-duiwypg9\math3d\setup.py", line 23, in <module>
        data_files=[('share/doc/pymath3d/', ['README.md', 'COPYING'])]
      File "c:\python34\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "c:\python34\lib\distutils\dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "c:\python34\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "c:\python34\lib\site-packages\setuptools\command\install.py", line 61, in run
        return orig.install.run(self)
      File "c:\python34\lib\distutils\command\install.py", line 557, in run
        self.run_command(cmd_name)
      File "c:\python34\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:\python34\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "c:\python34\lib\distutils\command\install_data.py", line 56, in run
        dir = convert_path(f[0])
      File "c:\python34\lib\distutils\util.py", line 112, in convert_path
        raise ValueError("path '%s' cannot end with '/'" % pathname)
    ValueError: path 'share/doc/pymath3d/' cannot end with '/'

    ----------------------------------------
Command "c:\python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ALEN~1.KOL\\AppData\\Local\\Temp\\pip-install-duiwypg9\\math3d\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\ALEN~1.KOL\AppData\Local\Temp\pip-record-cmd8m8g6\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ALEN~1.KOL\AppData\Local\Temp\pip-install-duiwypg9\math3d\
msg344925 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-06-07 11:50
This tracker is only for issues related to CPython. math3d is not a part of CPython stdlib. I would suggest following up on the respective repo's issue tracker.
msg344934 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2019-06-07 13:17
In addition to being a third-party library, according to the output you posted, you're actually running Python 3.4 not 3.7.
History
Date User Action Args
2022-04-11 14:59:16adminsetgithub: 81373
2019-06-07 13:17:12steven.dapranosetnosy: + steven.daprano
messages: + msg344934
2019-06-07 11:51:37SilentGhostsetstatus: open -> closed
type: compile error -> behavior
resolution: third party
stage: resolved
2019-06-07 11:50:07xtreaksetnosy: + xtreak
messages: + msg344925
2019-06-07 11:39:17Alen Kolmancreate