1 |
On Sun, Feb 19, 2012 at 8:37 AM, <meino.cramer@×××.de> wrote: |
2 |
> Mark Knecht <markknecht@×××××.com> [12-02-19 16:52]: |
3 |
>> On Sat, Feb 18, 2012 at 11:24 PM, <meino.cramer@×××.de> wrote: |
4 |
>> > Mark Knecht <markknecht@×××××.com> [12-02-19 03:13]: |
5 |
>> >> In a current thread started by Meino where he is having trouble |
6 |
>> >> emerging hydrogen he reported the following quoted data to Neil. I |
7 |
>> >> don't believe Neil has responded yet but Meino's data brought me back |
8 |
>> >> to a question I've meant to ask for a while so I'll take this |
9 |
>> >> opportunity. |
10 |
>> >> |
11 |
>> >> From Meino: |
12 |
>> >> |
13 |
>> >> <QUOTE> |
14 |
>> >> With |
15 |
>> >> |
16 |
>> >> eselect python list |
17 |
>> >> |
18 |
>> >> I get |
19 |
>> >> |
20 |
>> >> Available Python interpreters: |
21 |
>> >> [1] python2.6 |
22 |
>> >> [2] python2.7 |
23 |
>> >> [3] python3.1 |
24 |
>> >> [4] python3.2 * |
25 |
>> >> </QUOTE> |
26 |
>> >> |
27 |
>> >> which shows python3.2 as the system wide default. |
28 |
>> >> |
29 |
>> >> It's been my understanding ever since we first emerged any |
30 |
>> >> python-3.x version that we were not supposed to set any version of |
31 |
>> >> python3 as the system wide default. On all of my systems I have |
32 |
>> >> something like this: |
33 |
>> >> |
34 |
>> >> c2stable ~ # eselect python list |
35 |
>> >> Available Python interpreters: |
36 |
>> >> [1] python2.7 * |
37 |
>> >> [2] python3.2 |
38 |
>> >> c2stable ~ # eselect python list --python2 |
39 |
>> >> Available Python 2 interpreters: |
40 |
>> >> [1] python2.7 * |
41 |
>> >> c2stable ~ # eselect python list --python3 |
42 |
>> >> Available Python 3 interpreters: |
43 |
>> >> [1] python3.2 * |
44 |
>> >> c2stable ~ # |
45 |
>> >> |
46 |
>> >> Now, like Paul Hartman I didn't have any trouble building and |
47 |
>> >> running Hydrogen as a Jack client. It works just fine for me. However |
48 |
>> >> no one else seemed to have picked up on Meino's configuration which |
49 |
>> >> makes me wonder if I missed the memo to make the 3.x version of the |
50 |
>> >> system wide default. |
51 |
>> >> |
52 |
>> >> What is the current best practice in this area? |
53 |
>> >> |
54 |
>> >> Cheers, |
55 |
>> >> Mark |
56 |
>> >> |
57 |
>> > |
58 |
>> > Hi Mark, |
59 |
>> > |
60 |
>> > after a lot of revdep-rebuilds and unresolved (or over-resolved) |
61 |
>> > references hydrogen builds fine. TADA! ;) |
62 |
>> > That is very nice ! :)) |
63 |
>> > |
64 |
>> > Thank you very much for all your help. |
65 |
>> > |
66 |
>> > Unfortunately the svn-build of blender builds, but |
67 |
>> > the executable only prints: |
68 |
>> > |
69 |
>> > Fatal Python error: Py_Initialize: Unable to get the locale encoding |
70 |
>> > LookupError: no codec search functions registered: can't find encoding |
71 |
>> > [1] 20570 abort blender -noaudio |
72 |
>> > |
73 |
>> > Does anyone has built a daily snapshot of the svn blender successfully |
74 |
>> > against the systemwide python 3.2. ? |
75 |
>> > |
76 |
>> > How can I get blender to work? |
77 |
>> > |
78 |
>> > Cheers |
79 |
>> > mcc |
80 |
>> |
81 |
>> Meino, |
82 |
>> First, congrats on getting Hydrogen going. May your life be full of |
83 |
>> head banging drum riff all day & night long. |
84 |
>> |
85 |
>> Now, can you verify that the system wide python setting was in fact |
86 |
>> what made it build on your system? I know you were doing lots and lots |
87 |
>> of things. Was switching this back to 2.7 the thing that allowed |
88 |
>> Hydrogen to build for you? |
89 |
>> |
90 |
>> As for Blender I really don't know what to do as I've never run it. |
91 |
>> Are you building Blender from an overlay or standard portage? If it's |
92 |
>> standard portage, and if the ebuild maintainer hasn't specifically |
93 |
>> said that you have to use 3.x then should a bug report be filed? |
94 |
>> |
95 |
>> That may make no sense on other information you posted. I really |
96 |
>> haven't paid any attention to that part. Sorry. |
97 |
>> |
98 |
>> Glad Hydrogen is working for you. |
99 |
>> |
100 |
>> Cheers, |
101 |
>> Mark |
102 |
>> |
103 |
> |
104 |
> Hi Mark, |
105 |
> |
106 |
> :) |
107 |
> |
108 |
> currently the rest of my gentoo system is banging my head... ;)))) |
109 |
> |
110 |
> :) |
111 |
> |
112 |
> I did it the hard way: |
113 |
> I threw away the installation of python-3.2 in /usr/local which I need |
114 |
> to compile blender. Effect: Blender does no longer build. |
115 |
> |
116 |
> I removed all python installation from my system except of the one |
117 |
> emerge uses. |
118 |
> |
119 |
> I did a revdep-rebuild -pv to see, what applications and libs depends |
120 |
> on what version of python. |
121 |
> |
122 |
> I filtered out all package which looks like libs or things used by |
123 |
> other programs and tried to build them against python 3.2: Some failed |
124 |
> |
125 |
> I reinstalled python all versions of python, which were needed from |
126 |
> the dependencies shown by revdep rebuild. |
127 |
> |
128 |
> With eselect python I set it to python 2.7. |
129 |
> |
130 |
> I rebuild hydrogen, which wasn't confused by linux3 setting from out |
131 |
> space (plan9, I think). |
132 |
> |
133 |
> Blender now builds and runs. The trick was, that the system wide |
134 |
> python 3.2 (which blender needs) uses lib64 while the previously |
135 |
> under /usr/local installed one uses lib as the directory where its |
136 |
> own python code is store. |
137 |
> |
138 |
> I build blender by myself. The pure vanilla code, freshly taken from |
139 |
> the developpers svn repository. No patch, no tweak. The real thing :) |
140 |
> ;))) |
141 |
> |
142 |
> Unfortunately blender spit out messages, that it is built against |
143 |
> libpng-1.2.27 ... and the whole systems only contains libpng-1.5*. |
144 |
> |
145 |
> Currently I have no clue, what the reasons fro this is. Unfortunately |
146 |
> the CUDE renderer fails to do its job. I can start blender...but not |
147 |
> really much more. |
148 |
> |
149 |
> This was a day in deep hack mode. Strace was my friend...as so often. |
150 |
> |
151 |
> Will see how I can fix the rest of the problems. |
152 |
> |
153 |
> The main problem of builing hydrogen was the python under /usr/local |
154 |
> I think... |
155 |
> |
156 |
> Will see what hick up next .... |
157 |
> |
158 |
> Cheers, |
159 |
> Meino |
160 |
|
161 |
Meino, |
162 |
Based on this thread's setup of python I had no trouble building |
163 |
the stable version of blender offered in portage. I don't know how to |
164 |
use blender but I had no trouble starting the app and getting the GUI |
165 |
up. |
166 |
|
167 |
If you are not able to duplicate this then I would like to know. |
168 |
Are you using the stable version or something newer? If newer have you |
169 |
tried the stable version? If you can build the stable version then you |
170 |
have a basis to file bug reports on anything newer that doesn't work. |
171 |
If you cannot build the stable version then we need to determine why |
172 |
on my audio application laptop where I'm running Jack+ Rosegarden + |
173 |
qjackctl + hydrogen + etc., and now blender, you would be having |
174 |
trouble on a smilar machine. |
175 |
|
176 |
Cheers, |
177 |
Mark |
178 |
|
179 |
slinky ~ # emerge -DuN blender |
180 |
Calculating dependencies... done! |
181 |
>>> Verifying ebuild manifests |
182 |
>>> Starting parallel fetch |
183 |
>>> Emerging (1 of 6) media-libs/ilmbase-1.0.2 |
184 |
>>> Emerging (2 of 6) media-libs/lcms-2.3 |
185 |
>>> Emerging (3 of 6) media-libs/ftgl-2.1.3_rc5 |
186 |
>>> Installing (1 of 6) media-libs/ilmbase-1.0.2 |
187 |
>>> Emerging (4 of 6) media-libs/openexr-1.7.0 |
188 |
>>> Installing (2 of 6) media-libs/lcms-2.3 |
189 |
>>> Installing (3 of 6) media-libs/ftgl-2.1.3_rc5 |
190 |
>>> Emerging (5 of 6) media-libs/openjpeg-1.4-r1 |
191 |
>>> Installing (5 of 6) media-libs/openjpeg-1.4-r1 |
192 |
>>> Installing (4 of 6) media-libs/openexr-1.7.0 |
193 |
>>> Emerging (6 of 6) media-gfx/blender-2.49b-r2 |
194 |
>>> Installing (6 of 6) media-gfx/blender-2.49b-r2 |
195 |
>>> Recording media-gfx/blender in "world" favorites file... |
196 |
>>> Jobs: 6 of 6 complete Load avg: 8.96, 5.21, 2.35 |
197 |
|
198 |
* Messages for package media-gfx/blender-2.49b-r2: |
199 |
|
200 |
* blender uses python integration. As such, may have some |
201 |
* inherit risks with running unknown python scripting. |
202 |
* |
203 |
* CVE-2008-1103-1.patch has been removed as it interferes |
204 |
* with autosave undo features. Up stream blender coders |
205 |
* have not addressed the CVE issue as the status is still |
206 |
* a CANDIDATE and not CONFIRMED. |
207 |
* |
208 |
* It is recommended to change your blender temp directory |
209 |
* from /tmp to ~tmp or another tmp file under your home |
210 |
* directory. This can be done by starting blender, then |
211 |
* dragging the main menu down do display all paths. |
212 |
>>> Auto-cleaning packages... |
213 |
|
214 |
>>> No outdated packages were found on your system. |
215 |
|
216 |
* GNU info directory index is up-to-date. |
217 |
slinky ~ # |